PDA

View Full Version : [ubuntu] Editing Grubb



60cents
January 28th, 2012, 10:25 PM
I tried to reinstall 11.10 from a fresh download on a USB stick. Something is interfering with the install however. When I reboot and try to log in to 10.10 I get a series of lines ending with "initramfs" or something like that and that is as far as it goes.
I had 10.10 up and running fine and then something happened and I could no longer boot to that version, or any other previous version.
So I formated the stick and reinstalled Ubuntu 11.10 thinking that reformation and a newly downloaded file would help. It didn't
Now I think that my original Grub file is pointing to the wrong install. But I have no idea how to edit grub without a good running Ubuntu program. I can get to the demo version from my USB stick but I cant edit any files.

Hope some one can help

drs305
January 28th, 2012, 10:33 PM
Try this first from the LiveCD/USB: Install Boot Repair.

If it can't fix things there is an option to run the boot info script. Provide us with the contents of RESULTS.txt and we can try to help (if Boot Repair can't).

Link in my signature line.

dagroves
January 28th, 2012, 10:41 PM
I had to edit my Grub to be able to boot into the Linux 3.x kernel series. I do not know if that is the problem you are having, I to had the same problem as you booting to a crazy series of messages like that. I edited my Grub and added the line 'acpi=off' without quotes. I hope that may help, it worked for me.
Good Luck
David

60cents
January 29th, 2012, 01:29 AM
I managed to open my grub.cfg file with gedit.

Menuentry is what I see when Grub starts:




#
# 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 video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.0.0-15-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-3.0.0-15-generic-pae root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-15-generic-pae
}
menuentry 'Ubuntu, with Linux 3.0.0-15-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 3.0.0-15-generic-pae ...'
linux /boot/vmlinuz-3.0.0-15-generic-pae root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-15-generic-pae
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.0.0-15-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-3.0.0-15-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-15-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-15-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 3.0.0-15-generic ...'
linux /boot/vmlinuz-3.0.0-15-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-15-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-31-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-2.6.35-31-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.35-31-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-31-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 2.6.35-31-generic ...'
linux /boot/vmlinuz-2.6.35-31-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-31-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-37-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-2.6.32-37-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.32-37-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-37-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 2.6.32-37-generic ...'
linux /boot/vmlinuz-2.6.32-37-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-37-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='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
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/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root C6E0C83EE0C83689
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 ###

drs305
January 29th, 2012, 02:04 AM
The grub.cfg file only tells us part of the story. If you don't want to use the Boot Repair app or run the boot info script from within it, please download the script from the following site, run it, and post the contents of RESULTS.txt.

This file will give us the information about your system that we need to be able to help you.

http://bootinfoscript.sourceforge.net

I've placed the contents of your previous post within 'code' tags, which you can generate by pressing the # icon in the post's menubar.

60cents
January 29th, 2012, 04:08 AM
Thanks drs305
It took me a while to figure out how to enter the terminal commands but I figured it out.
Here's the results.txt file


Boot Info Script 0.60 from 17 May 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks in partition 11 for /boot/grub.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for on this drive.
=> Syslinux MBR (3.61-4.03) is installed in the MBR of /dev/sdd.

sda1: __________________________________________________ ________________________

File system: vfat
Boot sector type: Dell Utility: FAT16
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /DELLBIO.BIN /DELLRMK.BIN /COMMAND.COM

sda2: __________________________________________________ ________________________

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

sda3: __________________________________________________ ________________________

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: /Windows/System32/winload.exe

sdb1: __________________________________________________ ________________________

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

sdb2: __________________________________________________ ________________________

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

sdb5: __________________________________________________ ________________________

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

sdb6: __________________________________________________ ________________________

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

sdb7: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /etc/fstab

sdb8: __________________________________________________ ________________________

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

sdb9: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /etc/fstab

sdb10: __________________________________________________ _______________________

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

sdb11: __________________________________________________ _______________________

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

sdb12: __________________________________________________ _______________________

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

sdd1: __________________________________________________ ________________________

File system: vfat
Boot sector type: SYSLINUX 3.86 2010-04-01
Boot sector info: Syslinux looks at sector 2499072 of /dev/sdd1 for its
second stage. No errors found in the Boot Parameter
Block.
Operating System:
Boot files: /syslinux/syslinux.cfg /ldlinux.sys

============================ 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 63 80,324 80,262 de Dell Utility
/dev/sda2 * 81,920 30,801,919 30,720,000 7 NTFS / exFAT / HPFS
/dev/sda3 30,801,920 625,140,399 594,338,480 7 NTFS / exFAT / HPFS


Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 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/sdb1 * 2,048 217,758,594 217,756,547 7 NTFS / exFAT / HPFS
/dev/sdb2 217,759,742 1,250,258,624 1,032,498,883 5 Extended
/dev/sdb5 871,028,298 1,234,788,029 363,759,732 83 Linux
/dev/sdb6 1,234,788,093 1,250,258,624 15,470,532 82 Linux swap / Solaris
/dev/sdb7 435,515,392 650,270,559 214,755,168 83 Linux
/dev/sdb8 863,168,512 871,026,687 7,858,176 82 Linux swap / Solaris
/dev/sdb9 217,759,744 427,653,119 209,893,376 83 Linux
/dev/sdb10 427,655,168 435,505,151 7,849,984 82 Linux swap / Solaris
/dev/sdb11 650,270,720 854,413,311 204,142,592 83 Linux
/dev/sdb12 854,415,360 863,156,223 8,740,864 82 Linux swap / Solaris


Drive: sdd __________________________________________________ ___________________

Disk /dev/sdd: 16.0 GB, 16008609792 bytes
255 heads, 63 sectors/track, 1946 cylinders, total 31266816 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/sdd1 * 32 31,266,815 31,266,784 c W95 FAT32 (LBA)


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 3030-3030 vfat DellUtility
/dev/sda2 C6E0C83EE0C83689 ntfs RECOVERY
/dev/sda3 A680CABF80CA9569 ntfs OS
/dev/sdb1 72FE404BFE4009B5 ntfs Linux Ubuntu
/dev/sdb10 b4b7ddfa-cb2d-409f-a572-a7b1852ea297 swap
/dev/sdb11 42fb0190-5572-43dc-8649-cdd43f409848 ext4
/dev/sdb12 0f841b15-e43b-4659-8b86-7f329a71e860 swap
/dev/sdb5 4d80b613-c529-4586-a02d-d86994244b38 ext4
/dev/sdb6 85d679a4-c6d5-402e-bed4-123eb8e10f0c swap
/dev/sdb7 daa5043d-4b0a-4826-a00f-1fd8d6569f4e ext4
/dev/sdb8 d11bb2c2-a2ed-486c-986b-dcc44d58f17d swap
/dev/sdb9 513e6121-b53d-4a22-b292-bd68a20efed5 ext4
/dev/sdd1 B0FA-E2B8 vfat PENDRIVE

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sda3 /media/OS fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
/dev/sdb1 /media/Linux Ubuntu fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
/dev/sdb5 /media/4d80b613-c529-4586-a02d-d86994244b38 ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb7 /media/daa5043d-4b0a-4826-a00f-1fd8d6569f4e ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb9 /media/513e6121-b53d-4a22-b292-bd68a20efed5 ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdd1 /cdrom vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,i ocharset=iso8859-1,shortname=mixed,errors=remount-ro)


=========================== sdb5/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 video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.0.0-15-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-3.0.0-15-generic-pae root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-15-generic-pae
}
menuentry 'Ubuntu, with Linux 3.0.0-15-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 3.0.0-15-generic-pae ...'
linux /boot/vmlinuz-3.0.0-15-generic-pae root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-15-generic-pae
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.0.0-15-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-3.0.0-15-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-15-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-15-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 3.0.0-15-generic ...'
linux /boot/vmlinuz-3.0.0-15-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-15-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-31-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-2.6.35-31-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.35-31-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-31-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 2.6.35-31-generic ...'
linux /boot/vmlinuz-2.6.35-31-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-31-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-37-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-2.6.32-37-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.32-37-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-37-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 2.6.32-37-generic ...'
linux /boot/vmlinuz-2.6.32-37-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-37-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='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
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/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root C6E0C83EE0C83689
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 ###
--------------------------------------------------------------------------------

=============================== sdb5/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb5 during installation
UUID=4d80b613-c529-4586-a02d-d86994244b38 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb6 during installation
UUID=85d679a4-c6d5-402e-bed4-123eb8e10f0c none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

469.578782082 = 504.206377984 boot/grub/core.img 1
435.593647957 = 467.715118080 boot/grub/grub.cfg 1
428.972973824 = 460.606223360 boot/initrd.img-2.6.32-37-generic 2
433.291783333 = 465.243509760 boot/initrd.img-2.6.35-31-generic 2
418.143345833 = 448.977998848 boot/initrd.img-3.0.0-12-generic 2
470.341797829 = 505.025659904 boot/initrd.img-3.0.0-15-generic 3
470.408970833 = 505.097786368 boot/initrd.img-3.0.0-15-generic-pae 2
420.894494057 = 451.932021760 boot/vmlinuz-2.6.32-37-generic 1
419.014874458 = 449.913795584 boot/vmlinuz-2.6.35-31-generic 1
416.726761818 = 447.456953344 boot/vmlinuz-3.0.0-12-generic 1
469.768761635 = 504.410366976 boot/vmlinuz-3.0.0-15-generic 2
417.921246529 = 448.739521536 boot/vmlinuz-3.0.0-15-generic-pae 1

=============================== sdb7/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb7 during installation
UUID=daa5043d-4b0a-4826-a00f-1fd8d6569f4e / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb8 during installation
UUID=d11bb2c2-a2ed-486c-986b-dcc44d58f17d none swap sw 0 0
--------------------------------------------------------------------------------

=============================== sdb9/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb9 during installation
UUID=513e6121-b53d-4a22-b292-bd68a20efed5 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb10 during installation
UUID=b4b7ddfa-cb2d-409f-a572-a7b1852ea297 none swap sw 0 0
--------------------------------------------------------------------------------

========================== sdb11/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='(hd1,11)'
search --no-floppy --fs-uuid --set 42fb0190-5572-43dc-8649-cdd43f409848
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='(hd1,11)'
search --no-floppy --fs-uuid --set 42fb0190-5572-43dc-8649-cdd43f409848
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-38-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd1,11)'
search --no-floppy --fs-uuid --set 42fb0190-5572-43dc-8649-cdd43f409848
linux /boot/vmlinuz-2.6.32-38-generic-pae root=UUID=42fb0190-5572-43dc-8649-cdd43f409848 ro quiet splash
initrd /boot/initrd.img-2.6.32-38-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-38-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd1,11)'
search --no-floppy --fs-uuid --set 42fb0190-5572-43dc-8649-cdd43f409848
echo 'Loading Linux 2.6.32-38-generic-pae ...'
linux /boot/vmlinuz-2.6.32-38-generic-pae root=UUID=42fb0190-5572-43dc-8649-cdd43f409848 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-38-generic-pae
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd1,11)'
search --no-floppy --fs-uuid --set 42fb0190-5572-43dc-8649-cdd43f409848
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd1,11)'
search --no-floppy --fs-uuid --set 42fb0190-5572-43dc-8649-cdd43f409848
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/sda2)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set C6E0C83EE0C83689
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 ###
--------------------------------------------------------------------------------

=============================== sdb11/etc/fstab: ===============================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb11 during installation
UUID=42fb0190-5572-43dc-8649-cdd43f409848 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb12 during installation
UUID=0f841b15-e43b-4659-8b86-7f329a71e860 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

374.212100983 = 401.807183872 boot/grub/core.img 1
376.258354187 = 404.004331520 boot/grub/grub.cfg 1
374.219505310 = 401.815134208 boot/initrd.img-2.6.32-38-generic-pae 1
374.208351135 = 401.803157504 boot/vmlinuz-2.6.32-38-generic-pae 1
374.219505310 = 401.815134208 initrd.img 1
374.208351135 = 401.803157504 vmlinuz 1

========================= sdd1/syslinux/syslinux.cfg: ==========================

--------------------------------------------------------------------------------
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
gfxboot bootlogo
--------------------------------------------------------------------------------

================= sdd1: Location of files loaded by Syslinux: ==================

GiB - GB File Fragment(s)

?? = ?? ldlinux.sys 1
?? = ?? syslinux/syslinux.cfg 1
?? = ?? syslinux/vesamenu.c32 1

============== sdd1: Version of COM32(R) files used by Syslinux: ===============

syslinux/vesamenu.c32 : COM32R module (v3.xx)

========= Devices which don't seem to have a corresponding hard drive: =========

sdc

=============================== StdErr Messages: ===============================

unlzma: Decoder error

60cents
January 29th, 2012, 05:06 AM
Ok I finally got Boot Repair installed, ran it and it said it had repaired grub and to reboot.
Before I did that I ran boot_info_script.sh again and this is what I got.

Thanks for helping and taking the time to look at these files.


Boot Info Script 0.60 from 17 May 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks in partition 11 for /boot/grub.
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sdb and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks in partition 11 for /boot/grub.
=> Syslinux MBR (3.61-4.03) is installed in the MBR of /dev/sdd.

sda1: __________________________________________________ ________________________

File system: vfat
Boot sector type: Dell Utility: FAT16
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /DELLBIO.BIN /DELLRMK.BIN /COMMAND.COM

sda2: __________________________________________________ ________________________

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

sda3: __________________________________________________ ________________________

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: /Windows/System32/winload.exe

sdb1: __________________________________________________ ________________________

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

sdb2: __________________________________________________ ________________________

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

sdb5: __________________________________________________ ________________________

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

sdb6: __________________________________________________ ________________________

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

sdb7: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /etc/fstab

sdb8: __________________________________________________ ________________________

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

sdb9: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /etc/fstab

sdb10: __________________________________________________ _______________________

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

sdb11: __________________________________________________ _______________________

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

sdb12: __________________________________________________ _______________________

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

sdd1: __________________________________________________ ________________________

File system: vfat
Boot sector type: SYSLINUX 3.86 2010-04-01
Boot sector info: Syslinux looks at sector 2499072 of /dev/sdd1 for its
second stage. No errors found in the Boot Parameter
Block.
Operating System:
Boot files: /syslinux/syslinux.cfg /ldlinux.sys

============================ 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 63 80,324 80,262 de Dell Utility
/dev/sda2 * 81,920 30,801,919 30,720,000 7 NTFS / exFAT / HPFS
/dev/sda3 30,801,920 625,140,399 594,338,480 7 NTFS / exFAT / HPFS


Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 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/sdb1 * 2,048 217,758,594 217,756,547 7 NTFS / exFAT / HPFS
/dev/sdb2 217,759,742 1,250,258,624 1,032,498,883 5 Extended
/dev/sdb5 871,028,298 1,234,788,029 363,759,732 83 Linux
/dev/sdb6 1,234,788,093 1,250,258,624 15,470,532 82 Linux swap / Solaris
/dev/sdb7 435,515,392 650,270,559 214,755,168 83 Linux
/dev/sdb8 863,168,512 871,026,687 7,858,176 82 Linux swap / Solaris
/dev/sdb9 217,759,744 427,653,119 209,893,376 83 Linux
/dev/sdb10 427,655,168 435,505,151 7,849,984 82 Linux swap / Solaris
/dev/sdb11 650,270,720 854,413,311 204,142,592 83 Linux
/dev/sdb12 854,415,360 863,156,223 8,740,864 82 Linux swap / Solaris


Drive: sdd __________________________________________________ ___________________

Disk /dev/sdd: 16.0 GB, 16008609792 bytes
255 heads, 63 sectors/track, 1946 cylinders, total 31266816 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/sdd1 * 32 31,266,815 31,266,784 c W95 FAT32 (LBA)


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 3030-3030 vfat DellUtility
/dev/sda2 C6E0C83EE0C83689 ntfs RECOVERY
/dev/sda3 A680CABF80CA9569 ntfs OS
/dev/sdb1 72FE404BFE4009B5 ntfs Linux Ubuntu
/dev/sdb10 b4b7ddfa-cb2d-409f-a572-a7b1852ea297 swap
/dev/sdb11 42fb0190-5572-43dc-8649-cdd43f409848 ext4
/dev/sdb12 0f841b15-e43b-4659-8b86-7f329a71e860 swap
/dev/sdb5 4d80b613-c529-4586-a02d-d86994244b38 ext4
/dev/sdb6 85d679a4-c6d5-402e-bed4-123eb8e10f0c swap
/dev/sdb7 daa5043d-4b0a-4826-a00f-1fd8d6569f4e ext4
/dev/sdb8 d11bb2c2-a2ed-486c-986b-dcc44d58f17d swap
/dev/sdb9 513e6121-b53d-4a22-b292-bd68a20efed5 ext4
/dev/sdd1 B0FA-E2B8 vfat PENDRIVE

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sda3 /media/OS fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
/dev/sdb1 /media/Linux Ubuntu fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
/dev/sdb5 /media/4d80b613-c529-4586-a02d-d86994244b38 ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb7 /media/daa5043d-4b0a-4826-a00f-1fd8d6569f4e ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb9 /media/513e6121-b53d-4a22-b292-bd68a20efed5 ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdd1 /cdrom vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,i ocharset=iso8859-1,shortname=mixed,errors=remount-ro)


=========================== sdb5/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 video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=10
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.0.0-15-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-3.0.0-15-generic-pae root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-15-generic-pae
}
menuentry 'Ubuntu, with Linux 3.0.0-15-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 3.0.0-15-generic-pae ...'
linux /boot/vmlinuz-3.0.0-15-generic-pae root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-15-generic-pae
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.0.0-15-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-3.0.0-15-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-15-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-15-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 3.0.0-15-generic ...'
linux /boot/vmlinuz-3.0.0-15-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-15-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-31-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-2.6.35-31-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.35-31-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-31-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 2.6.35-31-generic ...'
linux /boot/vmlinuz-2.6.35-31-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-31-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-37-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux /boot/vmlinuz-2.6.32-37-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.32-37-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-37-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
echo 'Loading Linux 2.6.32-37-generic ...'
linux /boot/vmlinuz-2.6.32-37-generic root=UUID=4d80b613-c529-4586-a02d-d86994244b38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-37-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='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 4d80b613-c529-4586-a02d-d86994244b38
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/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root C6E0C83EE0C83689
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 ###
--------------------------------------------------------------------------------

=============================== sdb5/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb5 during installation
UUID=4d80b613-c529-4586-a02d-d86994244b38 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb6 during installation
UUID=85d679a4-c6d5-402e-bed4-123eb8e10f0c none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

469.578782082 = 504.206377984 boot/grub/core.img 1
415.467801094 = 446.105154560 boot/grub/grub.cfg 1
428.972973824 = 460.606223360 boot/initrd.img-2.6.32-37-generic 2
433.291783333 = 465.243509760 boot/initrd.img-2.6.35-31-generic 2
418.143345833 = 448.977998848 boot/initrd.img-3.0.0-12-generic 2
470.341797829 = 505.025659904 boot/initrd.img-3.0.0-15-generic 3
470.408970833 = 505.097786368 boot/initrd.img-3.0.0-15-generic-pae 2
420.894494057 = 451.932021760 boot/vmlinuz-2.6.32-37-generic 1
419.014874458 = 449.913795584 boot/vmlinuz-2.6.35-31-generic 1
416.726761818 = 447.456953344 boot/vmlinuz-3.0.0-12-generic 1
469.768761635 = 504.410366976 boot/vmlinuz-3.0.0-15-generic 2
417.921246529 = 448.739521536 boot/vmlinuz-3.0.0-15-generic-pae 1

=============================== sdb7/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb7 during installation
UUID=daa5043d-4b0a-4826-a00f-1fd8d6569f4e / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb8 during installation
UUID=d11bb2c2-a2ed-486c-986b-dcc44d58f17d none swap sw 0 0
--------------------------------------------------------------------------------

=============================== sdb9/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb9 during installation
UUID=513e6121-b53d-4a22-b292-bd68a20efed5 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb10 during installation
UUID=b4b7ddfa-cb2d-409f-a572-a7b1852ea297 none swap sw 0 0
--------------------------------------------------------------------------------

========================== sdb11/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='(hd1,11)'
search --no-floppy --fs-uuid --set 42fb0190-5572-43dc-8649-cdd43f409848
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
if [ ${recordfail} = 1 ]; then
set timeout=10
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-38-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd1,11)'
search --no-floppy --fs-uuid --set 42fb0190-5572-43dc-8649-cdd43f409848
linux /boot/vmlinuz-2.6.32-38-generic-pae root=UUID=42fb0190-5572-43dc-8649-cdd43f409848 ro quiet splash
initrd /boot/initrd.img-2.6.32-38-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-38-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd1,11)'
search --no-floppy --fs-uuid --set 42fb0190-5572-43dc-8649-cdd43f409848
echo 'Loading Linux 2.6.32-38-generic-pae ...'
linux /boot/vmlinuz-2.6.32-38-generic-pae root=UUID=42fb0190-5572-43dc-8649-cdd43f409848 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-38-generic-pae
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd1,11)'
search --no-floppy --fs-uuid --set 42fb0190-5572-43dc-8649-cdd43f409848
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd1,11)'
search --no-floppy --fs-uuid --set 42fb0190-5572-43dc-8649-cdd43f409848
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/sda2)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set C6E0C83EE0C83689
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 ###
--------------------------------------------------------------------------------

=============================== sdb11/etc/fstab: ===============================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb11 during installation
UUID=42fb0190-5572-43dc-8649-cdd43f409848 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb12 during installation
UUID=0f841b15-e43b-4659-8b86-7f329a71e860 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

374.202125549 = 401.796472832 boot/grub/core.img 1
374.200534821 = 401.794764800 boot/grub/grub.cfg 1
374.219505310 = 401.815134208 boot/initrd.img-2.6.32-38-generic-pae 1
374.208351135 = 401.803157504 boot/vmlinuz-2.6.32-38-generic-pae 1
374.219505310 = 401.815134208 initrd.img 1
374.208351135 = 401.803157504 vmlinuz 1

========================= sdd1/syslinux/syslinux.cfg: ==========================

--------------------------------------------------------------------------------
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
gfxboot bootlogo
--------------------------------------------------------------------------------

================= sdd1: Location of files loaded by Syslinux: ==================

GiB - GB File Fragment(s)

?? = ?? ldlinux.sys 1
?? = ?? syslinux/syslinux.cfg 1
?? = ?? syslinux/vesamenu.c32 1

============== sdd1: Version of COM32(R) files used by Syslinux: ===============

syslinux/vesamenu.c32 : COM32R module (v3.xx)

========= Devices which don't seem to have a corresponding hard drive: =========

sdc

60cents
January 29th, 2012, 05:17 AM
Running Boot Repair seemed to do the trick as I now have Ubuntu 10.04LTS installed and running.
Thanks drs305 for your help.
Hope this is useful for someone else

varunendra
January 29th, 2012, 11:07 AM
/dev/sdb1 * 2,048 217,758,594 217,756,547 7 NTFS / exFAT / HPFS
/dev/sdb2 217,759,742 1,250,258,624 1,032,498,883 5 Extended
/dev/sdb5 871,028,298 1,234,788,029 363,759,732 83 Linux
/dev/sdb6 1,234,788,093 1,250,258,624 15,470,532 82 Linux swap / Solaris
/dev/sdb7 435,515,392 650,270,559 214,755,168 83 Linux
/dev/sdb8 863,168,512 871,026,687 7,858,176 82 Linux swap / Solaris
/dev/sdb9 217,759,744 427,653,119 209,893,376 83 Linux
/dev/sdb10 427,655,168 435,505,151 7,849,984 82 Linux swap / Solaris
/dev/sdb11 650,270,720 854,413,311 204,142,592 83 Linux
/dev/sdb12 854,415,360 863,156,223 8,740,864 82 Linux swap / Solaris

WOW!!:shock:
9 partitions, of which 4 are swap, one of which is approx. 15GB and the rest 7-8GB (approx)!!! [Edit: Oops! calculation mistake! Didn't notice that the sizes are given in 'no. of sectors', not in 'blocks'#-o. This makes the swap sizes to be approx 7GB (still too large if no hibernation is required) and 3-4 GB approx]
Buddy, unless you are into some really-really serious (or really crazy) deal, you sure need some serious counseling :D [well.. with the above correction, it doesn't seem so serious or crazy now ;)]

Let's start with this:
First:
Since you can use only one linux installation at a time, you only need ONE swap partition. It's ideal size (in my opinion) should be 2GB regardless of the amount of physical memory (RAM) you have. But IF you want to use hibernation feature, then make it as large as the physical RAM is (but 2GB at least).

Second (related with posting):
When you post outputs of some commands, make sure to wrap them in 'code' tags to preserve their formatting and make them easily readable.

To do so, just click on the # symbol at the top of the edit-box (in which you create/edit your posts) - to automatically create [ code]..and..[ /code] tags, then copy-paste (only) the output code in-between those tags.
It will make the output appear in a friendly box like the one in post #4 (drs305 did it for you.. say thanks to him ;))


Sorry for the unsolicited advice, but hope it'll help you enjoying ubuntu as well as your time on the forums in a better way :)

drs305
January 29th, 2012, 01:22 PM
Glad Boot Repair was able to fix things for you.

varunendra is correct about needing only one swap partition.

If you decide to remove the additional swap partititons, decide which one you want to keep. When you boot into each Ubuntu you use, open the /etc/fstab file and change the UUID of the swap partition to match.

The "# swap was on sdXY ..." line should be manually changed to reflect the new information (sdXY) or removed. It's not automatically updated by fstab and leaving it with the wrong device (sdb6, sdb12, etc) might lead to confusion.

# swap was on /dev/sdb6 during installation
UUID=85d679a4-c6d5-402e-bed4-123eb8e10f0c none swap sw 0
The text in bold are the items to check in each /etc/fstab file when you boot into that OS.

You will then want to udpate the system to recognize the new swap for hibernation:

echo "RESUME=UUID=<new uuid here>" | sudo tee /etc/initramfs-tools/conf.d/resume
sudo update-initramfs -uk all
Example:
echo "RESUME=UUID=85d679a4-c6d5-402e-bed4-123eb8e10f0c" | sudo tee /etc/initramfs-tools/conf.d/resume

60cents
January 29th, 2012, 10:12 PM
Hey guys thanks for the fantastic help.
I have no idea how all those partitions were created and I believe that they are on an extra hard drive that I was not using. Guess I am using it now because I think that is where Ubuntu resides.
I need to consolidate all those partitions and have one swap partition and I plan to work on that.

I'm still having boot issues but I hope those are now solved.
After 10.04 was installed and running correctly I rebooted only to have the same grub repair message on rebooting. Ok I got Boot Repair again and fixed the boot file.
Then I upgraded to 11.04 and once again after rebooting I had the same grub repair message. Once again I did the boot repair thing and am now using 11.04. I hope that I don't have to do this every time I start my computer.

And BTW I love Ubuntu and am a regular user. But I guess I've been lulled to sleep on programming/debugging issues. I know very little about Linux or the software behind Ubuntu. This has been a learning experience that I hadn't anticipated.

Thanks for the great help on this forum. It is what makes the software really tick

drs305
January 29th, 2012, 10:57 PM
60cents,

With multiple Ubuntu's, one of the possibilities of your recurring problems is that the Grub 2 you 'fix' is not the Grub 2 that boots. This often leads to confusion. Here's some background:

As the Grub menu displays, note the top menu item. Assuming you haven't modified the grub scripts, this is the OS that controls your Grub menu.

If you are booting a dfiferent Ubuntu lower on the list (not just a different kernel of the same OS), the Grub menu you see is NOT the Grub that controls the system. When you run normal grub-related commands once you boot they have no affect on the booting Grub even though they will affect the files in your current OS.

To fix this issue:
Boot into the Ubuntu you want to control Grub (normally the Ubuntu you use the most).
Run this to make it the controlling grub (assuming sda is your booting drive and the one with Ubuntu. Don't use the partition number)

sudo grub-install /dev/sda