grub > Error 15: File not found
I'm trying to add LFS to two other grub installs on my /menu.list, but
can't get grub to find /boot/lfskernel-2.6.27.4. Code:
grub> root (hd0,3) "setup (hd0,3)" Code:
grub> setup (hd0,3) |
Hello,
I'm not yet acquainted with LFS (I'm beginning now to build my own LFS) anyway are you sure the partition you gave to grub is correct? I mean (hd0,3) refers to "/dev/hda4", from the error Quote:
Bye David |
The path is correct. Also, partition is correctly listed in fstab.
|
Ok,
can you try the following command to list the possible files hitting tab, Quote:
|
Tab doesn't 'complete' anything
Code:
grub> kernel (hd0,3)/boot/ |
So,
the Quote:
Quote:
The boot directory you are using is the same used for booting other linux distro? Could you please give the following commands and post the result? When you are in front of the Grub prompt: grub> If you installed a /boot partition: Code:
find /grub/stage1 Code:
find /boot/grub/stage1 Code:
root (hd0,X) Code:
kernel (hd0,X)/boot/ hit TAB Hope this will help to find the problem. Bye David |
By the way, what do you mean with
Quote:
Quote:
What is your running distro in your machine? |
Quote:
Quote:
The partition is recognized (e.g., grub > root (hda0,3), but the boot partition is not. This appears to be the issue. Code:
grub> find /boot/grub/stage1 Code:
# Linux bootable partition config begins |
Can you list the content of your LFS boot directory ?
How did you create that? It seems as if grub couldn't find there the right files (I mean stage1, stage2, and *stage1_5) Here in section 3.2 you can find some hints about what I mean. Can you try the following command and see the result? Code:
kernel (hd0,0)/boot/ hit TAB |
Of course the following is not the problem but in
Quote:
|
Quote:
into another folder /lfs, and had more success....at least it found the file. It also booted bzImage, copied from the /arch/boot directory. This presents a new bag of problems, however, in that it doesn't accept 'root=/dev/hda4', resulting in kernel panic Code:
Cannot open root device "hda4" |
Quote:
Can you post the content of the menu.lst you're using and the content of the lfs directory? Did you use any initrd with LFS in the menu.lst file? The bzIMage you copied does it work correctly with grub in another boot sequence? |
bzImage can replace the lfskernal file, with same result. I didn't try initrd since that seems to be used for opening packaged directory files (eg lfs.gz).
Code:
# GRUB configuration file '/boot/grub/menu.lst'. |
Quote:
I still don't understand why the system doesn't like your "boot" directory as it does with the "lfs" dir: do they have the same permission set (the same chmod)? |
There's probably no need to install another grub if using a previous installation, and there was some confusion with having two boot directories. Also, it seems necessary to configure the kernel with ext2/ext3 support for devices to be recognized. Since I already have a correctly configured kernel (same version) on puppy, I decided to simply use that one. Presently, it gets stuck with error "Unable to mount root fs on unknown block (0,13)."
I've screwed around with an initrd file, booting from other partitions, etc., etc., but so far I've yet to uncover all the mysteries of grub. |
All times are GMT -5. The time now is 10:13 AM. |