Re: Linux on more than one PC104 won't boot
- From: "Sebastian" <bastisoft@xxxxxxxx>
- Date: Thu, 9 Nov 2006 18:25:45 +0100
Hello,
I have a port of Debian Sarge running from compact flash on a PC104That is no big problem, because you can append a /root/ directive to the
board. Everything is great. But now my boss wants to support another
PC104 board that maps the compact flash to a different ide interface.
So first board the CF is on IDE0,1(/dev/hdb), the second board is
mapped to IDE1,0 (/dev/hdc).
kernel, where to find the root filesystem. In my case this is root=/dev/hda2
(which works because lilo maps these old names, too).
How can I use the same distribution (same CF card) on both boardsIf you can tell grub per board (instead of per compact flash card), it would
without editing the boot=/dev/hdb1 and fstab entry's. There must be a
way to detect what drive is the first in the system (hdb or hdc) and
tell grub or fstab to use that instead.
be easy. Otherwise you could try to boot from both devices - if booting from
hdb fails, try booting from hdc. Another idea might be to create two boot
menu entries for which root partition to use.
Otherwise my idea would be to create an initrd (or initramfs), which detects
the device after booting (trying to mount) and then switch the root device
over and continues booting.
If I could solve the fstab problem at least I could edit the bootI use devfs for my experiments with linux (but i486 architecture). Then I
parameter in grub and be able to boot the CF card on a different PC
without first modifying the card.
get a /dev/root device as my root filesystem. This I simply add to the
/etc/fstab and everything is done; I don't need any direct reference to
/dev/ide/host0/bus0/target0/lun0/part2 (in my case). LILO finds itself in
the mbr...
.
- Follow-Ups:
- Re: Linux on more than one PC104 won't boot
- From: david . tucker
- Re: Linux on more than one PC104 won't boot
- References:
- Linux on more than one PC104 won't boot
- From: david . tucker
- Linux on more than one PC104 won't boot
- Prev by Date: Re: How to develop critical section
- Next by Date: Re: Linux on more than one PC104 won't boot
- Previous by thread: Linux on more than one PC104 won't boot
- Next by thread: Re: Linux on more than one PC104 won't boot
- Index(es):
Relevant Pages
|