LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How to restore boot loader on Ubuntu 11.04 - 2011 (https://www.linuxquestions.org/questions/ubuntu-63/how-to-restore-boot-loader-on-ubuntu-11-04-2011-a-890587/)

dolphans1 07-08-2011 08:44 AM

How to restore boot loader on Ubuntu 11.04 - 2011
 
Hello,

I am not sure what happened or what I did, but when I start my PC up, I do not physically see my boot menu splash screen to select.scroll down to Ubuntu or Windows when booting up.

My screen goes black (monitor light turns yellow) and after a few minutes monitor light turns green, Ubuntu log-in screen boots appears, where you have to enter your password.

Can someone tell me what is going on...?

Is there anyway to restore my dual boot loader to the original state...without reinstalling?

Thanks,

d-1

andrewthomas 07-08-2011 08:57 AM

If you hold down the 'shift' key, the grub screen should appear.

Check out this thread and the link it contains:

http://www.linuxquestions.org/questi...1/#post4392037

dolphans1 07-08-2011 09:17 AM

Thanks Andrew, I tried that, even though I felt skeptical about it and that did not work.

But thanks,

d-1

andrewthomas 07-08-2011 09:23 AM

Did you hold down the shift key the entire duration of the BIOS POST?

Quote:

Hidden
The user can interrupt the boot process and display the menu by holding down the SHIFT key until the menu displays. Grub 2 searches for a depressed SHIFT key signal during boot. If the key is pressed or Grub 2 cannot determine the status of the key, the menu is displayed. Note: The "SHIFT" keystatus check is currently nested within in a conditional statement within /etc/grub.d/30_os-prober and may not work under certain circumstances.
The time the screen remains blank but available for display is determined by a setting in /etc/default/grub.
To provide visual feedback during while the countdown continues, a countdown display can be shown on the screen.
At the end of the timeout, the default entry determined in /etc/default/grub will be selected.
http://ubuntuforums.org/showthread.php?t=1195275

widget 07-08-2011 06:21 PM

Yes holding the shift key should work.

However, if you are booting into Ubuntu you could check grub out from there and make sure it has every thing it should have. It does not right now. If you had your Win JerryLewis Pro in the menu it would show up as with more than one OS grub displays, or is supposed to display the menu.

I would think that you should boot to Ubuntu and run this script;
http://bootinfoscript.sourceforge.net/

and post it here.

You could also just try running, in terminal;
Code:

sudo update-grub]
and then;
Code:

sudo grub-mkconfig
The last command will print your /boot/grub/grub.cfg file (which is where your menu screen menu comes from) out in your terminal so you can check to make sure it is right.

bobbyroylee 07-08-2011 06:36 PM

What I'm thinking happened, which has happened to me, is he had Ubuntu installed, then he went and installed Windows. Windows automatically overwrites Grub, and along with that; can't boot Ubuntu.
Sorry I can't provide further help if that's the situation considering I'm in the exact same one. (Just not caring about the linux partition.)

dolphans1 07-08-2011 10:54 PM

No Bobbyroylee, windows7 was already there, I just installed the new version of Ubuntu because the old version was no longer seeing my iPhone, so I am upgraded to the new version. I ran a few tweaks here and there, and now my screen goes black, but eventually boots to Ubuntu, but bypasses bootloader.

My SuperGrub CD allows me to boot to windows or Ubuntu, but somehow I have to figure out a way to restore bootloader.

I ran this:

$ sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ...

Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
Searching for splash image ... none found, skipping ...
Found kernel: /boot/memtest86+.bin
Found kernel: /boot/vmlinuz-2.6.38-8-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

sudo grub-mkconfig
Generating 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='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root 85032c9e-8499-480e-9be3-843590f12180
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root 85032c9e-8499-480e-9be3-843590f12180
set locale_dir=($root)/boot/grub/locale
set lang=en_US
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
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
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root 85032c9e-8499-480e-9be3-843590f12180
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=85032c9e-8499-480e-9be3-843590f12180 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root 85032c9e-8499-480e-9be3-843590f12180
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=85032c9e-8499-480e-9be3-843590f12180 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-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+ ###
Found memtest86+ image: /boot/memtest86+.bin
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root 85032c9e-8499-480e-9be3-843590f12180
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root 85032c9e-8499-480e-9be3-843590f12180
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
Found Windows 7 (loader) on /dev/sda1
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 286803116802DE06
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 ###
done

andrewthomas 07-08-2011 10:54 PM

Quote:

Originally Posted by bobbyroylee (Post 4409285)
What I'm thinking happened, which has happened to me, is he had Ubuntu installed, then he went and installed Windows. Windows automatically overwrites Grub, and along with that; can't boot Ubuntu.
Sorry I can't provide further help if that's the situation considering I'm in the exact same one. (Just not caring about the linux partition.)

If this was the case, then it would boot directly into windows, not ubuntu.

dolphans1 07-08-2011 11:02 PM

Your right Andrew, Windows7 was already there.

When I installed Ubuntu 11.04, the boot loader worked fine, but somehow, it bypasses the bootloader, my monitor light turns yellow, which indicates to me my video driver is not working, screen goes black, and after 3 minutes or so, Ubuntu appears.

I tried everything above with no positive results.

d-1

andrewthomas 07-08-2011 11:23 PM

You probably will have to purge and reinstall grub2, but first could you do as widget suggested EXCEPT run the bootinfoscript from the Ubuntu LiveCD.

Boot the LiveCD and go to http://bootinfoscript.sourceforge.net and post the results between tags in your reply.

What you probably will have to do is follow this:

Quote:

Originally Posted by drs305 Ubuntu Master Roaster

HOWTO: Purge and Reinstall Grub 2


Note: If you can get to your normal installation without using a Live CD the chroot procedure is not necessary and you need only Steps 2-5.

I would recommend this procedure only after running meierfra's boot info script and finding no obvious discrepancies. The reasons for this include:
During this procedure, you will temporarily have no bootloader on your system.
If you designated the wrong drive/partition during the initial install, you may make the same mistake again.
You will lose any customizations you have made to your Grub 2 configuration files.
Other methods, such as "grub-install" or "grub-install --reinstall" are less intrusive on your system. Doing the least necessary to fix a system is generally a good idea.


http://ubuntuforums.org/showthread.p...ighlight=grub2

widget 07-08-2011 11:32 PM

Purging and reinstalling grub sounds like a good idea. "update-grub" should not be looking for the menu.list at all.

You could also edit the /etc/default/grub file to make sure that it is not calling for a hidden menu. If it is not calling for that purging and reinstalling would definitely be the way to go.

If you can boot to Ubuntu you do not need the LiveCD to run the bootinfo script.

andrewthomas 07-08-2011 11:42 PM

Quote:

Originally Posted by widget (Post 4409485)
Purging and reinstalling grub sounds like a good idea. "update-grub" should not be looking for the menu.list at all.

I think that he ran that command from the supergrub CD.

Quote:

Originally Posted by widget (Post 4409485)
If you can boot to Ubuntu you do not need the LiveCD to run the bootinfo script.

My bad. You can run it from your install.

dolphans1 07-08-2011 11:43 PM

I ran this in LiveCD:

sudo bash ~/Downloads/boot_info_script.sh

boot_info_script version: 0.60 [17 May 2011]


"gawk" could not be found, using "busybox awk" instead.
This may lead to unreliable results.

Identifying MBRs...
Computing Partition Table of /dev/sda...
Searching sda1 for information...
Searching sda2 for information...
Searching sda3 for information...
Searching sda5 for information...
Searching sda6 for information...
Searching sda7 for information...
Searching sda8 for information...
Searching sda9 for information...

Finished. The results are in the file "RESULTS.txt"
located in "/home/ubuntu/Downloads/".

Results :

Boot Info Script 0.60 from 17 May 2011


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

=> Grub2 (v1.99) 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
for (,msdos8)/boot/grub on this drive.

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files:

sda7: __________________________________________________________________________

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

sda8: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.04
Boot files: /boot/grub/menu.lst /boot/grub/grub.cfg /etc/fstab

sda9: __________________________________________________________________________

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

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sda2 206,848 1,024,591,679 1,024,384,832 7 NTFS / exFAT / HPFS
/dev/sda3 1,024,591,870 1,953,519,119 928,927,250 5 Extended
/dev/sda5 1,049,781,663 1,057,961,519 8,179,857 82 Linux swap / Solaris
/dev/sda6 1,057,961,583 1,953,519,119 895,557,537 83 Linux
/dev/sda7 1,043,757,056 1,049,767,935 6,010,880 82 Linux swap / Solaris
/dev/sda8 1,024,591,872 1,037,729,791 13,137,920 83 Linux
/dev/sda9 1,037,731,840 1,043,742,719 6,010,880 82 Linux swap / Solaris


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 286803116802DE06 ntfs System Reserved
/dev/sda2 9E60055060053117 ntfs
/dev/sda5 886238a4-5192-4156-a509-e82d88d07dd3 swap
/dev/sda6 b8a3ab00-1f93-4f5a-9f99-f6697aa48ed3 ext3
/dev/sda7 d62e06de-8148-4aad-a176-497db9829f79 swap
/dev/sda8 85032c9e-8499-480e-9be3-843590f12180 ext4
/dev/sda9 f72a940c-bf59-4ce5-9111-ab0b61c6d68e swap

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

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sr0 /cdrom iso9660 (ro,noatime)


=========================== sda8/boot/grub/menu.lst: ===========================

--------------------------------------------------------------------------------
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=85032c9e-8499-480e-9be3-843590f12180 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=85032c9e-8499-480e-9be3-843590f12180

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 11.04, kernel 2.6.38-8-generic
uuid 85032c9e-8499-480e-9be3-843590f12180
kernel /boot/vmlinuz-2.6.38-8-generic root=UUID=85032c9e-8499-480e-9be3-843590f12180 ro quiet splash
initrd /boot/initrd.img-2.6.38-8-generic

title Ubuntu 11.04, kernel 2.6.38-8-generic (recovery mode)
uuid 85032c9e-8499-480e-9be3-843590f12180
kernel /boot/vmlinuz-2.6.38-8-generic root=UUID=85032c9e-8499-480e-9be3-843590f12180 ro single
initrd /boot/initrd.img-2.6.38-8-generic

title Ubuntu 11.04, memtest86+
uuid 85032c9e-8499-480e-9be3-843590f12180
kernel /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST
--------------------------------------------------------------------------------

=========================== sda8/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='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root 85032c9e-8499-480e-9be3-843590f12180
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root 85032c9e-8499-480e-9be3-843590f12180
set locale_dir=($root)/boot/grub/locale
set lang=en_US
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
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 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root 85032c9e-8499-480e-9be3-843590f12180
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=85032c9e-8499-480e-9be3-843590f12180 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root 85032c9e-8499-480e-9be3-843590f12180
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=85032c9e-8499-480e-9be3-843590f12180 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-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='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root 85032c9e-8499-480e-9be3-843590f12180
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root 85032c9e-8499-480e-9be3-843590f12180
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 286803116802DE06
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 ###
--------------------------------------------------------------------------------

=============================== sda8/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
/dev/sda8 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda9 during installation
UUID=f72a940c-bf59-4ce5-9111-ab0b61c6d68e none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

491.190643311 = 527.411937280 boot/grub/grub.cfg 1
492.809631348 = 529.150312448 boot/grub/menu.lst 2
493.122852325 = 529.486630912 boot/initrd.img-2.6.38-8-generic 2
492.926403046 = 529.275695104 boot/vmlinuz-2.6.38-8-generic 1
493.122852325 = 529.486630912 initrd.img 2
492.926403046 = 529.275695104 vmlinuz 1

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

sdb

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

unlzma: Decoder error

dolphans1 07-08-2011 11:52 PM

The above didn't work either, same issue...no boot loader....

d-1

andrewthomas 07-08-2011 11:59 PM

Your bootinfoscript output looks like it should.

If the beginning of your /etc/default/grub looks like this:

Code:

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

and it still does not work, then you should follow the instructions in the link I gave to purge and reinstall grub.


All times are GMT -5. The time now is 01:45 AM.