Click to See Complete Forum and Search --> : [SOLVED] Grub boot menu problem


OBnascar
09-21-2006, 01:27 PM
I have WinXP on hda1 30gb, FreeSpire hdb1 14gb, Kubuntu hdb4 20gb, and Ubuntu hdb6 20gb.

I stared out with WinXP and Ubuntu and used the rest of hdb for storage. I was trying out a FreeSpire live CD and it seemed to run well so I installed that on hdb1 writing to the mbr, but when I booted up FreeSpire could not see my Ubuntu, FreeSpire ran just fine. But Ubuntu was my main OS. I tried editing the FreeSpire menu.lst with no luck to get Ubuntu back on the FreeSpire boot menu.

Then I ended up installing Kubuntu because it is very good at seeing other OS's. This worked well except I got an error when booting into FreeSpire. Below I will show the last few lines when trying to boot into FreeSpire. I am hoping maybe some might know what the problem could be and if there is a fix for it.

This is the last few lines of the boot error to access FreeSpire:
suspend 2.2-4c15: you need to use a resume2=command line parameter to tell suspend2 where to look for an image.
resume2 parameter is emty. missing or invalid storage location. please correct and rerun grub. kernel panic-not syncing. vfs:unable to mount root fs on known block (3.65)

This is my 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-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 change this entry to 'saved' 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 10

## 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=/dev/hdb4 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,3)

## 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

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) 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

## 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

## ## End Default Options ##

title Kubuntu, kernel 2.6.15-27-386
root (hd1,3)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hdb4 ro quiet splash
initrd /boot/initrd.img-2.6.15-27-386
savedefault
boot

title Kubuntu, kernel 2.6.15-27-386 (recovery mode)
root (hd1,3)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hdb4 ro single
initrd /boot/initrd.img-2.6.15-27-386
boot

title Kubuntu, memtest86+
root (hd1,3)
kernel /boot/memtest86+.bin
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hdb1.
title FreeSpire (3.1) (on /dev/hdb1)
root (hd1,0)
kernel /boot/vmlinuz-2.6.14-gratis root=/dev/hdb1
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hdb6.
title Ubuntu, kernel 2.6.15-26-386 (on /dev/hdb6)
root (hd1,5)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hdb6 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hdb6.
title Ubuntu, kernel 2.6.15-26-386 (recovery mode) (on /dev/hdb6)
root (hd1,5)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hdb6 ro single
initrd /boot/initrd.img-2.6.15-26-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hdb6.
title Ubuntu, memtest86+ (on /dev/hdb6)
root (hd1,5)
kernel /boot/memtest86+.bin
savedefault
boot

obnascar@emachines2:~$ sudo fdisk -l

Disk /dev/hda: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 3648 29302528+ c W95 FAT32 (LBA)

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 1824 14651248+ 83 Linux
/dev/hdb2 1825 4402 20707785 5 Extended
/dev/hdb3 4403 6952 20482875 83 Linux
/dev/hdb4 6953 9729 22306252+ 83 Linux
/dev/hdb5 1825 1970 1172713+ 82 Linux swap / Solaris
/dev/hdb6 1971 4402 19535008+ 83 Linux

Disk /dev/sda: 259 MB, 259522560 bytes
65 heads, 32 sectors/track, 243 cylinders
Units = cylinders of 2080 * 512 = 1064960 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 244 253424 4 FAT16 <32M
Partition 1 has different physical/logical endings:
phys=(249, 64, 32) logical=(243, 44, 32)

Does anyone have an idea how I can get FreeSpire to boot up again ? If more info is needed let me know please !

regards,
OBnascar

Icarus
09-21-2006, 02:22 PM
that is most likely the problem, listings in the menu.lst have to be exact, path and name.
You should be able to boot one of the other Linux installs and mount the Frespire drive and check the /boot for which kernel it should be using...then make the changes in the menu.lst

OBnascar
09-21-2006, 02:47 PM
that is most likely the problem, listings in the menu.lst have to be exact, path and name. You should be able to boot one of the other Linux installs and mount the Frespire drive and check the /boot for which kernel it should be using...then make the changes in the menu.lst

I edited my first thread after you posted this. I was in error, FeeSpire "/boot/vmlinuz-2.6.14-gratis" does exist and is the correct path. Below is the original from the Freespire /boot/grub/menu-normal.list when it did boot up before I installed Kubuntu.

Can I just copy and paste this into Kubuntu menu.lst ? Or does it have to be edited first ?

# hdb1, boot entry
title Freespire Ver. 1.0.13
root (hd0,0)
kernel /boot/vmlinuz-2.6.14-gratis root=/dev/ide/host0/bus0/target1/lun0/part1 rootdev=0x0341 ramdisk=35392 video=vesafb:nomtrr jiffymount=noatime resume2=swap:/dev/hdb1:0x44000 vga=0x311 splash=silent
initrd /boot/initrd-2.6.14-gratis.gz

Let me know what you think ! please.......

Icarus
09-21-2006, 05:10 PM
That's what I would do, copy the listing over. the devices should be the same so a straight copy should do it

saikee
09-21-2006, 05:42 PM
Think the root should be

root (hd1,0)

if Freespire is in hdb1. (hd0,0) is hda1.

OBnascar
09-21-2006, 05:59 PM
Think the root should be root (hd1,0) if Freespire is in hdb1.

I agree with that..
and it still would not boot, but it is booting further, I get a new error message and will post back with that later.

thanks,
OBnascar

saikee
09-21-2006, 06:48 PM
OK You have Ubuntu's Grub working, right?

Pressing "c" will drop you in a Grub prompt. With a Grub prompt you can boot Freespire manually.

Usually by typing the lines in menu.lst will be enough. Since you have a bit of a problem I would boot it with the following lines
root (hd1,0)
kernel /boot/vmlinuz-2.6.14-gratis root=/dev/hdb1 ro
initrd /boot/initrd-2.6.14-gratis.gz
boot

In a Grub prompt your Ubuntu can be booted manually by
root (hd1,3)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hdb4 ro quiet splash
initrd /boot/initrd.img-2.6.15-27-386
boot
while XP will be fired up by
root (hd0,0)
chainloader +1
boot
Let us know if you still have a problem.

If the system boots use the manual booting commands except adding the "title" line to identify the system. The "boot" command may be omitted in the menu.lst. Since only XP use the bootable flag the partition hda1 will always be active and no need to make it active every time as Linux doesn't uses the bootable flag.

Lastly when using Grub to boot a system manually Grub will return a message and warns you if the line doesn't work. That is how you know exactly where the problem is.

OBnascar
09-21-2006, 08:02 PM
OK You have Ubuntu's Grub working, right?

Yes

Usually by typing the lines in menu.lst will be enough. Since you have a bit of a problem I would boot it with the following lines
root (hd1,0)
kernel /boot/vmlinuz-2.6.14-gratis root=/dev/hdb1 ro
initrd /boot/initrd-2.6.14-gratis.gz
boot

Doing this Freespire totally disapears from the boot menu !

If the system boots use the manual booting commands except adding the "title" line to identify the system. The "boot" command may be omitted in the menu.lst. Since only XP use the bootable flag the partition hda1 will always be active and no need to make it active every time as Linux doesn't uses the bootable flag.

Lastly when using Grub to boot a system manually Grub will return a message and warns you if the line doesn't work. That is how you know exactly where the problem is.

I am a little confused on these statements, I'll have to think about this for a while......thanks

OBnascar
09-21-2006, 08:39 PM
I tried the manual boot, I really do not know what I was doing but nothing else I got familiar with it anyway. So when I entered this manually:

root (hd1,3)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hdb4 ro quiet splash
initrd /boot/initrd.img-2.6.15-27-386
boot
I got an error "file not found"

But when I entered this:root (hd1,0)
kernel /boot/vmlinuz-2.6.14-gratis root=/dev/hdb1 ro
initrd /boot/initrd-2.6.14-gratis.gz
boot
It gave me some technical information, no errors.

Did we gain anything ? Is there a clue here ?.....let me know please, thanks again.

OBnascar
09-21-2006, 10:08 PM
I want to thank you all (to many names to list), but you know who you are.

I finally lucked out and found the correct entry to use to get Freespire to boot. It was a combination of what you all suggested and the original Freespire menu-normal.lst entry that I posted earlier.

It ended up being this that worked:
title Freespire Ver. 1.0.13
root (hd1,0)
kernel /boot/vmlinuz-2.6.14-gratis root=/dev/ide/host0/bus0/target1/lun0/part1 rootdev=0x0341 ramdisk=35392
initrd /boot/initrd-2.6.14-gratis.gz
savedefault
boot

I tell you what, you all really helped me to learn more about grub, as you could tell, I did not know much about it. I was always kind of scared to touch it.

I appreciate your patients and efforts to help me, thank you very much,
OBnascar

Icarus
09-22-2006, 10:37 AM
Great! And if you wish to further your knowledge of Grub here's pretty much all you'll need (looks like I could learn a lot from this too)
http://www.linuxtopia.org/online_books/linux_system_administration/gnu_grub_administration_guide/index.html

OBnascar
09-22-2006, 11:06 AM
Great! And if you wish to further your knowledge of Grub here's pretty much all you'll need (looks like I could learn a lot from this too)
http://www.linuxtopia.org/online_books/linux_system_administration/gnu_grub_administration_guide/index.html

That is a good site Icarus, thanks !