[Voyage-linux] howto install with two partitions (separate boot-partition) ???

Jeff R. Allen (spam-protected)
Thu Dec 18 03:18:28 HKT 2008


One thing that might be confusing you is that Grub is zero-based, and
Linux is one-based (with respect to partition numbering). So if your
BOOT_FS is on the first partition on the disk, and linux on your host
machine sees it as /dev/sdb1, and your kernel is at /boot/vmlinuz,
then you need "root (hd0,0)" in the menu.lst, not hd0,1.

I think there is no special code in Voyage's scripts at all to make an
fstab file. As far as I can see, it comes direct from
voyage-0.5.2/etc/fstab, and ends up in use unchanged  unless you use a
profile to overlay your own stuff, using voyage-custom.sh and dropping
your fstab into overlay_fs/etc/fstab.

A note about root mounting versus the rest... / is mounted by the
ram-based initfs before it transfers control to /bin/init and the
system actually starts running for real. The initfs decides which
device to mount as root using the kernel command line from menu.lst.
Once /sbin/init starts running the startup scripts, then it mounts the
others. Thus, / does not actually need to be right in fstab, and
everything will still mount right, as long as menu.lst was right.

So, in summary, I think you need to change your menu.lst to have "root
(hd0,0)" and edit your fstab to include /boot (leave / out, it will
take care of itself).

I was experimenting with some changes to do this stuff, but I decided
to go another route, which is to make my own initrd, which I then boot
via PXE. That gives me an environment where I can partition and format
the CF card, then do an automated install of Voyage, and can finally
do customizations (generate a host key, record a serial number, etc).
This is heavy overhead for the casual Voyage hobbiest, but would be
useful to others who are trying to manufacture a series of boxes and
need to have some assurance they were all done exactly the same way.

If people are interested, I can post a tarfile explaining what I'm doing.

  -jeff




More information about the Voyage-linux mailing list