Skip to main content

Thread: Can't boot after moving partition


hello all! started using 10.10 shortly after released , have been lurking here on issues while now. far have been able needed here resolve of issues. afraid no longer true!

shrank windows partition , used gparted add space , redo partitions ubuntu yesterday. cannot boot anything. looked around , think need edit fstab file point right location grub. barking right tree?

here results of boot info script.

boot info script 0.60 17 may 2011


============================= boot info summary: ===============================

=> grub2 (v1.97-1.98) installed in mbr of /dev/sda , looks @ sector
1 of same hard drive core.img. core.img @ location ,
looks in partition 6 (,msdos6)/boot/grub.

sda1: __________________________________________________ ________________________

file system: ntfs
boot sector type: windows vista/7
boot sector info: no errors found in boot parameter block.
operating system: windows 7
boot files: /bootmgr /boot/bcd /windows/system32/winload.exe

sda2: __________________________________________________ ________________________

file system: swap
boot sector type: -
boot sector info:

sda3: __________________________________________________ ________________________

file system: extended partition
boot sector type: -
boot sector info:

sda5: __________________________________________________ ________________________

file system: ext4
boot sector type: -
boot sector info:
operating system: ubuntu 10.10
boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda6: __________________________________________________ ________________________

file system: ext4
boot sector type: -
boot sector info:
operating system:
boot files: /boot/grub/core.img

============================ 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 sector end sector # of sectors id system

/dev/sda1 * 2,048 189,794,295 189,792,248 7 ntfs / exfat / hpfs
/dev/sda2 612,558,848 625,141,759 12,582,912 82 linux swap / solaris
/dev/sda3 189,794,304 612,558,847 422,764,544 5 extended
/dev/sda5 189,796,352 256,681,983 66,885,632 83 linux
/dev/sda6 256,684,032 612,558,847 355,874,816 83 linux


"blkid" output: __________________________________________________ ______________

device uuid type label

/dev/loop0 squashfs
/dev/sda1 2da2dbf1421da541 ntfs
/dev/sda2 416d597e-8113-429b-bb63-7153c64c12d9 swap
/dev/sda5 2993afa3-5768-4b35-9c4e-468d43a21e20 ext4
/dev/sda6 2b4d8888-dea8-4ac7-9c40-55ba6a14aa4c ext4

================================ mount points: =================================

device mount_point type options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sda6 /media/2b4d8888-dea8-4ac7-9c40-55ba6a14aa4c ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sr0 /cdrom iso9660 (ro,noatime)


=========================== sda5/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# not edit file
#
# automatically generated grub-mkconfig using templates
# /etc/grub.d , settings /etc/default/grub
#

### begin /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
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}" ]; if [ -z "${boot_once}" ]; save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 2993afa3-5768-4b35-9c4e-468d43a21e20
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 2993afa3-5768-4b35-9c4e-468d43a21e20
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, linux 2.6.35-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 2993afa3-5768-4b35-9c4e-468d43a21e20
linux /boot/vmlinuz-2.6.35-28-generic root=uuid=2993afa3-5768-4b35-9c4e-468d43a21e20 ro quiet splash
initrd /boot/initrd.img-2.6.35-28-generic
}
menuentry 'ubuntu, linux 2.6.35-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 2993afa3-5768-4b35-9c4e-468d43a21e20
echo 'loading linux 2.6.35-28-generic ...'
linux /boot/vmlinuz-2.6.35-28-generic root=uuid=2993afa3-5768-4b35-9c4e-468d43a21e20 ro single
echo 'loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-28-generic
}
### end /etc/grub.d/10_linux ###

### begin /etc/grub.d/20_linux_xen ###
### end /etc/grub.d/20_linux_xen ###

### begin /etc/grub.d/20_memtest86+ ###
menuentry "memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 2993afa3-5768-4b35-9c4e-468d43a21e20
linux16 /boot/memtest86+.bin
}
menuentry "memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 2993afa3-5768-4b35-9c4e-468d43a21e20
linux16 /boot/memtest86+.bin console=ttys0,115200n8
}
### end /etc/grub.d/20_memtest86+ ###

### begin /etc/grub.d/30_os-prober ###
menuentry "windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 2da2dbf1421da541
chainloader +1
}
menuentry "windows vista (loader) (on /dev/sda2)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 10fc8cdcfc8cbd8a
chainloader +1
}
### end /etc/grub.d/30_os-prober ###

### begin /etc/grub.d/40_custom ###
# file provides easy way add custom menu entries. type the
# menu entries want add after comment. careful not change
# 'exec tail' line above.
### end /etc/grub.d/40_custom ###

### begin /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### end /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda5/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# use 'blkid -o value -s uuid' print universally unique identifier
# device; may used uuid= more robust way name
# devices works if disks added , removed. see fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / on /dev/sda6 during installation
uuid=2993afa3-5768-4b35-9c4e-468d43a21e20 / ext4 errors=remount-ro 0 1
# /home on /dev/sda7 during installation
uuid=2b4d8888-dea8-4ac7-9c40-55ba6a14aa4c /home ext4 defaults 0 2
# swap on /dev/sda5 during installation
uuid=993e102e-ef02-41f8-8982-60d2d85ce280 none swap sw 0 0
--------------------------------------------------------------------------------

=================== sda5: location of files loaded grub: ====================

gib - gb file fragment(s)

102.706455231 = 110.280216576 boot/grub/core.img 1
92.811801910 = 99.655913472 boot/grub/grub.cfg 1
91.388134003 = 98.127261696 boot/initrd.img-2.6.35-28-generic 2
91.271484375 = 98.002010112 boot/vmlinuz-2.6.35-28-generic 2
91.388134003 = 98.127261696 initrd.img 2
91.271484375 = 98.002010112 vmlinuz 2

=================== sda6: location of files loaded grub: ====================

gib - gb file fragment(s)

142.521945953 = 153.031774208 boot/grub/core.img 1



here fstab:



# /etc/fstab: static file system information.
#
# use 'blkid -o value -s uuid' print universally unique identifier
# device; may used uuid= more robust way name
# devices works if disks added , removed. see fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / on /dev/sda6 during installation
uuid=2993afa3-5768-4b35-9c4e-468d43a21e20 / ext4 errors=remount-ro 0 1
# /home on /dev/sda7 during installation
uuid=2b4d8888-dea8-4ac7-9c40-55ba6a14aa4c /home ext4 defaults 0 2
# swap on /dev/sda5 during installation
uuid=993e102e-ef02-41f8-8982-60d2d85ce280 none swap sw 0 0



1. correct in need edit fstab reflect change new uuid?

2. if need do, how do that?

still novice, keep in mind if give me directions. thanks.

have tried reinstalling grub using live cd?


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] Can't boot after moving partition


Ubuntu

Comments