diskless booting problem - no root user

diskless booting problem - no root user

Post by Aidan Roge » Fri, 09 Jan 2004 00:31:53


Hi all,

I've setup a server with DHCP and tftp to serve kernel over the network,
and NFS for mounting the root and /usr filesystems. The client (diskless)
machine boots up fine, and then it starts to run the rc files (this is
freebsd 4.8). There were various problems that I solved, but I can't seem
to crack this one.

The client tries to create the /var directory structure from the
/etc/mtree directory, but comes up with this error:

mtree: line 6: unknown user root

It continues to boot with a few other errors all revolving around having
no directories in /var

Please help - it's driving me nuts!

Thanks,

Aidan
 
 
 

diskless booting problem - no root user

Post by Aidan Roge » Fri, 09 Jan 2004 01:03:03

One more thing:

When the client has finished booting, it gives a login prompt but no-one
can log in.

Aidan

 
 
 

diskless booting problem - no root user

Post by Aidan Roge » Fri, 09 Jan 2004 19:37:49

Couldn't find the problem, but solved it by clone_root'ing a fresh install.

Just recording this for posterity :)

Aidan
 
 
 

diskless booting problem - no root user

Post by Umberto Qu » Sat, 10 Jan 2004 09:27:04


Well, just trying to guess, but symptoms suggest a problem with
/etc/passwd

Without passwd, matching btw. each name and its userid is broken.
So neither commands like
chown root
chmod root
su root
work, nor login (you type a username, which is unrecognized).

Glad your problem is successfully solved now! :-)

Umberto