Re: Root on NFS with separate filesystems for /bin, /sbin,...

From: root (root_at_home.com)
Date: 01/26/04


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



Relevant Pages

  • Diskless boot troubles
    ... So I want to perform a diskless boot. ... I had to make some modifications to /usr/share/examples/clone_root to create the diskless root file system. ... complaining about the differences in treatment of the -1 option between bsd tar and gnu tar. ...
    (freebsd-questions)
  • Re: Freebsd as diskless terminal OS - HELP
    ... I've tried the nanobsd and diskless instruction but seem to get ... the man pages but am having problems with getting a kernel to boot. ... Look at NetBSD. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: FreeBSD diskless workstation boot over Linux PXE server
    ... freeBSD diskless client testing scenario) ... -- the NFS root is exported by the NFS server as such. ... The client seems to boot properly - acquires an IP address; ...
    (freebsd-questions)
  • Diskless Soekris, current, and disappearing /var and /usr
    ... I have a Soekris box I'm trying to use diskless with a very recent ... If I boot single-user, ... sysctl: unknown oid 'security.jail.jailed' ... Fast boot: skipping disk checks. ...
    (freebsd-questions)
  • What is portmapper (I MUST have portmapper running to use pcnfsd)
    ... The boot process I had figured out, but the connection of the drive C: ... to the file system is given me problems. ... The diskless is booting with the ip 10.115.44.50 ... Contrata Prodigy Infinitum y navega a Infinitum de velocidad sin ocupar tu teléfono. ...
    (freebsd-questions)