Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Error growing Ubuntu partition with gparted via live CD

  1. #11
    Join Date
    Mar 2010
    Location
    Woonsocket, RI USA
    Beans
    3,195

    Re: Error growing Ubuntu partition with gparted via live CD

    I've seen several reports of this error in recent days. I've seen it myself, too. My suspicion is that libparted (upon which GParted relies) is trying to adjust the partition start and/or end points to match cylinder (old-style) or 1 MiB (new-style) alignment, but in doing so it adjusts the partition in such a way that it overlaps a nearby partition. This then causes it to abort and give you that error message.

    To fix it, change the alignment constraints. Old versions had a check box to align to cylinders; uncheck it. New versions have a three-way option button (align to cylinder, align to 1 MiB boundary, or don't align); change it to the other alignment value, or disable it entirely.

    If that doesn't help, try leaving a small gap between partitions; that'll give it the wiggle room it needs to tweak the partition start and/or end points to its satisfaction.

  2. #12
    Join Date
    Jan 2007
    Beans
    185

    Re: Error growing Ubuntu partition with gparted via live CD

    This will produce a results.txt file on your desktop. Please copy the contents of that file and paste them in your next post
    Here it is:

    Code:
                    Boot Info Script 0.55    dated February 15th, 2010                    
    
    ============================= Boot Info Summary: ==============================
    
     => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in 
        partition #5 for /boot/grub.
    
    sda1: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows Vista
        Boot files/dirs:   /bootmgr /boot/bcd /Windows/System32/winload.exe
    
    sda2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sda5: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 10.04.1 LTS
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda6: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1    *             63   104,101,199   104,101,137   7 HPFS/NTFS
    /dev/sda2         597,666,195   625,137,344    27,471,150   5 Extended
    /dev/sda5         597,666,258   623,884,274    26,218,017  83 Linux
    /dev/sda6         623,884,338   625,137,344     1,253,007  82 Linux swap / Solaris
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/loop0                                              squashfs                                 
    /dev/sda1        F85E19525E190AD0                       ntfs                                     
    /dev/sda2: PTTYPE="dos" 
    /dev/sda5        128f0979-48b5-44ed-a662-396cf93ff3ef   ext4                                     
    /dev/sda6        1a6d0fc2-8474-4507-b78e-f627b4c98b0f   swap                                     
    /dev/sda: PTTYPE="dos" 
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    Device           Mount_Point              Type       Options
    
    aufs             /                        aufs       (rw)
    /dev/sr0         /cdrom                   iso9660    (ro,noatime)
    /dev/loop0       /rofs                    squashfs   (ro,noatime)
    
    
    =========================== sda5/boot/grub/grub.cfg: ===========================
    
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
      set saved_entry=${prev_saved_entry}
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z ${boot_once} ]; then
        saved_entry=${chosen}
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
    }
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      insmod gfxterm
      insmod vbe
      if terminal_output gfxterm ; then true ; else
        # For backward compatibility with versions of terminal.mod that don't
        # understand terminal_output
        terminal gfxterm
      fi
    fi
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    if [ ${recordfail} = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.32-27-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
        linux    /boot/vmlinuz-2.6.32-27-generic root=UUID=128f0979-48b5-44ed-a662-396cf93ff3ef ro   quiet splash
        initrd    /boot/initrd.img-2.6.32-27-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-27-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
        echo    'Loading Linux 2.6.32-27-generic ...'
        linux    /boot/vmlinuz-2.6.32-27-generic root=UUID=128f0979-48b5-44ed-a662-396cf93ff3ef ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.32-27-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-26-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
        linux    /boot/vmlinuz-2.6.32-26-generic root=UUID=128f0979-48b5-44ed-a662-396cf93ff3ef ro   quiet splash
        initrd    /boot/initrd.img-2.6.32-26-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
        echo    'Loading Linux 2.6.32-26-generic ...'
        linux    /boot/vmlinuz-2.6.32-26-generic root=UUID=128f0979-48b5-44ed-a662-396cf93ff3ef ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.32-26-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
        linux    /boot/vmlinuz-2.6.32-25-generic root=UUID=128f0979-48b5-44ed-a662-396cf93ff3ef ro   quiet splash
        initrd    /boot/initrd.img-2.6.32-25-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
        echo    'Loading Linux 2.6.32-25-generic ...'
        linux    /boot/vmlinuz-2.6.32-25-generic root=UUID=128f0979-48b5-44ed-a662-396cf93ff3ef ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.32-25-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
        linux    /boot/vmlinuz-2.6.32-24-generic root=UUID=128f0979-48b5-44ed-a662-396cf93ff3ef ro   quiet splash
        initrd    /boot/initrd.img-2.6.32-24-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
        echo    'Loading Linux 2.6.32-24-generic ...'
        linux    /boot/vmlinuz-2.6.32-24-generic root=UUID=128f0979-48b5-44ed-a662-396cf93ff3ef ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.32-24-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
        linux    /boot/vmlinuz-2.6.32-23-generic root=UUID=128f0979-48b5-44ed-a662-396cf93ff3ef ro   quiet splash
        initrd    /boot/initrd.img-2.6.32-23-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
        echo    'Loading Linux 2.6.32-23-generic ...'
        linux    /boot/vmlinuz-2.6.32-23-generic root=UUID=128f0979-48b5-44ed-a662-396cf93ff3ef ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.32-23-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
        linux16    /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 128f0979-48b5-44ed-a662-396cf93ff3ef
        linux16    /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows Vista (loader) (on /dev/sda1)" {
        insmod ntfs
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set f85e19525e190ad0
        chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    
    =============================== sda5/etc/fstab: ===============================
    
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    
    proc    /proc    proc    defaults    0    0
    #Entry for /dev/sda5 :
    UUID=128f0979-48b5-44ed-a662-396cf93ff3ef    /    ext4    errors=remount-ro    0    1
    #Entry for /dev/sda1 :
    #UUID=F85E19525E190AD0    /media/sda1    ntfs    defaults,nls=utf8,umask=0222    0    0
    #Entry for /dev/sda6 :
    UUID=1a6d0fc2-8474-4507-b78e-f627b4c98b0f    none    swap    sw    0    0
    /dev/scd0    /media/cdrom0    udf,iso9660    user,noauto,exec,utf8    0    0
    
    
    
    =================== sda5: Location of files loaded by Grub: ===================
    
    
     306.7GB: boot/grub/core.img
     309.2GB: boot/grub/grub.cfg
     316.5GB: boot/initrd.img-2.6.32-23-generic
     310.1GB: boot/initrd.img-2.6.32-24-generic
     311.5GB: boot/initrd.img-2.6.32-25-generic
     314.2GB: boot/initrd.img-2.6.32-26-generic
     311.2GB: boot/initrd.img-2.6.32-27-generic
     317.9GB: boot/vmlinuz-2.6.32-23-generic
     307.8GB: boot/vmlinuz-2.6.32-24-generic
     314.2GB: boot/vmlinuz-2.6.32-25-generic
     314.3GB: boot/vmlinuz-2.6.32-26-generic
     313.9GB: boot/vmlinuz-2.6.32-27-generic
     311.2GB: initrd.img
     314.2GB: initrd.img.old
     313.9GB: vmlinuz
     314.3GB: vmlinuz.old

  3. #13
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    9,202
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Error growing Ubuntu partition with gparted via live CD

    Thanks raequin, that looks ok.
    Did you see srs5694's post - one up from your boot script?
    MacBook Pro 10,1 retina

  4. #14
    Join Date
    Jan 2007
    Beans
    185

    Re: Error growing Ubuntu partition with gparted via live CD

    Thanks all.

    To fix it, change the alignment constraints. . . . or disable it entirely.

    If that doesn't help, try leaving a small gap between partitions; that'll give it the wiggle room it needs to tweak the partition start and/or end points to its satisfaction.
    I had already tried leaving a small gap between partitions, it did not work. After reading the above post I changed the alignment constraints to "none" for sda2. The move-resize worked. Then I performed a move-resize for sda5, this time leaving the alignment constraints set at MiB. This, too, worked. So here's the result (after booting into Ubuntu, not the live CD), please let me know if there are any problems with it --- things seem to work fine.


  5. #15
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    9,202
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Error growing Ubuntu partition with gparted via live CD

    That looks good to me
    If it works, it's good!
    MacBook Pro 10,1 retina

  6. #16
    Join Date
    Mar 2010
    Location
    Woonsocket, RI USA
    Beans
    3,195

    Re: Error growing Ubuntu partition with gparted via live CD

    I'll just comment that those unallocated spaces on either side of /dev/sda5 look significant in the diagram, but if you check their sizes in the listing below it, you'll see that they're quite tiny -- barely over 1 MiB each (less than two 3.5-inch floppy disks' capacity total). If you're thinking of trying to close those gaps and reclaim the space, don't! It might not be possible with GParted, and an attempt could take a long time and risk your data. It's just not worth the hassle for such a small amount of disk space.

  7. #17
    Join Date
    May 2011
    Beans
    1

    Re: Error growing Ubuntu partition with gparted via live CD

    just resize your sda5 and put some space on its left. atleast 1mb perhaps. it will act as a glue to the unallocated space. hope it works =)

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •