PDA

View Full Version : [ubuntu] 10.04 to 10.10 upgrade with grub woes.



benplanet
February 4th, 2011, 12:57 AM
I just upgraded from lucid to 10.10. After the reboot, I can only see recovery mode entries (and my window partition, thankfully) in grub.

I tried
update-grub and update-burg ( i think i had burg installed) both to no avail. I also tried re-installing grub onto my main ssd hd, with the command
grub-install /dev/sda nothing there either.

I'm out of ideas and now turning to the community for help! thank you.

oldfred
February 4th, 2011, 01:02 AM
I do not know burg. Post this so we can see what is where:

Boot Info Script courtesy of forum member meierfra
Page with instructions and download:
http://bootinfoscript.sourceforge.net/
Paste results.txt, then highlight entire file and click on # in edit panel(code tags) to make it easier to read.
Or You can generate the tags first by pressing the # icon in the post's menu and then paste the contents between the generated [ code] paste here [ /code] tags.

You have to tell grub which partition the install is on with a mnt command:
How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10)
http://ubuntuforums.org/showthread.php?t=1014708
https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD

Example:
If separate /boot and sda1 & sda2 are boot & root:
If separate /boot
$ sudo mount /dev/sda2 /mnt
$ sudo mount /dev/sda1 /mnt/boot
$ grub-install --root-directory=/mnt /dev/sda

benplanet
February 4th, 2011, 01:43 AM
here we go. nothing looked out of the ordinary to me, but then again im no expert.



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 #1 for (,msdos1)/boot/grub.
=> Windows is installed in the MBR of /dev/sdb
=> Windows is installed in the MBR of /dev/sdc

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

sdb1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe

sdb2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdc1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 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 * 2,048 119,851,007 119,848,960 83 Linux
/dev/sda2 119,853,054 125,044,735 5,191,682 5 Extended
/dev/sda5 119,853,056 125,044,735 5,191,680 82 Linux swap / Solaris


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 400.1 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders, total 781422768 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdb1 * 63 398,540,519 398,540,457 7 HPFS/NTFS
/dev/sdb2 398,540,800 781,420,543 382,879,744 7 HPFS/NTFS


Drive: sdc ___________________ __________________________________________________ ___

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdc1 63 976,768,064 976,768,002 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 68004462-be2c-4f7b-9fb5-8d83d2746cac ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 fe34f253-e709-440a-bf76-a7fa5136ec93 swap
/dev/sda: PTTYPE="dos"
/dev/sdb1 34C03208C031D0BA ntfs
/dev/sdb2 40D85910D8590616 ntfs
/dev/sdb: PTTYPE="dos"
/dev/sdc1 B426069F2606632A ntfs My Book
/dev/sdc: 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)
/dev/sda1 /media/68004462-be2c-4f7b-9fb5-8d83d2746cac ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb1 /media/34C03208C031D0BA fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
/dev/sdc1 /media/My Book fuseblk (rw,nosuid,nodev,allow_other,blksize=512,default_p ermissions)


=========================== sda1/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
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}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 68004462-be2c-4f7b-9fb5-8d83d2746cac
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,msdos1)'
search --no-floppy --fs-uuid --set 68004462-be2c-4f7b-9fb5-8d83d2746cac
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.35-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 68004462-be2c-4f7b-9fb5-8d83d2746cac
linux /boot/vmlinuz-2.6.35-25-generic root=UUID=68004462-be2c-4f7b-9fb5-8d83d2746cac ro vga=799 quiet splash nomodeset video=uvesafb:mode_option=>>1920x1080-24<<,mtrr=3,scroll=ywrap
initrd /boot/initrd.img-2.6.35-25-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 68004462-be2c-4f7b-9fb5-8d83d2746cac
echo 'Loading Linux 2.6.35-25-generic ...'
linux /boot/vmlinuz-2.6.35-25-generic root=UUID=68004462-be2c-4f7b-9fb5-8d83d2746cac ro single vga=799
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-25-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 68004462-be2c-4f7b-9fb5-8d83d2746cac
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=68004462-be2c-4f7b-9fb5-8d83d2746cac ro vga=799 quiet splash nomodeset video=uvesafb:mode_option=>>1920x1080-24<<,mtrr=3,scroll=ywrap
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 part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 68004462-be2c-4f7b-9fb5-8d83d2746cac
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=68004462-be2c-4f7b-9fb5-8d83d2746cac ro single vga=799
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-24-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,msdos1)'
search --no-floppy --fs-uuid --set 68004462-be2c-4f7b-9fb5-8d83d2746cac
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 68004462-be2c-4f7b-9fb5-8d83d2746cac
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/sdb1)" {
insmod part_msdos
insmod ntfs
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 34c03208c031d0ba
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 ###

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

=============================== sda1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc nodev,noexec,nosuid 0 0
#Entry for /dev/sda1 :
UUID=68004462-be2c-4f7b-9fb5-8d83d2746cac / ext4 errors=remount-ro 0 1
#Entry for /dev/sdb1 :
UUID=D42AF0782AF058C6 /media/File_Drive_1___Backups ntfs-3g defaults,locale=en_US.UTF-8 0 0
#Entry for /dev/sdb2 :
UUID=40D85910D8590616 /media/sdb2 ntfs-3g defaults,locale=en_US.UTF-8 0 0
#Entry for /dev/sda5 :
UUID=fe34f253-e709-440a-bf76-a7fa5136ec93 none swap sw 0 0

#none /proc/bus/usb usbfs devgid=124,devmode=664 0 0

=================== sda1: Location of files loaded by Grub: ===================


6.5GB: boot/grub/core.img
17.8GB: boot/grub/grub.cfg
38.5GB: boot/initrd.img-2.6.32-24-generic
27.6GB: boot/initrd.img-2.6.35-25-generic
8.6GB: boot/vmlinuz-2.6.32-24-generic
21.6GB: boot/vmlinuz-2.6.35-25-generic
27.6GB: initrd.img
38.5GB: initrd.img.old
21.6GB: vmlinuz
8.6GB: vmlinuz.old

oldfred
February 4th, 2011, 02:23 AM
Did you upgrade from old grub legacy. It looks like it added some parameters to the linux line that are obsolete.

vga=xxx is a deprecated boot option
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/454993
http://ubuntuforums.org/showthread.php?t=1453524

I am not sure what video setting you may need. I had to use nomodeset on first boot, but after installing nVidia driver I have not needed it.


menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 68004462-be2c-4f7b-9fb5-8d83d2746cac
linux /boot/vmlinuz-2.6.35-25-generic root=UUID=68004462-be2c-4f7b-9fb5-8d83d2746cac ro vga=799 quiet splash nomodeset video=uvesafb:mode_option=>>1920x1080-24<<,mtrr=3,scroll=ywrap
initrd /boot/initrd.img-2.6.35-25-generic
}


.35 is the newer kernel, I would try deleting all the red from the grub menu 'e' for one time edit commands, and see if it boots.

I have not seen these settings, but I am not fully up2data on all video modes.
video=uvesafb:mode_option=>>1920x1080-24<<,mtrr=3,scroll=ywrap

What video card/chip do you have?

benplanet
February 4th, 2011, 02:30 AM
Did you upgrade from old grub legacy. It looks like it added some parameters to the linux line that are obsolete.

vga=xxx is a deprecated boot option
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/454993
http://ubuntuforums.org/showthread.php?t=1453524

I am not sure what video setting you may need. I had to use nomodeset on first boot, but after installing nVidia driver I have not needed it.


menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 68004462-be2c-4f7b-9fb5-8d83d2746cac
linux /boot/vmlinuz-2.6.35-25-generic root=UUID=68004462-be2c-4f7b-9fb5-8d83d2746cac ro vga=799 quiet splash nomodeset video=uvesafb:mode_option=>>1920x1080-24<<,mtrr=3,scroll=ywrap
initrd /boot/initrd.img-2.6.35-25-generic
}


.35 is the newer kernel, I would try deleting all the red from the grub menu 'e' for one time edit commands, and see if it boots.

I have not seen these settings, but I am not fully up2data on all video modes.
video=uvesafb:mode_option=>>1920x1080-24<<,mtrr=3,scroll=ywrap

What video card/chip do you have?

WOW! it worked!!

but now i have different issues with nvidia drivers..

oldfred
February 4th, 2011, 03:00 AM
run this to see if it updates:


sudo update-grub

If not it may have saved some settings in
gksudo gedit /etc/default/grub

Then update
sudo update-grub

I just installed the nvidia driver that it automatically suggested. That was for my 9600GT card. If you have a chip on a motherboard it may be different.

After I installed Nvidia driver (default from pop up) then it has worked without issue.
gksudo nvidia-settings
Or it should be in System>administration>Hardware drivers.
Possible additional things to run once nvidia working:
gksudo nvidia-settings
sudo nvidia-xconfig