grub bug

Booting, installing, newbie
Post Reply
Message
Author
User avatar
o4tuna
Posts: 24
Joined: Wed 07 Feb 2007, 03:33

grub bug

#1 Post by o4tuna »

Ok, I like puppy alot, it has always worked well for me. But when I decided to wipe windows & install linux, the package availability caused me to give ubuntu a try, instead. I ran into a pretty big problem with grub & my combination of SATA & IDE drives. A nice guy over on the ubuntu forums helped me fix it. BUT, I couldn't get any help with getting my video card driver working, so I'm back to Puppy, seems like a nicer community.

I am having the same issue with puppy & grub, it seems to number the drives one way when booting from the cd & a different way when booting from the hdd.

The solution we came to in this thread:
http://www.ubuntuforums.org/showthread.php?t=351974
worked, but the files (especially menu.lst) are different in puppy & I can't get it to work the same. Any ideas?

Current menu.lst (may not be puppy standard, SGD may have modified it)
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'. Mon Feb 12 00:04:54 2007
#
# The backup copy of the MBR for drive '/dev/sda' is
# here '/boot/grub/mbr.sda.29472'. You can restore it like this.
# dd if=/boot/grub/mbr.sda.29472 of=/dev/sda bs=512 count=1
#
# Start GRUB global section
#timeout 30
color light-gray/blue black/light-gray
# End GRUB global section
# Linux bootable partition config begins
title Linux (on /dev/sda1)
root (hd3,0)
kernel /boot/vmlinuz root=/dev/sda1 ro vga=normal
# Linux bootable partition config ends
title Install GRUB to floppy disk (on /dev/fd0)
pause Insert a formatted floppy disk and press enter.
root (hd3,0)
setup (fd0)
pause Press enter to continue.
title Install GRUB to Linux partition (on /dev/sda1)
root (hd3,0)
setup (hd3,0)
pause Press enter to continue.
title - For help press 'c', then type: 'help'
root (hd0)
title - For usage examples, type: 'cat /boot/grub/usage.txt'
root (hd0)

Current device.map
(hd0) /dev/hdb
(hd1) /dev/hdc
(hd2) /dev/hdd
(hd3) /dev/sda
(hd4) /dev/sdb

The edited menu.lst (which didn't work)
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'. Wed Feb 7 18:15:02 2007
#
# The backup copy of the MBR for drive '/dev/hdb' is
# here '/boot/grub/mbr.hdb.20900'. You can restore it like this.
# dd if=/boot/grub/mbr.hdb.20900 of=/dev/hdb bs=512 count=1
#
# Start GRUB global section
#timeout 30
color light-gray/blue black/light-gray
# End GRUB global section
# Linux bootable partition config begins
title Linux (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 ro vga=normal
# Linux bootable partition config ends
# Other bootable partition config begins
title Windows (on /dev/sda1)
map (hd0) (hd0)
map (hd0) (hd0)
rootnoverify (hd4,0)
makeactive
chainloader +1
# Other bootable partition config ends
# Other bootable partition config begins
title Windows (on /dev/hdc1)
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
# Other bootable partition config ends
# Other bootable partition config begins
title Windows (on /dev/hdd1)
map (hd0) (hd2)
map (hd2) (hd0)
rootnoverify (hd2,0)
makeactive
chainloader +1
# Other bootable partition config ends
title Install GRUB to floppy disk (on /dev/fd0)
pause Insert a formatted floppy disk and press enter.
root (hd0,0)
setup (fd0)
pause Press enter to continue.
title Install GRUB to Linux partition (on /dev/sda1)
root (hd0,0)
setup (hd0,0)
pause Press enter to continue.
title - For help press 'c', then type: 'help'
root (hd0)
title - For usage examples, type: 'cat /boot/grub/usage.txt'
root (hd0)

The edited device.map
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/hda
(hd3) /dev/hdb
(hd4) /dev/hdc

User avatar
o4tuna
Posts: 24
Joined: Wed 07 Feb 2007, 03:33

It's Alive!

#2 Post by o4tuna »

Well, as I was looking at the files I posted, I realized I hadn't attempted to edit THAT one...

I tried, it worked!

Like this:
menu.lst
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'. Mon Feb 12 00:04:54 2007
#
# The backup copy of the MBR for drive '/dev/sda' is
# here '/boot/grub/mbr.sda.29472'. You can restore it like this.
# dd if=/boot/grub/mbr.sda.29472 of=/dev/sda bs=512 count=1
#
# Start GRUB global section
#timeout 30
color light-gray/blue black/light-gray
# End GRUB global section
# Linux bootable partition config begins
title Linux (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 ro vga=normal
# Linux bootable partition config ends
title Install GRUB to floppy disk (on /dev/fd0)
pause Insert a formatted floppy disk and press enter.
root (hd0,0)
setup (fd0)
pause Press enter to continue.
title Install GRUB to Linux partition (on /dev/sda1)
root (hd0,0)
setup (hd0,0)
pause Press enter to continue.
title - For help press 'c', then type: 'help'
root (hd0)
title - For usage examples, type: 'cat /boot/grub/usage.txt'
root (hd0)

device.map
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/hda
(hd3) /dev/hdb
(hd4) /dev/hdc

Well thanks for looking, maybe this mess will help someone else...

Post Reply