GRUB problem
I'm still booting off floppy and trying to get GRUB sorted.
I have /boot on /dev/hda1 and root on /dev/hda5
(At first, LILO was just hanging with 'LI 99 99 99' and GRub, when I
installed it gave an Error 5 - 'partition table bad'. Eventually I got
half a clue and added /boot (/dev/hda1) into /etc/fstab and started
again...)
Lilo when installed and booted just gives 'LI' and stops.
Grub when installed and booted gives the following:
GRUB Loading Stage 1.5
GRUB Loading, please wait...
Error 2 (and that's as far as it gets)
Error 2 means " Bad file or directory type
This error is returned if a file requested is not a regular file, but
something like a symbolic link, directory, or FIFO. "
Does anyone have any ideas?
[The details - I installed GRUB in accordance with
/usr/share/doc/grub/README.Debian -
1. grub-install --root-directory=boot /dev/hda
2. Ran update-grub
3. Checked /boot/boot/grub/menu.lst and didn't need to change a thing - the
significant lines (leaving out all the comments) are:
default 0
timeout 5
color cyan/blue white/blue
### BEGIN AUTOMAGIC KERNELS LIST
# kopt=root=/dev/hda1 ro
# groot=(hd0,0)
# alternative=true
# lockalternative=false
# altoptions=(recovery mode) single
# howmany=all
title Debian GNU/Linux, kernel 2.2.20-idepci
root (hd0,0)
kernel /vmlinuz-2.2.20-idepci root=/dev/hda1 ro
savedefault
title Debian GNU/Linux, kernel 2.2.20-idepci (recovery mode)
root (hd0,0)
kernel /vmlinuz-2.2.20-idepci root=/dev/hda1 ro single
savedefault
### END DEBIAN AUTOMAGIC KERNELS LIST
In /boot I have (amongst other files left over from lilo)
-rw-r--r-- 1 root root 224124 Jun 21 23:05
System.map-2.2.20-idepci
-rw-r--r-- 1 root root 3888 Jun 21 23:05 config-2.2.20-idepci
-rw------- 1 root root 17408 Jun 21 23:50 map
-rw-r--r-- 1 root root 665509 Jun 21 23:05 vmlinuz-2.2.20-idepci
In /boot/boot/grub I have (put there by grub-install) *all* the stage1_5
flavours, including
-rw-r--r-- 1 root root 60 Jun 21 23:06 device.map
-rw-r--r-- 1 root root 7904 Jun 22 00:10 e2fs_stage1_5
-rw-r--r-- 1 root root 2392 Jun 22 00:10 menu.lst
-rw-r--r-- 1 root root 512 Jun 22 00:10 stage1
-rw-r--r-- 1 root root 95712 Jun 22 00:10 stage2
None of those look like symlinks to me. Have I got root set right in
menu.lst, as /dev/hda1? Should it be /dev/hda5? Seems unlikely to be the
cause
since the boot menu or 'booting in 5 seconds' message never comes up and I
wouldn't expect that root setting to take effect until after the menu..
Chris
Reply to: