PDA

View Full Version : [ubuntu] Update kills Grub2 again!



mtdave
May 6th, 2010, 09:30 PM
Last weekend I upgraded to 10.04 from 9.10 and was unable to boot either Ubuntu or XP. I reinstalled Grub2 and got Ubuntu to boot and ran fixboot to get my XP to boot.

Today the Update Manger popped up and had a pile of updates it wanted to make to my Ubuntu 10.04 including upgrade to kernel 2.6.32-22. So I clicked the go-for-it button. I never had a problem with this in 9.10.

After the upgrade completed I went to reboot and guess what? Back to the same boot problem. I had to boot to my Live CD again, reinstall Grub again and run fixboot from my XP CD again. Am I going to have to do this every time Ubuntu updates itself?

I guess I better keep a good handle on my instructions.

I like Ubuntu but this is getting rediculous!

frantid
May 6th, 2010, 09:34 PM
Could you please post your /boot/grub/grub.cfg /boot/grub/device.map and the results of

sudo blkid

mtdave
May 6th, 2010, 09:49 PM
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 78510add-bbca-4e7f-840a-77182906122b
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 78510add-bbca-4e7f-840a-77182906122b
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-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-22-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 78510add-bbca-4e7f-840a-77182906122b
echo 'Loading Linux 2.6.32-22-generic ...'
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-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 78510add-bbca-4e7f-840a-77182906122b
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-21-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 78510add-bbca-4e7f-840a-77182906122b
echo 'Loading Linux 2.6.31-21-generic ...'
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-21-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 78510add-bbca-4e7f-840a-77182906122b
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 9854176854174880
drivemap -s (hd0) ${root}
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 ###


device.map

(hd0) /dev/sda
(hd1) /dev/sdb


pucuz3@pucuz3-desktop:~$ sudo blkid
[sudo] password for pucuz3:
/dev/sda1: LABEL="Booter" UUID="9854176854174880" TYPE="ntfs"
/dev/sda5: UUID="78510add-bbca-4e7f-840a-77182906122b" TYPE="ext4"
/dev/sda6: UUID="f607418f-fa34-4be0-8eb9-237c3cbf167b" TYPE="swap"
/dev/sdb1: LABEL="Big Honker" UUID="0AB0B29BB0B28CA7" TYPE="ntfs"
pucuz3@pucuz3-desktop:~$

kansasnoob
May 6th, 2010, 09:54 PM
Could you please post your /boot/grub/grub.cfg /boot/grub/device.map and the results of

sudo blkid

Why waste time with three commands when you can see much more just running this:

http://bootinfoscript.sourceforge.net/

kansasnoob
May 6th, 2010, 10:02 PM
Looking back at this thread:

http://ubuntuforums.org/showthread.php?t=1472140

You had mixed legacy grub and grub2 files:


sda6: __________________________________________________ _______________________

File system: ext3
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda6 and
looks at sector 421928783 of the same hard drive for
core.img, but core.img can not be found at this
location.
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/menu.lst /boot/grub/grub.cfg /etc/fstab
/boot/grub/core.img

Until that's corrected you can expect to have trouble. So we first need a new output of the Boot Info Script:

http://bootinfoscript.sourceforge.net/

And some patience ;)

frantid
May 6th, 2010, 10:04 PM
I know kasasnoob, I just get tired of typing the same thing over again.

mtdave, This is your fixed one right?

Could you run

sudo grub-mkconfig

don't worry this won't change anything, it will just print it out on the screen.

mtdave
May 6th, 2010, 10:26 PM
This is after I reinstalled Grub. I did the following:

Booted to the 9.10 Live CD
Opened a terminal window

install commands:
sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt /dev/sda

Then I booted to my XP CD and ran fixboot c:
I can now boot to Ubuntu and XP

pucuz3@pucuz3-desktop:~$ sudo grub-mkconfig
[sudo] password for pucuz3:
head: cannot open `/boot/grub/video.lst' for reading: No such file or directory
Generating 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
}
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 ###
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-22-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 78510add-bbca-4e7f-840a-77182906122b
echo 'Loading Linux 2.6.32-22-generic ...'
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-22-generic
}
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-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 78510add-bbca-4e7f-840a-77182906122b
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
Found linux image: /boot/vmlinuz-2.6.31-21-generic
Found initrd image: /boot/initrd.img-2.6.31-21-generic
menuentry 'Ubuntu, with Linux 2.6.31-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-21-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 78510add-bbca-4e7f-840a-77182906122b
echo 'Loading Linux 2.6.31-21-generic ...'
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
Found memtest86+ image: /boot/memtest86+.bin
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
Found Microsoft Windows XP Home Edition on /dev/sda1
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 9854176854174880
drivemap -s (hd0) ${root}
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 ###
done
pucuz3@pucuz3-desktop:~$

frantid
May 6th, 2010, 10:38 PM
but you can boot off your regular install right? you've repaired grub already?

I'd like you to run 'grub-mkconfig' off your regular desktop boot if it works. update-grub calls it, but that would update your grub. I don't want that since you already fixed it. I am trying to see what grub-mkconfig does that happens after a kernel, grub package update. Just like how it was as it got misconfigured the 2nd time. You wouldn't happen to have a copy of the broken grub.cfg do you. That's what I'm trying to replicate, without altering your system.

And as kansasnoob recommends, we really should attempt the bootinfoscript it does provide good info. All off your running desktop if possible please.

mtdave
May 6th, 2010, 10:48 PM
I already reinstalled grub and everything is working fine now. I don't think I have the bad grub.cfg any longer. Should I still run the script or will it give the same information? I'm just wondering why when I did the update it set me back to the same messed up situation.

mtdave
May 6th, 2010, 10:59 PM
Here are the results of the script.

frantid
May 6th, 2010, 11:16 PM
you have a copy of grub.cfg on your xp partition. If it's just for backup, rename it. If not, delete it. I don't see anything else wrong -- I'll look again though.

thank-you for running the script, at least now if it breaks again we will be able to see everything how it was.

If you would run 'sudo grub-mkconfig' and paste the results here that would be great. I'd like to see if it does something different than what your grub.cfg says.

Hopefully all this documentation will help track down the source of the errors.

thanks.

edit: remember sudo grub-mkconfig won't actually change anything. It just shows us what it would do if was run.

mtdave
May 6th, 2010, 11:36 PM
The copy of grub.cfg on my XP partition was saved as a backup. I forget at what point I did that. I think I'll just delete it for now. Could it case trouble? Below are it's contents:


#
# 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
}
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-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-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 78510add-bbca-4e7f-840a-77182906122b
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-21-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 78510add-bbca-4e7f-840a-77182906122b
echo 'Loading Linux 2.6.31-21-generic ...'
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-21-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 78510add-bbca-4e7f-840a-77182906122b
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 9854176854174880
drivemap -s (hd0) ${root}
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 ###Here is another run of sudo grub-mkconfig


pucuz3@pucuz3-desktop:~$ sudo grub-mkconfig
[sudo] password for pucuz3:
head: cannot open `/boot/grub/video.lst' for reading: No such file or directory
Generating 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
}
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 ###
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-22-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 78510add-bbca-4e7f-840a-77182906122b
echo 'Loading Linux 2.6.32-22-generic ...'
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-22-generic
}
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-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 78510add-bbca-4e7f-840a-77182906122b
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
Found linux image: /boot/vmlinuz-2.6.31-21-generic
Found initrd image: /boot/initrd.img-2.6.31-21-generic
menuentry 'Ubuntu, with Linux 2.6.31-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-21-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 78510add-bbca-4e7f-840a-77182906122b
echo 'Loading Linux 2.6.31-21-generic ...'
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=78510add-bbca-4e7f-840a-77182906122b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
Found memtest86+ image: /boot/memtest86+.bin
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 78510add-bbca-4e7f-840a-77182906122b
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
Found Microsoft Windows XP Home Edition on /dev/sda1
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 9854176854174880
drivemap -s (hd0) ${root}
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 ###
done
pucuz3@pucuz3-desktop:~$

frantid
May 6th, 2010, 11:43 PM
It's good to have a backup. But now you have 3-4 in this thread ;) Just rename it. I doubt it could cause problems, but there's something strange going on here.

let's run

dpkg-query -l 'grub*'

to see if there is anything odd left over.

mtdave
May 6th, 2010, 11:50 PM
Here you go.


pucuz3@pucuz3-desktop:~$ dpkg-query -l 'grub*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
un grub <none> (no description available)
ii grub-common 1.98-1ubuntu6 GRand Unified Bootloader, version 2 (common
un grub-coreboot <none> (no description available)
un grub-doc <none> (no description available)
un grub-efi <none> (no description available)
un grub-efi-amd64 <none> (no description available)
un grub-efi-ia32 <none> (no description available)
un grub-emu <none> (no description available)
un grub-ieee1275 <none> (no description available)
un grub-legacy <none> (no description available)
un grub-legacy-do <none> (no description available)
un grub-linuxbios <none> (no description available)
ii grub-pc 1.98-1ubuntu6 GRand Unified Bootloader, version 2 (PC/BIOS
un grub2 <none> (no description available)
pucuz3@pucuz3-desktop:~$

frantid
May 7th, 2010, 12:01 AM
thanks, I have to give it a clean bill of health.

You've got a nice record of your boot state in this thread. The next time an update hits your kernel or grub, run the bootinfoscript, compare to what's recorded here or in the file you have. If it's different don't reboot. Changes in MBR and grub don't take effect until reboot. so you'll save yourself some time. Back up your xp so you don't have to keep repairing it.

I hope you don't see these problems again.

mtdave
May 7th, 2010, 12:10 AM
Ok, thanks frantid (http://ubuntuforums.org/member.php?u=1021440).

dgw
May 7th, 2010, 12:19 AM
I have the same problem. I installed updates today and now I can't boot again, and am about to reinstall grub again. ](*,)