From padla@roks.biz  Wed Feb 25 02:51:25 2004
Return-Path: <padla@roks.biz>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E6AAF16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Feb 2004 02:51:25 -0800 (PST)
Received: from pathfinder.roks.biz (roks.biz [212.110.133.103])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2770343D2D
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Feb 2004 02:51:23 -0800 (PST)
	(envelope-from padla@roks.biz)
Received: from pathfinder.roks.biz (localhost.roks.biz [127.0.0.1])
	by pathfinder.roks.biz (8.12.9p2/8.12.9) with ESMTP id i1PAg05J000832
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Feb 2004 12:42:01 +0200 (EET)
	(envelope-from padla@pathfinder.roks.biz)
Received: (from root@localhost)
	by pathfinder.roks.biz (8.12.9p2/8.12.9/Submit) id i1PAg0eF000831;
	Wed, 25 Feb 2004 12:42:00 +0200 (EET)
	(envelope-from padla)
Message-Id: <200402251042.i1PAg0eF000831@pathfinder.roks.biz>
Date: Wed, 25 Feb 2004 12:42:00 +0200 (EET)
From: Nikolay Pavlov <quetzal@roks.biz>
Reply-To: Nikolay Pavlov <quetzal@roks.biz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Manual root filesystem specification failed with error 22 on 4.9-STABLE 	
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         63343
>Category:       kern
>Synopsis:       [boot] manual root filesystem specification failed with error 22 on 4.9-STABLE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 25 03:00:34 PST 2004
>Closed-Date:    Wed May 07 21:59:19 UTC 2008
>Last-Modified:  Wed May 07 21:59:19 UTC 2008
>Originator:     Nikolay Pavlov
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD pathfinder.roks.biz 4.9-STABLE FreeBSD 4.9-STABLE #1: Tur Feb 24 12:43:26 EET 2004 quetzal@pathfinder.roks.biz:/usr/obj/usr/src/sys/ADM_KERNEL i386

>Description:
	I have erroneously change my fstab file and on next reboot can't mount root with <vfsname>:[<path>] command:
mountroot> ufs:/dev/ad1s2a
Root mount failed: 22
Manual root filesystem specification:
  <fstype>:<device>  Mount <device> using filesystem <fstype>
                       eg. ufs:/dev/da0s1a
  ?                  List valid disk boot devices
  <empty line>       Abort manual input

The command did not want work only with new kernel, when I "boot kernel.GENERIC" it works.
> ls -l kernel kernel.GENERIC
-r-xr-xr-x  1 root  wheel  2843049 24 feb 14:03 kernel
-r-xr-xr-x  1 root  wheel  4028952  9 oct  2002 kernel.GENERIC

Here is my correct fstab file:
> mount
/dev/ad1s2a on / (ufs, local)
/dev/ad1s2h on /home (ufs, local, soft-updates)
/dev/ad1s2e on /tmp (ufs, local, soft-updates)
/dev/ad1s2g on /usr (ufs, local, soft-updates)
/dev/ad1s2f on /var (ufs, local, soft-updates)
/dev/ad3s1e on /usr/obj (ufs, local, soft-updates)
/dev/ad3s1f on /music (ufs, local, soft-updates)
procfs on /proc (procfs, local)

I have found some information in maillist archive and thought that it probably the same problem:
http://www.mail-archive.com/freebsd-stable@freebsd.org/msg59577.html

>How-To-Repeat:
	Just install freebsd 4.9 as usual, then do cvsup to RELENG_4 tag and make new kernel. Replace a correct fstab mountroot lineon obviously wrong and reboot.

>Fix:
	not known.
>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: Nikolay Pavlov <quetzal@roks.biz>
Cc: FreeBSD-gnats-submit@freebsd.org, joerg@freebsd.org
Subject: Re: misc/63343: Manual root filesystem specification failed with
 error 22 on 4.9-STABLE  
Date: Thu, 26 Feb 2004 01:31:56 +1100 (EST)

 On Wed, 25 Feb 2004, Nikolay Pavlov wrote:
 
 > >Description:
 > 	I have erroneously change my fstab file and on next reboot can't mount root with <vfsname>:[<path>] command:
 > mountroot> ufs:/dev/ad1s2a
 > Root mount failed: 22
 > Manual root filesystem specification:
 >   <fstype>:<device>  Mount <device> using filesystem <fstype>
 >                        eg. ufs:/dev/da0s1a
 >   ?                  List valid disk boot devices
 >   <empty line>       Abort manual input
 >
 > The command did not want work only with new kernel, when I "boot kernel.GENERIC" it works.
 
 I think this is what was broken by rev.1.49.2.5 of kern/vfs_conf.c (a hack
 for vinum).  The main bug is here:
 
 % @@ -354,4 +351,11 @@
 %  	return (NODEV);
 %  gotit:
 % +	if (devsw(dev)->d_maj == major(rootdev))
 % +		/* driver has already configured rootdev, e. g. vinum */
 % +		return (rootdev);
 
 This results in rootdev never being changed if the first mountroot try
 sets rootdev to have the right major (and the user doesn't manage to
 work around the bug by trying a different major).
 
 Bruce
State-Changed-From-To: open->feedback 
State-Changed-By: rwatson 
State-Changed-When: Fri Jan 25 20:11:06 UTC 2008 
State-Changed-Why:  
This PR seems to have languished for an extended period -- we're very sorry 
about that!  Is there any chance you could retest this on a recent FreeBSD 
release, such as 6.3-RELEASE or 7.0-RC2, and let us know if the problem is 
still there?  The root mounting code has been substantially rewritten since 
4.9, and it may well be that the problem has been fixed (or replaced with 
newer and more interesting bugs?) 

Thanks! 


http://www.freebsd.org/cgi/query-pr.cgi?pr=63343 
State-Changed-From-To: feedback->closed 
State-Changed-By: vwe 
State-Changed-When: Wed May 7 21:59:12 UTC 2008 
State-Changed-Why:  

We're sorry to not see any feedback received for quite some time. 
If you think this is still an issue that should be worked on, 
please provide the requested information and we'll be happy to 
re-open this ticket. 
Thank you for bringing this problem to attention! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63343 
>Unformatted:
