martin wrote:
> Xandros 4.1 OS, AMD64 SATA disks.
> menu.lst  - reads;
> "
> # By default boot the first menu entry.
> default 0
> 
> # Allow 30 seconds before booting the default.
> timeout 30
> 
> # Use prettier colors.
> color green/black light-green/black
> 
> # The first entry is for LFS.
> title LFS 6.3
> root (hd0,6)
> kernel /boot/lfskernel-2.6.22.5 root=/dev/sda7   
> "
> 
> 
> The LFS system is located in /mnt/lfs which is situated on/dev/sda7.
> 
> The following text is displayed when loading comes to a halt.
> 
> ".......
> Root - NFS: No NFS server available , giving up.
> VFS: unable to mount root fs via NFS trying floppy
> VFS: insert root floppy and press enter
> ...."
> 
> Floppy, prepared as in section 8.4, was inserted, pressed return.
> The following text was displayed;
> "
> List of all partitions:
> 0200      1440 fd0 (driver?)
> 0300    4194302 hda driver: ide-cdrom
> 0340    4194302 hdb driver: ide-cdrom
> No filesystem could mount root, tried: reiserfs ext3 ext2 msdos vfat iso9660
> Kernel panic - not syncing: VFS: Unable to mount root fs on 
> unknown-block(2,0)."
> 
> I have found it impossible to elicit the significance of the text in either 
> of these messages.
> 
> 
> Starting the machine with the root floppy made in section 8.4 provides the 
> following data;
> "
> root (hd0,6)
> Filesystem type is ex2fs, partition type 0x83
> setup (hd0)
> Checking if "/boot/grub/stage1" exists  ... yes
> Checking if "/boot/grub/stage2" exists  ... yes
> Checking if "/boot/grub/e2fs_stage1_5" exists  ... yes
> Running "embed /boot/grube2fs_stage1_5 (hd0)"  ... 15 sectors are embedded.
> suceeded
> Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p 
> (hd0,6)/boot/grub/stage2 /boot/grub/menu.lst" ... succeded

Another thought just occurred to me. Long ago and in a strange far away 
land, there used to be some offset limits (1044 cyls?) that the initial 
boot loaders could access. In my set up, I have a boot partition as the 
first partition on the HD. About 100 cyliners or so. This lets the 
initial stages load the stages that can access the full span of the HD, 
IIRC, as well as the FS-aware pieces.

In your above snippet, if I read the message's meaning correctly, it's 
stashing the later stages in /boot in the 7th partition on the HD. Maybe 
this is unreachable at boot time? Although info grub seems to indicate 
that stage 2 should be OK there. But stage1_5 must apparently be at the 
front because it is the "bridge" loaded by stage 1, which is ignorant of 
FS structures.

If you have either a boot partition at the beginning of the HD, or a 
/boot directory in the FS of another OS that does boot OK, try adding 
the menu entries into the grub menu.lst there. Also copy over the kernel 
image, initial ram disk image, system map, etc. You'll need to have an 
appropriate stage1_5 there as well.

BE CAREFUL TO NOT REPLACE ANY IDENTICALLY NAMED COMPONENTS OF THE 
WORKING SYSTEM!

You may have to rename some of the components in minor ways to allow 
peaceful co-existence.

Adding additional lines, such as "initrd" or "module" (man or info grub) 
may be needed, depending on your LFS kernel structure, built in SATA 
driver or modular SATA driver.

Here's how mine looks.

========== BEG /boot, a separate partition in my case ===========
$ ls -ltr /boot
total 19070
drwx------ 2 root root   12288 Nov 25  2006 lost+found
-rw-r--r-- 1 root root 1659532 Jul  7  2007 lfskernel-2.6.16.36
-rw-r--r-- 1 root root  699532 Jul  7  2007 System.map-2.6.16.36
-rw-r--r-- 1 root root   36371 Jul  7  2007 config-2.6.16.36
-rw-r--r-- 1 root root 1765588 Oct 22 08:52 vmlinuz-2.6.18-8.1.15.el5
-rw-r--r-- 1 root root  884809 Oct 22 08:52 System.map-2.6.18-8.1.15.el5
-rw-r--r-- 1 root root   62155 Oct 22 08:52 config-2.6.18-8.1.15.el5
-rw-r--r-- 1 root root   83542 Oct 22 08:53 symvers-2.6.18-8.1.15.el5.gz
-rw------- 1 root root 2316805 Oct 28 09:34 initrd-2.6.18-8.1.15.el5.img
-rw-r--r-- 1 root root   80032 Nov 22 18:24 message
-rw-r--r-- 1 root root 1790676 Nov 30 01:11 vmlinuz-2.6.18-53.1.4.el5
-rw-r--r-- 1 root root  903999 Nov 30 01:11 System.map-2.6.18-53.1.4.el5
-rw-r--r-- 1 root root   64555 Nov 30 01:11 config-2.6.18-53.1.4.el5
-rw-r--r-- 1 root root   87584 Nov 30 01:12 symvers-2.6.18-53.1.4.el5.gz
-rw------- 1 root root 3053293 Dec  4 17:54 initrd-2.6.18-53.1.4.el5.img
-rw-r--r-- 1 root root 1791572 Jan 23 11:53 vmlinuz-2.6.18-53.1.6.el5
-rw-r--r-- 1 root root  904078 Jan 23 11:53 System.map-2.6.18-53.1.6.el5
-rw-r--r-- 1 root root   64555 Jan 23 11:53 config-2.6.18-53.1.6.el5
-rw-r--r-- 1 root root   87584 Jan 23 11:53 symvers-2.6.18-53.1.6.el5.gz
-rw------- 1 root root 3053418 Jan 24 14:11 initrd-2.6.18-53.1.6.el5.img
drwxr-xr-x 2 root root    1024 Jan 24 14:33 grub
========== END /boot, a separate partition in my case ===========

========== BEG /boot/grub, a separate partition in my case ======
$ ls -ltr /boot/grub
total 118
-rw-r--r-- 1 root root 97972 Dec  3  2006 stage2
-rw-r--r-- 1 root root   512 Dec  3  2006 stage1
-rw-r--r-- 1 root root  7476 Dec  3  2006 e2fs_stage1_5
-rw-r--r-- 1 root root  5427 Nov 22 18:24 splash.xpm.gz
-rw-r--r-- 1 root root   729 Jan 24 14:29 menu.lst
========== END /boot/grub, a separate partition in my case ======


> <snip>

HTH
-- 
Wit
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to