Cannot resize root partition

i used gparted live in order to maximize the size of root partition but i can't
Device Boot Start End Blocks Id System
/dev/sda1 2048 718847 358400 7 HPFS/NTFS/exFAT
/dev/sda2 * 718848 586656347 292968750 7 HPFS/NTFS/exFAT
/dev/sda3 612048894 976771071 182361089 5 Extended
/dev/sda4 586657792 612046847 12694528 83 Linux
/dev/sda5 967215104 976771071 4777984 82 Linux swap / Solaris
/dev/sda6 612048896 967213055 177582080 83 Linux
Number Start End Size Type File system Flags
1 1049kB 368MB 367MB primary ntfs
2 368MB 300GB 300GB primary ntfs boot
4 300GB 313GB 13.0GB primary ext4
3 313GB 500GB 187GB extended
6 313GB 495GB 182GB logical ext4
5 495GB 500GB 4893MB logical linux-swap(v1)
i minimize the size of sda6(home folder) in order to give more space to my root partition sda4 but i can't .gparted don't give the option to add the unallocated space to sda4.when i tried to adjust the partitions the swap partition was off
Last edited by kosgeter (2014-04-30 21:52:13)

That's a no-no, you can't do that
To increase the size of sda4, there must be continuous free space after it.
In your case it's like
sda4
sda5
sda6
You first reduce sda6 and you get free space after it, you need to move sda6(not just resize it). Also you will need to delete sda5(which is your swap) and remake it.
Example:
sda4 - 10GB
sda5 - 4GB
sda6 - 100GB
delete sda5 and resize sda6:
sda4 - 10GB
4GB free space
sda6 - 50GB
50GB free space
move sda6:
sda4 - 10GB
50GB free space
sda6 - 50 GB
4GB free space
resize sda4 and create swap(sda7):
sda4 - 60GB
sda6 - 50 GB
sda7 - 4GB
Might I suggest that you use console tools instead of gparted(imho gparted is buggy). The tools in the arch install iso should do fine. Also you can't resize mounted partitions,  so you shouldn't try to touch your arch root partition while using it
Last edited by rand_x0r (2014-05-01 16:06:31)

Similar Messages

  • Resize root partition within a PVM

    Hello - I have found any information about this searching the forum, but I am trying to re-size the root partition that comes with one of the PVM templates (some of them are really small). In order to do this, you need to boot into an ISO.
    With a PVM, you cannot boot directly to an ISO...you have to network boot from an NFS share using the contents of the ISO. Same way you would deploy a PVM from ISO.
    My problem comes in when I need to get into "linux rescue" mode at the grub prompt when you first boot to the ISO normally. This prompt does not seem to come up when network booting to the ISO. Does anyone know the proper steps to do this?

    I think I figured this out. I had to...
    - Delete the swap partition (because it's the last one by default with the template, xvdb3).
    - Delete the root partition (xvdb2).
    - Re-create root partition with same starting block and partition number (but reserve space for swap, I left 2gb).
    - Re-create swap partition with remaining space, and assign swap type of 82.
    - Reboot, and run resize2fs on root partitions (I'm currently at this stage but it looks like this will work fine).
    - Shutdown the VM, detaching the disk that was resized, and attached it back to original VM. Then start the VM.
    - mkswap /dev/xvda3 (on swap partition)
    - swapon /dev/xvda3
    - free -m (to view new swap space)
    Edited by: ekrengel on Mar 13, 2012 10:39 AM
    Update steps...

  • Can't get lvm/luks to boot - cannot find root partition

    Hi,
    I'm trying to get a dm-crypt on top of lvm to boot but without success so far. I followed http://wiki.archlinux.org/index.php/Sys … r_dm-crypt and http://wiki.archlinux.org/index.php/Ins … AID_or_LVM, everything works fine (I can mount the partition) but when I try to boot from it, it cannot find the crypted partition and fails.
    USELVM="yes"
    HOOKS="base udev usb usbinput lvm2 encrypt filesystems"
    root=/dev/mapper/sda2 cryptdevice=/dev/sda2:root2-lvol0 ro
    jan@jan ~/src/xf86-video-ati $ ll /dev/mapper/
    insgesamt 0
    crw-rw---- 1 root root 10, 62 21. Feb 2008 control
    brw------- 1 root disk 254, 0 21. Feb 2008 root
    brw------- 1 root disk 254, 1 21. Feb 2008 root2-lvol0
    brw------- 1 root disk 254, 2 21. Feb 2008 sda2
    /dev/mapper/root is my current encrypted / without lvm
    The boot process successfully identifies the lvm /dev/mapper/root2-lvol0 and continues with hook 'encrypt' but doesn't ask me for a passphrase but goes on to hook 'filesystems' and fails then because it can't mount the correct root-partition obviously.
    There's only /dev/mapper/root2-lvol0 and /dev/mapper/control when I'm in the rescue sh from initrd.
    Anyone got that combination to work?
    - Jan

    Reboot, at the sound of the chime (not before) depress the option key, when the startup manager appears choose OSX.

  • Cannot resize system partition due to recovery partition

    Hello.
    I have a 500GB HD (momentus XT) that replaced my default 320GB HD.
    i cannot resize the system partition due to the recovery partition. System keeps on telling me that "map is too small".
    Tried diskutil under osx, under lion bootable recovery usb stick, under diskutil through console.
    Here is what diskutil tells me.
    ~ > diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *500.1 GB   disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:                  Apple_HFS Macintosh HD            319.2 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
    ~ > diskutil resizeVolume /dev/disk0s2 400G
    Started partitioning on disk0s2 Macintosh HD
    Verifying the disk
    Checking file system
    Performing live verification
    Checking Journaled HFS Plus volume
    Checking extents overflow file
    Checking catalog file
    Checking multi-linked files
    Checking extended attributes file
    Checking volume bitmap
    Checking volume information
    The volume Macintosh HD appears to be OK
    Resizing
    Error: -5341: MediaKit reports partition (map) too small
    I want to resize the partition to use the remaining new space i have, of course, and create a bootcamp part.
    I am wondering if i can kill the recovery partition without destroying my lion. As i have the recovery transfered successfully to usb stick using the apple utility, i am able to use it anytime.
    But... just wondering if that would crash my OS or not.
    Or, if anyone sees a way to move the recovery partition to end of the HD so that i can enlarge successfully...

    Thanks to you both, luckily there's only 600GB on that drive at the moment.
    I was wondering, though, why won't it let me make it bigger?
    I already had a 1TB partition in the space below it. The screenshot shows me having already deleted it - but still no option to resize the other (larger) 2TB one.
    If there is a reason why I can't resize now, then I can take that advice and try and make sure it doesn't happen when I reformat it again.
    I would understand if the partition were MBR, but it's not, it's a GUID Partition Table (bottom right), so I'm confused - what is it's problem? ;-)

  • Resized root partition didn't really resize

    I had two partitions, 250 + 50 gigs. Then I decided to remove the second one and grow the root partition over the whole disk.
    So I started using install DVD -> disk utility -> removed the second and grew the first. Everything went OK.
    Then I rebooted and it there was no more empty space on the drive. So I strted disk utility (live system) and the numbers were funny, I'm talking about partition (not drive!):
    used space: 200gigs, free space: 50 gigs, total capacity: 300 gigs.
    So the partition got resized but the volume actually didn't?
    Then I ran (live) verify disk and it found "minor error in volume header" (no **** sherlock, you're missing 50 gigs) but couldn't fix it. I restarted from DVD, ran disk utility there and there were no errors found!
    So, how can I grow the root filesystem? How come can "real" system find errors and live doesn't?

    I fixed it!
    I did what the graphical interface should call in the background, but it seems it just didn't.
    Ran the system from DVD, opened terminal and wrote
    diskutil resizeVolume /dev/disk0s2 SIZE
    it's now ok.
    The funny part is that SIZE parameter was exactly the same as
    diskutil resizeVolume /dev/disk0s2 limits
    returned under "Current size".
    It seems there's a bug in diskutil.

  • Cannot resize guid partition

    I can't resize my partition on a GUID partition table.
    It says "This partition can not be modified"
    I don't understand this as I specifically wiped this drive from being a MBR (DOS compatible) and reformatted it with GUID.
    Can anyone explain this or what I need to do to resize it? (Hopefully not including wiping the entire drive again)

    Thanks to you both, luckily there's only 600GB on that drive at the moment.
    I was wondering, though, why won't it let me make it bigger?
    I already had a 1TB partition in the space below it. The screenshot shows me having already deleted it - but still no option to resize the other (larger) 2TB one.
    If there is a reason why I can't resize now, then I can take that advice and try and make sure it doesn't happen when I reformat it again.
    I would understand if the partition were MBR, but it's not, it's a GUID Partition Table (bottom right), so I'm confused - what is it's problem? ;-)

  • Cannot resize the partition C

    Hi,
    I have a problem with resizing my partition C on Windows 8.1. It only has 28 GB and I have run out of every space. The Disc manager for resizing partitions is not working (every option for a Disc C is greyed out). I downloaded three partition managers: Paragon,
    Aomei and one more (don't remember the name, cause I deleted it already). All of them were supported by Windows 8.1 32 bit. And still it was not possible to do anything with the disk C, even though I have a lot of unallocated space to use. 
    I also deleted disk D, so that only Disk C was left, and still I couldn't allocate any space to it, only to shrink it.
    Can anyone tell me what else can I do?
    It is driving me crazy already. Help please.
    Marta

    Hello,
    I used aomei partition assistant before in my windows 8.1, it worked well. do you use "resize partition" in aomei partition assistant to extend you c drive? if you do like this, the unallocated space on your hard disk should be contiguous behind
    the partition c, or you can't extend partition. but if the unallocated space is not contigous behind partition c, you an use extend partition wizard or merge partitions to extend partitionc
    extend partition wizard: http://www.disk-partition.com/windows-8/change-partition-size-windows-8.html
    merge partitions: http://www.disk-partition.com/help/merge-partition.html
     hope can help you

  • I cannot resize my partition

    So i'm trying to resize my partition, my Macs memory (500gb) is partitioned in half and it shows 250gb for one partition and 250gb for the other which is free
    space... it wont let me drag to resize and I don't know what to do

    Back up your data, create a new partition in the free space, restore the contents of Yoseimite to it, select it in the Startup Disk pane of System Preferences, delete the partition on the bottom, and resize the one on the top to the drive's capacity.
    (121309)

  • Initramfs cannot find root partition in initramfs

    Hi,
    I recently changed the Mainboard in my PC and ran into some GRUB issues afterwards. After reinstalling it, it at least is able to boot the kernel.
    But when i select my installation I`m dropped in to the recovery shell with the message "Unable to find root device". In the recovery shell i cannot find it either, in /dev the whole SSD isnt listed. This confuses me, since the kernel is on a partition of that disk and obiously loaded already and i can access the device from a liveiso without any problems.
    My partitions are setup as follows:
    sda: (the missing device)
    1: /boot/efi
    2: /boot
    3: /
    4: swap
    sdb:
    1: /home
    Could the error be produced by the fact that sda is an SSD?
    Last edited by SpacePirate (2013-10-23 08:32:53)

    That worked! I generated new initramfss using mkinitcpio (was that necessary) and now the normal boot works, either.

  • Cannot resize main partition

    I installed Bootcamp and obviously Bootcamp Assistant reduced my main partition so that it could create a new one for me to install Windows on.  I finished my project and decided I wanted the space back.  Something must have gone wrong when the Bootcamp Assistant removed Bootcamp, because I am left with a 40Gb empty space on my HD. 
    I can't get Disk Utility to resize my main partition into the empty space.  I have looked at many "how tos" and they all show a resize handle at the bottom-right of the partition that can be dragged to expand the partition into the empty space. I don't see that.
    I tried running Disk Utility from the recovery mode Command-R on startup, but I have the same issue there as well.
    Any help appreciated. I would prefer not to have to wipe everything and start again.

    Dr Mac, thanks:
    eds-macbook-pro:~ ed$ sudo gpt -r -vv show disk0
    gpt show: disk0: mediasize=251000193024; sectorsize=512; blocks=490234752
    gpt show: disk0: PMBR at sector 0
    gpt show: disk0: Pri GPT at sector 1
    gpt show: disk0: Sec GPT at sector 490234751
          start       size  index  contents
              0          1         PMBR
              1          1         Pri GPT header
              2         32         Pri GPT table
             34          6        
             40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
         409640  410430536      2  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC
      410840176    1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
      412109712   78125007        
      490234719         32         Sec GPT table
      490234751          1         Sec GPT header
    eds-macbook-pro:~ ed$ diskutil resizevolume /dev/disk0s2 limits
    Volume format does not support resizing

  • Cannot resize HFS+ partition

    I am trying to shrink my OS X partition on my HD, as I need more space on other partitions. When I try to get resize info from diskutil, I get the following error:
    %diskutil resizevolume disk0s2 limits
    Error obtaining resizing information (is this a Mac OS 9 compatible "wrapped" HFS volume?)
    Here is my disk partition:
    %diskutil list
    /dev/disk0
    #: TYPE NAME SIZE IDENTIFIER
    0: GUIDpartitionscheme *320.1 GB disk0
    1: EFI 209.7 MB disk0s1
    2: Apple_HFS Turbo Broccoli 233.8 GB disk0s2
    3: Microsoft Basic Data DMZ 7.5 GB disk0s3
    4: Microsoft Basic Data Boot Camp 78.3 GB disk0s4
    I don't know if line 2 should say Apple_HFS+ or not, but Disk Utility.app does say its format is "Mac OS Extended (Journaled)." And running Verify Disk on the partition reveals no errors.
    Any idea what is happening here? Thanks for any input.

    Thanks to you both, luckily there's only 600GB on that drive at the moment.
    I was wondering, though, why won't it let me make it bigger?
    I already had a 1TB partition in the space below it. The screenshot shows me having already deleted it - but still no option to resize the other (larger) 2TB one.
    If there is a reason why I can't resize now, then I can take that advice and try and make sure it doesn't happen when I reformat it again.
    I would understand if the partition were MBR, but it's not, it's a GUID Partition Table (bottom right), so I'm confused - what is it's problem? ;-)

  • Cannot resize partition...

    Before mods delete/close/move my post 'cause I'm sure there exist hundred of related problems to this let me explain.
    I study Engineering in Computational Systems, for my Digital Design class I need some software that only exist for Windows (I've been searching the web looking for alternatives for Mac without success)... So I decided I'd install BootCamp and Windows 7, but I got the **** "cannot resize partition" error...
    So here's the deal... I CAN'T make a backup, my external hard drive is damaged, I've been searching and I found that this problem is 'cause BootCamp can't move big files or stuff like that so to fix the problem I have to defrag the hard disk and here comes another problem, I can't afford iDefrag neither...
    Any help for defrag or resize my Mac OS X partition?

    Usually when I see "Cannot resize..." it is because the Windows partition was too small, or they need more room for OS X files. Not because they got the error message from Boot Camp Assistant (which tells you to reformat and restore after you have a backup).
    Step #1 is (always) backup before making changes.
    Real easy... buy an external, you will need backups for Mac OS and probably Windows. you will want to be able to run OS X off external too at some point.
    It isn't because there are big files, it is that they can't be moved.
    The free space has to be contiguous, not fragmented, also, in order to create a slice for Windows.
    I assume it won't work with a VM running under/inside OS X so you need to run Windows natively.
    Some people have bought iDefrag ($49?) and results are anywhere from good to mixed to didn't work.
    You are right, the question has been asked... about 999 times in the last two years.

  • Cannot resize partitions on yosemite !!

    cannot resize partitions on yosemite !!

    Do they have data on them? Are these partitions you could resize before? Is this a new machine? Is it formatted GPT or something else? Are you using boot camp?
    It would be helpful, also, if you would phrase your question in the form of a question

  • Attempting to resize my root partition on LVM

    My root partition is currently full, so I want to resize it.  I'm using LVM and the filesystem is ext4, so I assumed it should be easy enough. My plan was to reduce my /home to make space.  However, when following the instructions in the wiki get the following error:
    # resize2fs /dev/vg/syshome 450G
    resize2fs 1.42.4 (12-June-2012)
    Filesystem at /dev/vg/syshome is mounted on /home; on-line resizing required
    resize2fs: On-line shrinking not supported
    According to https://ext4.wiki.kernel.org/index.php/ … esystem.3F however, online resizing should be possible.
    What am I missing?
    Last edited by phunni (2012-08-03 20:37:26)

    First, install and use ncdu to check what's eating up all the space.
    $ ncdu / --exclude /home --exclude /media
    Maybe it's easily fixed, like a log file or something. Speaking of which, learn2logrotate. Here's my /etc/logrotate.conf.
    Then if you still want to grow the root partition, try this: https://wiki.archlinux.org/index.php/LV … cal_volume
    Next time please specify in the title that it's about LVM.

  • Hello, I am trying to upgrade to yosemite, but I get the "disk cannot be used to startup your computer" error. Resizing the partition does not work, I get the error "MediaKit reports no such partition" probably because I installed linux in dual boot

    Hello, I am trying to upgrade my macbook pro to yosemite, but I get the "disk cannot be used to startup your computer" error.
    Resizing the partition does not work for me and I get the error "MediaKit reports no such partition" probably because I installed linux in dual boot and the disk manager is lost.
    Anyway to tell the yosemite installer that it should not pay attention whether the disk is bootable or not ?
    If I am doomed, any way to delete the installer and downloaded OS from my hard drive ?
    Thanks for your help

    As usual, the Linux installer wrecked the partition table. You would have to boot from your OS X installation disc and repartition. Doing so will of course remove all data from the drive, so you must back up first if you haven't already done so.

Maybe you are looking for

  • Touch not being recognised by itunes only autoplay, frustrating!

    Ever since I downloaded Itunes 8 my ipod hasn't been recognised by itunes and keeps coming up with autoplay or digital camera whenever I plug it in. I have tried uninstalling itunes, reinstalling it, resetting my touch, stoping and starting the devic

  • All my finders colors turned like a film roll "negative"- HELP!!!!!

    my whole appearance turned negative: white turned black, blue is yellow and so on. for no apparent reason!!! help is highly appreciated. and how can something like this happen????? how do i post a screenshot on this forum? iMac 1.8 GHz PPC G5   Mac O

  • Dependent characteristics updation in transaction QP02

    HI Friends,     Could you please help me regarding updation of dependent characteristics in the transaction QP02. My requirement is i will give the plant and group in the first screen and i select the first entry and i will click inspection character

  • Nokia n8 hang - battery removal query - plz help

    Whenever the nokia n8 hangs, will I have to remove the battery everytime with a screw driver ?. if it is so won't it be irritating ?

  • Mini WAS features

    Hi, i'm newbie in abap, and i want to buy the MiniWAS for practicing, but there isn´t too much information about the features and requirements, my question is to know some of the major features, for instance how many pearson can it use it, hardware r