Re: 2.4.1 - can't read root fs (devfs maybe?)

David Ford (david@linux.com)
Thu, 01 Feb 2001 15:53:43 -0800


John Jasen wrote:

> On Thu, 1 Feb 2001, Peter Samuelson wrote:
>
> > [Michael J. Dikkema]
> > > > I went from 2.4.0 to 2.4.1 and was surprised that either the root
> > > > filesystem wasn't mounted, or it couldn't be read. I'm using devfs.. I'm
> > > > thinking there might have been a change with regards to the devfs
> > > > tree.. is the legacy /dev/hda1 still /dev/discs/disc0/part1?
> > > >
> > > > I can't even get a shell with init=/bin/bash..
> >
> > [John Jasen]
> > > Sounds like a lack of devfsd, which handles backwards compatibility
> > > for /dev entries.
> >
> > devfsd does not start up until after the root filesystem is mounted, so
> > that's not it.
>
> Errrr .... upon careful reading of the devfs/devfsd documentation, you'll
> find that it says to put /sbin/devfsd /dev in amongst the first lines in
> rc.sysinit.
>
> In looking through rc.sysinit, / is not mounted rw until much later.

Logic suggests that the root filesystem must be mounted before init runs. If
init=/bin/bash, no boot scripts are run, devfs should have populated /dev before
the init was spawned. devfs doesn't depend on the write state of the filesystem.

I am running devfs on 2.4.1, automatically mounted. I am having no problems.

-d

--
  There is a natural aristocracy among men. The grounds of this are virtue and talents. Thomas Jefferson
  The good thing about standards is that there are so many to choose from. Andrew S. Tanenbaum

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/