Re: Root on NFS with separate filesystems for /bin, /sbin,...
From: root (root_at_home.com)
Date: 01/26/04
- Next message: Bob: "Re: Root on NFS with separate filesystems for /bin, /sbin,..."
- Previous message: Joachim Mæland: "Re: Connect with PPPoE through network board"
- In reply to: Bob: "Root on NFS with separate filesystems for /bin, /sbin,..."
- Next in thread: Robert Nichols: "Re: Root on NFS with separate filesystems for /bin, /sbin,..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 26 Jan 2004 13:57:14 +0000
On Mon, 26 Jan 2004 11:53:33 +0100, Bob wrote:
> Hi,
>
> I'm trying to build a diskless linux box, booting through tftp and with
> root on NFS from another linux box. I would like to have the diskless box
> use the same kernel and the same /sbin, /bin and /lib as the server, so
> that upgrades to the server are automatically propagated to the diskless
> box.
>
> Therefore the /sbin, /bin and /lib directories are not in the root
> filesystem of the diskless box, but instead mounted read-only from the
> server's /bin,.. by NFS. Problem is that the diskless box tries to boot
> with only the root filesystem mounted and cannot find /sbin/init for
> example.
>
> Is there a way to force additional filesystems to be mounted before
> /sbin/init is run? Of course /bin/mount is not available either but maybe
> there's an additional boot option which could do this?
>
> I figured initrd was meant to overcome just these kinds of problems. So I
> got the diskless box to boot using the server's initrd image. But somehow
> it then tries to boot from the server's IDE RAID partitions, even though I
> pass 'root=/dev/nfs' as a boot parameter. So apparently the initrd
> overrules the 'root=' parameter? I don't understand this. Do I need to
> prepare a special initrd for the diskless box and can I do this on the
> server?
>
> Of course I could just copy the server's /bin,.. directories to the root
> filesystem of the diskless box (tried and it works) but I'd prefer to
> mount them from the server.
>
> Would appreciate even the smallest hint. Thanks,
>
Hard links ???
ln not ln -s ???
Make a directory in the tree for the new client, then hard-link in what
you want from the existing structure .....
That way you get a single mount point for the diskless client. Just an
idea.
Jon
- Next message: Bob: "Re: Root on NFS with separate filesystems for /bin, /sbin,..."
- Previous message: Joachim Mæland: "Re: Connect with PPPoE through network board"
- In reply to: Bob: "Root on NFS with separate filesystems for /bin, /sbin,..."
- Next in thread: Robert Nichols: "Re: Root on NFS with separate filesystems for /bin, /sbin,..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|