Subject: Re: Root and dump devices?
To: Josh Tolbert <hemi@scoundrelz.net>
From: Harold Gutch <logix@foobar.franken.de>
List: port-dreamcast
Date: 08/28/2002 10:36:34
On Wed, Aug 28, 2002 at 03:07:59AM -0500, Josh Tolbert wrote:
> 
> 
> ------     ---   -
> Josh Tolbert
> hemi@scoundrelz.net
> 
> Every time the power flickers, a squirrel gets his wings.
> 
> On Wed, 28 Aug 2002, Harold Gutch wrote:
> 
> > On Wed, Aug 28, 2002 at 09:45:05AM +0200, Harold Gutch wrote:
> > > On Wed, Aug 28, 2002 at 02:22:27AM -0500, Josh Tolbert wrote:
> > > > > In /var/log/messages, I see:
> > > > >
> > > > > Aug 27 20:03:57 netbsd mountd[138]: "/usr/local/dc -maproot", line 1:
> > > > > Could not remount /usr/local/dc: Invalid argument
> > > > > Aug 27 20:03:57 netbsd mountd[139]: can't register UDP service
> > > > > Aug 27 20:03:57 netbsd mountd[139]: can't register TCP service
> > > > > Aug 27 20:03:57 netbsd mountd[139]: can't register UDP6 service
> > > > > Aug 27 20:03:57 netbsd root: /etc/rc: WARNING: $rpcbind is not set.
> > > > > Aug 27 20:03:57 netbsd mountd[139]: can't register TCP6 service
> > > > > Aug 27 20:03:57 netbsd mountd[139]: could not create any services
> > >
> > > You seem to be not running portmap/rpcbind.
> > >
> > >   echo "rpcbind=YES" >> /etc/defaults.conf && /etc/rc.d/rpcbind start
> >
> > That should have been:
> >
> >   echo "rpcbind=YES" >> /etc/rc.conf && /etc/rc.d/rpcbind start
> >
> >
> > bye,
> >   Harold
> >
> 
> Hi Harold,
> 	I've got rpcbind started, and I grabbed a GENERIC kernel from the
> same date as my build, but I'm still getting the odd "could not remount
> /usr/local/dc" error. Any other ideas? Do there need to be any special
> permissions on the directory?

You say, your /etc/exports looks like this:

  /usr/local/dc -maproot=root -alldirs dreamcast ram

right?  Is /usr/local/dc the mountpoint of a local filesystem?
It's supposed to be, as described in "man exports".  Otherwise
your line should look something like this:

  /usr /usr/local/dc -maproot=root -alldirs dreamcast ram

Also, I'd recommend exporting a dedicated filesystem to the
dreamcast.  NFS-exports are done on a filesystem basis (at least
that's the traditional way BSD does it - I'm not aware of any
changes to that in NetBSD), and thus a client with access to any
file on a partition can access the whole partition by guessing
other NFS filehandles (and a buggy client can go berzerk and
write to any file on the filesystem).  In my longer mail to
port-dreamcast I describe how I set up a dedicated filesystem
just for the Dreamcast without adding an extra disk or
repartitioning any existing disks, by using a vnode.  Perhaps
you'll find that useful.


bye,
  Harold