Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Nov 1999 23:51:04 -0800
From:      Mike Smith <mike@smith.net.au>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        Mike Smith <mike@smith.net.au>, Wilko Bulte <wilko@yedi.iaf.nl>, current@FreeBSD.ORG, scsi@FreeBSD.ORG
Subject:   Re: Mount before SCSI comes up ? (was Re: Root mount failed:22 ???) 
Message-ID:  <199911210751.XAA03550@dingo.cdrom.com>
In-Reply-To: Your message of "Sat, 20 Nov 1999 02:45:55 %2B0300." <19991120024554.B5091@nagual.pp.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
> On Fri, Nov 19, 1999 at 02:52:13PM -0800, Mike Smith wrote:
> > > > The diagnostic is relatively harmless, but it suggests that /etc/fstab 
> > > > is wrong.
> > > 
> > > Here is fstab line, please point what is wrong?
> > > /dev/da0s4a               /               ufs rw,userquota 1 1
> > 
> > I have no idea; it'd be handy to know what it's trying to mount that's 
> > failing, but I don't recall that in your output.
> 
> It is NOT say, what it tries to mount that failing :-(

That's because it's not actually trying to mount anything.   
vfs_mountroot_try() is being called with a NULL argument, almost 
certainly because your loader is out of date (vfs.root.mountfrom does 
not exist in the environment).

It's possible that there's a problem with the loader that's resulting 
in it not being set; you should instrument 
/sys/boot/common/boot.c:getrootmount() to determine this.  It's also 
possible that it's being called for some other reason; you should look 
at vfs_mountroot() to see what else might be the culprit.

> Here is quote in more wide scope.
> Is it tries to mount root before SCSI devices come up?

No; 22 is EINVAL, wheras you would exepect ENXIO (6) for that case.

> Waiting 2 seconds for SCSI devices to settle
> Creating DISK da0
> Creating DISK da1
> Root mount failed: 22
> Mounting root from ufs:da0s4a

This completes successfully, so everything looks happy.

-- 
\\ Give a man a fish, and you feed him for a day. \\  Mike Smith
\\ Tell him he should learn how to fish himself,  \\  msmith@freebsd.org
\\ and he'll hate you for a lifetime.             \\  msmith@cdrom.com




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911210751.XAA03550>