View previous topic :: View next topic |
Author |
Message |
wfp n00b
Joined: 24 Sep 2004 Posts: 3
|
Posted: Fri Sep 24, 2004 5:55 pm Post subject: grub works, but not automatically (FIXED!!) |
|
|
Install went well on a dual processor Xeon (Dell 530). I reconfigured the kernel and it works. Grub was installed and it almost works.
Almost means that I get the command line instead of the menu I set up in the grub.conf. I can boot the system from there. I can even load the grub.conf from there and it all works. That in particular pisses me off. It seems it is just not finding the file. No dual boot, all very vanilla. Just can't figure it out.
I have tried any number of things (unemerged then re-emerge grub, rewriting the grub.conf from scratch, read various alternatives to the setup), nothing gets the menu automatically. Any help appreciated. Below are the relevant portions of files. Thanks in advance
from /etc/fstab
/dev/hda1 /boot ext2 defaults,noatime 1 2
/dev/hda2 none swap sw 0 0
/dev/hda3 / ext3 noatime 0 1
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,user 0 0
/etc/mtab
/dev/hda3 / ext3 rw,noatime 0 0
none /dev devfs rw 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
/dev/hda1 /boot ext2 rw,noatime 0 0
none /dev/shm tmpfs rw 0 0
none /proc/bus/usb usbfs rw 0 0
/boot/grub/grub.conf
default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Gentoo 2.6.8-r3
kernel /kernel-2.6.8-gentoo-r3 root=/dev/hda3
Last edited by wfp on Fri Sep 24, 2004 8:30 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54420 Location: 56N 3W
|
Posted: Fri Sep 24, 2004 6:00 pm Post subject: |
|
|
wfp,
Change
Code: | kernel /kernel-2.6.8-gentoo-r3 root=/dev/hda3 | to
Code: | kernel (hd0,0)/kernel-2.6.8-gentoo-r3 root=/dev/hda3 |
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
LordBug Tux's lil' helper
Joined: 25 Jan 2003 Posts: 88
|
Posted: Fri Sep 24, 2004 6:43 pm Post subject: |
|
|
Personally, I'd do something more like this:
Code: | title=Gentoo Linux 2.4.26-r6
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3
initrd /initrd-2.4.26-gentoo-r6
|
Either way, you need to tell grub where, exactly, the kernel is. |
|
Back to top |
|
|
wfp n00b
Joined: 24 Sep 2004 Posts: 3
|
Posted: Fri Sep 24, 2004 7:48 pm Post subject: |
|
|
Thanks for the suggestions. I did try adding either the (hd0,0) part or the root command. Neither worked. Updated grub.conf below:
/boot/grub/grub.conf
default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Gentoo 2.6.8-r3
kernel (hd0,0)/kernel-2.6.8-gentoo-r3 root=/dev/hda3
Again, on a reboot from the command line (which is all I get) I can do the following:
grub> configfile /grub/grub.conf
... and the damn thing loads the menu and gives me the (one) choice I've listed. .I'm used to lilo, so don't know grub well. I have done the following after each change to the grub.conf
>grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
>
Is there something else I should be doing? Thank you for all your help. |
|
Back to top |
|
|
shade266 Guru
Joined: 29 Oct 2003 Posts: 593 Location: Internal
|
Posted: Fri Sep 24, 2004 8:03 pm Post subject: |
|
|
Quote: | >grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit |
is in correct... it should read as such
[/code]root (hd0,0)
setup (hd0,0)root (hd0)
setup (hd0) _________________ I've been away for a long time, bear with me. |
|
Back to top |
|
|
wfp n00b
Joined: 24 Sep 2004 Posts: 3
|
Posted: Fri Sep 24, 2004 8:26 pm Post subject: |
|
|
Well, Shade gets the prize. It was in the install. The following made it all work (why I don't know, anyone???).
Quote: |
> grub
grub> root (hd0,0)
grub> setup (hd0,0)
grub> quit
|
Also, the following NEVER DID work for me.
Quote: |
grub-install --root-directory=/boot /dev/hda
|
I get the following error
Quote: |
/dev/ide/host0/bus0/target0/lun0/disc does not have any corresponding BIOS drive.
|
Anyway, it works now. Thanks for the help (even if I don't fully understand why it works). |
|
Back to top |
|
|
shade266 Guru
Joined: 29 Oct 2003 Posts: 593 Location: Internal
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|