[SOLVED] Can I shrink my / partition to free-up HDD space?

Hi, all.
I've got Arch happily installed on hda. I want to play with another flavour of GNU/Linux, and need the space.  Rather than blow-away my lovely Arch install, does anyone know whether I can shrink my /, and then just use the spare space (altering GRUB, of course)?
My HDD is big enough and /home is on another (small) disc. I think I have seen in some graphical installations, that it's possible to reduce the size of partitions.
Any help appreciated.
Chris.
Last edited by chris_debian (2009-09-22 22:03:47)

techprophet wrote:
yes, you can. As long as it is not XFS. Make sure you fsck it first!
You need to boot a livecd (you cannot resize any fs while it is mounted) and then use fdisk/cfdisk/parted/gparted to resize it. The arch cd has the first three, while most GNOME Lives have GParted.
techprophet, thanks for that.  If I boot from a LiveCD, such as Arch and used fdisk, would the partition table get re-written?  I'm guessing not, as the mount point is still the same.  I guess what I don't understand, is exactly what I'd do with fdisk.  I'm more than happy partitioning with it, I've just never used it to re-size, before.
Thanks,
Chris.

Similar Messages

  • My LR previews data file has just gone over 50GB, how can I shrink it as I really need the space on my laptop?

    My LR previews data file has just gone over 50GB, how can I shrink it as I really need the space on my laptop?

    Or if you don't want to delete all of it, you can just discard 1:1 previews using Library->Previews menu - that may or may not buy you the space you need.
    If you do opt for deleting the whole thing, here is an idea to keep it from going back to 50G: change the size/quality of standard previews and/or the policy for auto-removing 1:1 previews (Lr Preferences -> Catalog Settings -> File Handling).

  • Can we expand the partition of Lion's encrypted space?

    I've been playing with this for an hour.  I have Lion on a 50GB partition, the othe 950 GB are on Snow Leopard.  I'm not really ready to give up SL, so I was going to expand Lion into it.  Wow, not as easy as you'd think.  The best article I've found is this one
    http://web.me.com/pondini/AppleTips/DU4.html
    The problem is that my Lion is the bottom partition and will not expand down as in the description.  I always get the same message in Disk Utility:  This partition can not be modified. 
    Let's assume I can't at all move the partition.  Can I delete the partition from SL and download Lion again from my TM backup, or will that encryption get in the way? 
    As always, thank you much,

    Hi SharonAmt,
    You suggested to keep a Group on Country and then place the Chart Object in the Group Footer. This is helpful in getting different Charts for different Countries but these charts come one after another and not beside each other. I had previously tried this but due to inability to place Charts besides each other, this idea was changed.
    Hi IanWaterman,
    Your answer to my problem was there only in the word 'Underlay'. I have conditionally set the Underlay of different section and by keeping Charts in different sections, I am able to acheive my requirement of placing charts beside each other and also of not keeping any unwanted space.
    Though my original question of whether I can change the Y co-ordinate of any control and also changing the height of the Section still persists, but your solution of UnderLay helped me in acheving my requirement.
    Thanking all.
    Regards.
    Ajit.

  • [SOLVED] Can't find root partition after upgrade

    After upgrading to Linux 3.6.6, the boot fails with something like "can't find root, UUID=..." and I get a root shell. Choosing to recovery mode in GRUB doesn't make a difference.
    I don't have any sda devices in /dev.
    /proc/partitions is empty.
    I have Macbook Pro 7,1.
    Ubuntu on other partition works.
    Any idea how to fix this?
    Last edited by dontbugme (2012-11-08 17:53:46)

    dontbugme wrote:Now I realize that I did a probably stupid thing. I removed mdadm and lvm2 thinking that I don't need them. So the mdadm kernel module is missing. Could this be the problem? I don't use RAID or LVM.
    I don't use these either ... but this does sound like a very plausible cause of this error.  Are you sure you aren't using either?
    In any case, it's easy enough to add them back and see if that solves this.  Boot into live media, chroot, add back the modules to mkinitcpio.conf and rebuild the initramfs.  If nothing else this would verify that these are not the problem.

  • [SOLVED] Can't initialize LVM partitions

    I have Ubuntu 8.10 installed on LVM. I'm tring to install Arch using the same partition setup I already have for Ubuntu.
    For some reason after I load dm-mod module the LVM partitions do not appear in /dev/mapper the /dev/{$VG_NAME} directory also does not exist.
    If I do lvscan I see all of my logical volumes. I tried to do partprobe but it didn't help.
    I can't recreate the VG because I'll lose all my data in /home and unfortunatly I don't have a place to back it up.
    I'm using the archlinux-2008.06-ftp-x86_64.iso the md5sum matches so there is no problem with the installer.
    Does any one know how to fix it?
    Thanks in advance.
    Last edited by kian.tern (2008-11-30 13:27:23)

    also, there is an option to automatically start logical volumes at boot-time in /etc/rc.conf:
    USELVM="yes"
    Did you also put your root partition on LVM? Then you'd better add the "lvm2" hook to $HOOKS in /etc/mkinitcpio.conf, make sure your boot-partition (if you have one) is mounted read-write, and run as root:
    mkinitcpio -p kernel26
    If your root is not on LVM, the mkinitcpio step is unnecessary

  • I can't expand my partition and I have free space Macbook pro mid 2010

    Hello! I have a macbook pro mid 2010 with Mavericks, I had 2 partitions and deleted one with the disk utility, now I want to expand the one that I have left but I can't, I cannot drag the corner of the partition because it is below of the free space, I will post a picture so you can understand better.  Also I tried using iPartitions but it won't let me make any changes. Thank you

    Hi LamboMong,
    just try this:
    http://refit.sourceforge.net
    install, reboot twice and choose the Windows-Partition on next startup.
    (The apple-bootloader doesn't display all bootable harddisks.
    With rEFIt you can boot from all partitions/harddisks on your computer.)
    I hope that will solve your problem.
    Daniel Fernau

  • [SOLVED] Can't install; dual-boot sharing partitions?

    Hi, I'm currently dual-booting Linux Mint 14 and Windows 7 on my laptop, and decided to replace Mint with Arch. Somehow, though, I don't think I ever divided my HDD into seperate partitions for Linux and Windows. Using gparted (or fdisk), /dev/sda (my HDD) has essentially got a Dell utility partition (100MiB, sda1), a recovery partition (15GiB, sda2), a 1 MiB unallocated space, and a 284 GiB section labeled "OS" (sda3). I can't touch the partition on Linux because it's always in use.
    I can't get through with the installation because of this, and can't find an answer no matter how often or in-depth I RTFM. If someone could point me in the right direction, that'd be great.
    Thanks.
    http://imgur.com/8qfpbbW
    EDIT: This has been [SOLVED].
    Last edited by SELame (2013-07-29 22:55:13)

    I would recommend downloading the gparted cd here, and setting up your partitioning scheme from there. I am quite suprised about your system setup though, you may want to nuke it and start again because something weird is going on.
    Yeah, I'm not sure exactly what's happening. I'll look into using gparted as a LiveCD, but I'd rather not wipe everything if I can help it.
    I don't know if this is the case, but Ubuntu had (has?) an option to install to an image on the windows partition (wubi), rather than a partition of it's own. It's possible that Mint adapted this for their spinoff, and would explain why you only have a Windows partition.
    I recommend that you modify your partition scheme if you want to install Arch. Shrink your Windows partition as much as the Windows partitioner will allow (avoid gparted and similar tools for this purpose, the Windows in-built partitioner should be adequate), then create an extended partition to house your Arch partition, swap partition, data partition, or whatever partitions you want.
    Yeah, I installed Mint from a mounted image in Daemon Tools, so that could explain it. I'll look into shrinking my Windows partition and seeing if I can somehow remove Mint from my Windows partition. I still have grub and all, if that makes any difference.
    there is a mint4win,  do you see something like this on boot? http://i.imgur.com/sPOMx.png
    Yep! I may have installed mint4win. Let me look into that.

  • [Solved] Can't see GPT disk partitions in Windows 7 (64-bit)

    I just added 2 new disks and had them set up equally with GPT and equal partitions, to use the partitions as RAID1 in Arch, and the rest of the storage for Windows. It works as expected in Linux (I guess), but Windows shows them as uninitialized.
    Can this be due to the fact that I created the GPT and partitions using fdisk? Caus' gdisk can't see any partitions either when I start it. If so, is there any way to convert it or do I need to redo everything?
    The output of "fdisk -l" shows this:
    Disk /dev/sdc: 1.8 TiB
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: gpt
    Disk identifier: xxx-random-identidifier-xxx
    Device Start End Sectors Size Type
    /dev/sdc1 2048 xx xx 1.6T Linux RAID
    Disk /dev/sdd: 1.8 TiB
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: gpt
    Disk identifier: xxx-random-identidifier-xxx
    Device Start End Sectors Size Type
    /dev/sdd1 2048 xx xx 1.6T Linux RAID
    Last edited by Chrilleee (2015-05-10 07:51:54)

    Added a Windows partition now. Still the same.
    In Windows it looks like this:
    http://s2.postimg.org/a63qwgmg9/disks.png
    Output from gdisk -l:
    # gdisk -l /dev/sdc
    GPT fdisk (gdisk) version 1.0.0
    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present
    Found valid GPT with protective MBR; using GPT.
    Disk /dev/sdc: 3907029168 sectors, 1.8 TiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): xxx-random-identidifier-xxx
    Partition table holds up to 128 entries
    First usable sector is 2048, last usable sector is 3907029134
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 1407 sectors (703.5 KiB)
    Number Start (sector) End (sector) Size Code Name
    1 2048 3450000000 1.6 TiB FD00
    2 3450001408 3907029134 217.9 GiB 0700
    # gdisk -l /dev/sdd
    GPT fdisk (gdisk) version 1.0.0
    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present
    Found valid GPT with protective MBR; using GPT.
    Disk /dev/sdd: 3907029168 sectors, 1.8 TiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): xxx-random-identidifier-xxx
    Partition table holds up to 128 entries
    First usable sector is 2048, last usable sector is 3907029134
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 1407 sectors (703.5 KiB)
    Number Start (sector) End (sector) Size Code Name
    1 2048 3450000000 1.6 TiB FD00
    2 3450001408 3907029134 217.9 GiB 0700
    -- mod note: converted img to url --
    - WorMzy
    Last edited by WorMzy (2015-05-09 23:02:20)

  • HI Everyone! Please Help me to solve problem my Macbook Pro Mid2009. First problem is my Macbook has a noise sound when i first opened but when I used it around 30min it stop the sound. Next i can't create new partition it appeared: couldn't modify

    Hi Guys! I can not create new partition on my MacBook Pro. I don't what just happened  on it. Before i could but these fews day i can't. When I try to create new partition it said: Partition failed.  couldn't modify partition map because file system verify failed.   My HHD is samsung sata 640GB.
    When I went to iONE  (Apple store in cambodia) they check for me and they said my HHD is no problem. So please help with this.
    Thanks you so much......! any ideas please send to [email protected] or [email protected]

    I've just scanned my logs and I've found a lot of failed connections to teamviewer but I do not have this app installed. Can you suggest me a way to stop these connections? I found tons of messages like this:
    21/10/14 14:45:31,851 com.apple.xpc.launchd[1]: (com.teamviewer.service[1428]) Service could not initialize: Unable to set current working directory. error=2, path=/Applications/TeamViewer.app/Contents/Resources: 14A389: xpcproxy + 12907 [1227][1016C726-9ACF-3A24-9C51-A279F5C6B167]: 0x2
    21/10/14 14:45:31,851 com.apple.xpc.launchd[1]: (com.teamviewer.service) Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
    21/10/14 14:45:37,239 com.apple.xpc.launchd[1]: (com.teamviewer.teamviewer[1430]) Service could not initialize: Unable to set current working directory. error=2, path=/Applications/TeamViewer.app/Contents/MacOS: 14A389: xpcproxy + 12907 [1227][1016C726-9ACF-3A24-9C51-A279F5C6B167]: 0x2
    21/10/14 14:45:37,239 com.apple.xpc.launchd[1]: (com.teamviewer.teamviewer) Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
    thx

  • Adding partition in free space on internal drive

    So, when I bought my 20" Intel iMac, I immediately repartitioned the drive, and created one 200GB main partition for OSX and left ~32GB of free space for a future WinXP partition (which as of today became useful .
    However, I cannot find any way to add a partition in the free space without trying some commercial tool (like iPartition). Disk Utility only has the option to repartition -- in OSX it won't let me because it's the system drive, and from the install CD it wants to nuke my whole drive to repartition, even though I don't need to touch the OSX partition at all. I've also dug through diskutil, pdisk, and fdisk, but none of those have an option to add a partition.
    It seems totally stupid that I can't just create a partition in free space without killing the whole disk. I have 80GB of stuff on this drive I can't easily backup.
    Any ideas???
      Mac OS X (10.4.5)  

    The second partition is not for backups... it's for a FAT filesystem for installing Windows so that I can run my research software and play games at native speed.
    Installing XP does not involve any firmware changes at all. The EFI bootloader is a blessed file that sits on the HFS partition, and the boot sector of the XP install CD is modified to talk to the custom EFI bootloader.
    I actuallly did solve the problem through some brute force after my post. There is a command-line utility built into OSX now called 'gpt' which can edit GUID Partition Tables as used on Intel Macs. I booted off my OSX install CD, went to a terminal, unmounted /dev/disk0, added the new partition (gpt luckily does have an option for adding and removing partition entries without repartitioning the whole disk... Apple really needs to update Disk Utility if you ask me -- this is a common and simple task usually), then rebooted. It all worked fine!

  • HOWTO: Resize Bootcamp (NTFS) partition for free using gparted

    Hi,
    Well, if you find your Bootcamp/NTFS/Windows partition running out of space, you may want to increase it or decrease it. The OSX Bootcamp utility doesn't allow resizing the NTFS partitio nor does Disk Utility. Here is a free solution ...
    NOTE: I've tried this on Windows 7 64bit, but it should work with other windows setups in a similar manner.
    Requirements:
    1. SysRescueCD (for an NTFS capable 'gparted')
    - http://www.sysresccd.org/Download
    2. rEFIt bootable CD (or install to hard disk, doesn't matter)
    - http://refit.sourceforge.net/doc/c1s5_burning.html
    3. Windows XP/Vista/7 CD (depends what you've installed)
    - just for a quick 'repair' at the end, no reinstall here!
    In short:
    1 Shrink Mac partition in OSX's Disk Utility
    2 Grow the NTFS partition in gparted booting off sysrescue CD (reboot->option key). This may take 30mins to a few hours to complete!
    3 Boot the rEFIt CD -> choose "start partitioning tool" -> hit yes when it says it needs to sync the MBR with the GPT.
    4 Boot your Windows CD.
    Vista/Windows7 CD -> hit the repair option to fix the boot record.
    XP CD -> you may need to go to the administrative shell and type fixboot and then fixmbr.
    5. Reboot and you should be able to boot into Windows via the option key as before. I liked rEFIt a lot so I installed it to my disk itself. (FYI, I did notice I needed to install rEFIt a few times to get it to show up during boot time)
    Message was edited by: SidOnline

    One bug I learnt:
    if
    1. you set the 'boot' flag on the Windows partition in gparted AND
    2. you use gptsync to sync the GPT with the MBR (i.e. MBR->GPT translation)
    then
    you will find that your Windows partition becomes inaccessible in OS X. Your partition is OK - you can boot in windows etc - OS X just doesn't see it as a NTFS partition.
    Solution:
    1. Don't enable the boot flag in gparted. Simple, no need to read further.
    If you're done it and have been hit by the bug and would like to see Windows/Bootcamp again in Finder, read on...
    1. Goto http://www.insanelymac.com/forum/index.php?showtopic=31562, post #9 has a tool to fix it. Download the diskpart.zip file (it's got diskpart.efi)
    2. Extract the diskpart.zip file, copy the diskpart.efi to /efi/tools on your OSX volume (default location for hard disk install of rEFIt).
    3. Reboot, in the rEFIt menu, select the EFI terminal
    4. type fs1: and hit enter. This should take you to your Leopard volume (for me fs0: was the 1st partition (EFI boot partition), fs1: was the 2nd partition (Leopard)
    5. type _cd /efi/tools_ and hit enter
    6. type diskpart and hit enter
    7. As the post linked above says, type
    +select <zero-based disk number>+
    inspect
    +chtype <zero-based partition number> MSDATA+
    For me this was
    +select 0+
    inspect
    +chtype 2 MSDATA+
    Look at the output of select to make sure you're using the right number - if you have your eyes open it's hard to make a mistake!
    Behind the scene details:
    Your partition type is set to NTFS in the MBR table (which is why windows can load it up etc) but if you do the above then the partition type in the GPT is written as EFI instead of NTFS (or more accurately 'MSDATA'). This is a bug in gptsync and I believe Chris (writer of rEFIt) is aware of this - at least another post elsewhere made it look like that. I guess you can't blame it since EFI, GPT tools are still in their infancy.
    BTW, to sync the GPT with the MBR, there is a tool gptsync. I believe it's a tool from Intel's EFI toobox. It exists as either an efi program (i.e. gptsync.efi, runs when you select it from rEFIt's menu) or as a OSX program (just gptsync, runs when you download it and type 'sudo gptsync').

  • Shrink OSX partition

    I need to shrink my active OSX partition. Does anyone know how to do this?

    To resize the drive do the following:
    1. Open Disk Utility and select the drive entry (mfgr.'s ID and size) from the left side list.
    2. Click on the Partition tab in the DU main window. You should see the graphical sizing window showing the existing partitions. A portion may appear as a blue rectangle representing the used space on a partition.
    3. In the lower right corner of the sizing rectangle for each partition is a resizing gadget. Select it with the mouse and move the bottom of the rectangle upwards until you have reduced the existing partition enough to create the desired new volume's size. The space below the resized partition will appear gray. Click on the Apply button and wait until the process has completed. +(Note: You can only make a partition smaller in order to create new free space.)+
    4. Click on the [+] button below the sizing window to add a new partition in the gray space you freed up. Give the new volume a name, if you wish, then click on the Apply button. Wait until the process has completed.
    You should now have a new volume on the drive.

  • I partitioned my MacBook Pro and installed Windows 8 in it.....now I can't find my partition when I pressed option key when booting up.....so how can I do to find the partition to boot...I can see it in the disk manager in Mac....any ideas? thanks..!..

    I partitioned my MacBook Pro and installed Windows 8 in it.....now I can't find my partition when I pressed option key when booting up.....so how can I do to find the partition to boot...I can see it in the disk manager in Mac....any ideas? thanks..!..

    Hi LamboMong,
    just try this:
    http://refit.sourceforge.net
    install, reboot twice and choose the Windows-Partition on next startup.
    (The apple-bootloader doesn't display all bootable harddisks.
    With rEFIt you can boot from all partitions/harddisks on your computer.)
    I hope that will solve your problem.
    Daniel Fernau

  • I recently upgraded from Snow Leopard to Lion and now some CDs I use for school do not work.  Can I create a partition to run both Snow Leopard and LIon or does it only work to run windows?  How do I do this?

    Getting a new CD from publisher is not an option as they would want me to pay for a new one and they are pricey.  If possible I would prefer to keep my upgrade to lion but would go back to leopard if there's no other option.

    You can add another partition on which you can install Snow Leopard. If you do, however, you cannot use Boot Camp Assistant to install Windows. Just so you know.
    To resize the drive do the following:
    1. Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    After the main menu appears select Disk Utility and click on the Continue button. Select the hard drive's main entry then click on the Partition tab in the DU main window.
    2. You should see the graphical sizing window showing the existing partitions. A portion may appear as a blue rectangle representing the used space on a partition.
    3. In the lower right corner of the sizing rectangle for each partition is a resizing gadget. Select it with the mouse and move the bottom of the rectangle upwards until you have reduced the existing partition enough to create the desired new volume's size. The space below the resized partition will appear gray. Click on the Apply button and wait until the process has completed.  (Note: You can only make a partition smaller in order to create new free space.)
    4. Click on the [+] button below the sizing window to add a new partition in the gray space you freed up. Give the new volume a name, if you wish, then click on the Apply button. Wait until the process has completed.
    You should now have a new volume on the drive.
    It would be wise to have a backup of your current system as resizing is not necessarily free of risk for data loss.  Your drive must have sufficient contiguous free space for this process to work.
    Boot from your Snow Leopard DVD and install on the volume you just created. Be sure you set the new partition as the target for your Snow Leopard system.

  • How can I get the amount of free space that is on my drive to show at the bottom of the drive in Lion.

    How can I get the amount of free space that is on my drive to show at the bottom of the drive in Lion.
    This is a must feature for me and I may have to go back to Snow Leopard.
    Please help!

    Right click on your desktop and choose "viewer options". Adjust the spacing and the size of your icons and you should be able to see the size of your drive(s) and the free space available on each drive with the exception of your bootcamp drive which will only show the overall size of the drive you have it on.  This may be different if you only have one system drive (like on a Mac Book Pro) with a partition containing bootcamp on it. this may only show you the overall capacity, I can't say for sure though as I only use a Mac Pro with 4 seperate Hard Drives which are showing both overall capacity and free space available. Hope this helps
    Denisimo

Maybe you are looking for