LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   grub 'file not found' (https://www.linuxquestions.org/questions/linux-general-1/grub-file-not-found-141392/)

iidbis 02-02-2004 10:56 AM

grub 'file not found'
 
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hdd3 4031560 2559816 1266944 67% /
/dev/hdd1 75605 8581 63120 12% /boot
none 96032 0 96032 0% /dev/shm
/dev/hdb5 7416060 3439328 3600012 49% /mnt01
/dev/hdb1 23302 11651 10448 53% /active-boot
/dev/hdd5 60475564 8574464 48829096 15% /mnt03
/dev/hdd6 53187444 522060 49963544 2% /mnt02
total 8372

THE CONTENTS OF /boot (/dev/hdd1)


-rw-r--r-- 1 root root 512 Jan 24 06:29 boot.0300
-rw-r--r-- 1 root root 5824 Jan 25 2003 boot.b
-rw-r--r-- 1 root root 612 Jan 25 2003 chain.b
-rw-r--r-- 1 root root 39947 Jan 24 06:13 config-2.4.18-3
-rw-r--r-- 1 root root 49125 Jan 24 06:13 config-2.4.18-3BOOT
-rw-r--r-- 1 root root 44309 Mar 13 2003 config-2.4.20-8
drwxr-xr-x 2 root root 1024 Feb 2 15:00 grub
-rw-r--r-- 1 root root 119715 Jan 24 06:11 initrd-2.4.18-3BOOT.img
-rw-r--r-- 1 root root 124221 Jan 24 06:09 initrd-2.4.18-3.img
-rw-r--r-- 1 root root 149091 Nov 19 17:45 initrd-2.4.20-8.img
-rw-r--r-- 1 root root 473 Nov 19 17:45 kernel.h
drwx------ 2 root root 12288 Nov 19 12:39 lost+found
-rw------- 1 root root 22528 Jan 24 06:14 map
-rw-r--r-- 1 root root 23108 Feb 24 2003 message
-rw-r--r-- 1 root root 21282 Feb 24 2003 message.ja
lrwxrwxrwx 1 root root 20 Nov 19 17:45 module-info -> module-info-2.4.20-8
-rw-r--r-- 1 root root 15436 Mar 13 2003 module-info-2.4.20-8
-rw-r--r-- 1 root root 640 Jan 25 2003 os2_d.b
lrwxrwxrwx 1 root root 25 Nov 24 20:12 System.map -> System.map-2.4.22-0custom
-rw-r--r-- 1 root root 520129 Mar 13 2003 System.map-2.4.20-8
-rw-r--r-- 1 root root 493573 Nov 19 21:23 System.map-2.4.20-8custom
-rw-r--r-- 1 root root 506847 Nov 24 20:11 System.map-2.4.22-0custom
-rw-r--r-- 1 root root 3193503 Mar 13 2003 vmlinux-2.4.20-8
lrwxrwxrwx 1 root root 16 Nov 19 17:45 vmlinuz -> vmlinuz-2.4.20-8
-rw-r--r-- 1 root root 1122186 Mar 13 2003 vmlinuz-2.4.20-8
-rw-r--r-- 1 root root 1092207 Nov 19 21:23 vmlinuz-2.4.20-8custom
-rw-r--r-- 1 root root 954191 Nov 24 20:12 vmlinuz-2.4.22-0custom

THE grub/grub.conf FILE

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdb6
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd2,0)/grub/splash.xpm.gz
title Red Hat Linux 9 (vmlinuz-2.4.22-0custom)
root (hd2,0)
kernel /vmlinuz-2.4.22-0custom ro root=label=/1 hdc=ide-scsi idebus=66
initrd /initrd-2.4.20-8.img
title WIN98
rootnoverify (hd0,0)
chainloader +1

THE CONTENTS OF /boot/grub

total 208
-rw-r--r-- 1 root root 60 Jan 30 12:13 device.map
-rw-r--r-- 1 root root 7840 Jan 30 12:13 e2fs_stage1_5
-rw-r--r-- 1 root root 7536 Jan 30 12:13 fat_stage1_5
-rw-r--r-- 1 root root 6880 Jan 30 12:13 ffs_stage1_5
-rw-r--r-- 1 root root 659 Feb 2 15:00 grub.conf
-rw-r--r-- 1 root root 8448 Jan 30 12:13 jfs_stage1_5
-rw-r--r-- 1 root root 7040 Jan 30 12:13 minix_stage1_5
-rw-r--r-- 1 root root 9408 Jan 30 12:13 reiserfs_stage1_5
-rw-r--r-- 1 root root 33585 Jan 30 12:14 splash.xpm.gz
-rw-r--r-- 1 root root 512 Jan 30 12:13 stage1
-rw-r--r-- 1 root root 106364 Jan 30 12:13 stage2
-rw-r--r-- 1 root root 6528 Jan 30 12:13 vstafs_stage1_5
-rw-r--r-- 1 root root 9320 Jan 30 12:13 xfs_stage1_


I installed RH 9 on to a new hd(the box has 3) I bought . Thinking my bios would not let me boot from this new drive I elected to not install grub on it and continue to boot from the original device (grub there as well). Discovering that bios will boot from this drive I decided to install grub on it (/boot) .
The grub-install seems to work . When I try to boot I get a nice splash screen. When I pick the OS I want I get 'file not found'.
I have grub on a floppy that boots fine .

Any suggestions?

ilikejam 02-02-2004 04:13 PM

Hi.

It sounds like grub.conf hasn't been configured.

Post the contents of /boot/grub.conf (from your hard drive),

and the output from
#ls /boot

and post which partition /boot is on (hdc1 or whatever)

Dave


All times are GMT -5. The time now is 02:27 PM.