From mi@aldan.algebra.com  Sun Dec 14 12:06:22 2003
Return-Path: <mi@aldan.algebra.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 68AD016A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 14 Dec 2003 12:06:22 -0800 (PST)
Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B85C643D48
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 14 Dec 2003 12:06:19 -0800 (PST)
	(envelope-from mi@aldan.algebra.com)
Received: from aldan.algebra.com (mi@localhost [127.0.0.1])
	by aldan.algebra.com (8.12.10/8.12.10) with ESMTP id hBEK6FsJ071281
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 14 Dec 2003 15:06:16 -0500 (EST)
	(envelope-from mi@aldan.algebra.com)
Received: (from mi@localhost)
	by aldan.algebra.com (8.12.10/8.12.10/Submit) id hBEK6FNG071280;
	Sun, 14 Dec 2003 15:06:15 -0500 (EST)
	(envelope-from mi)
Message-Id: <200312142006.hBEK6FNG071280@aldan.algebra.com>
Date: Sun, 14 Dec 2003 15:06:15 -0500 (EST)
From: Mikhail Teterin <mi@aldan.algebra.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: some /dev-entries missing for newly auto-added disks
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         60235
>Category:       kern
>Synopsis:       some /dev-entries missing for newly auto-added disks
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    phk
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 14 12:10:20 PST 2003
>Closed-Date:    Thu Aug 19 15:10:22 UTC 2010
>Last-Modified:  Thu Aug 19 15:10:22 UTC 2010
>Originator:     Mikhail Teterin
>Release:        FreeBSD 5.2-BETA i386
>Organization:
Virtual Estates, Inc.
>Environment:
System: FreeBSD aldan.algebra.com 5.2-BETA FreeBSD 5.2-BETA #4: Mon Nov 24 22:24:34 EST 2003 root@aldan.algebra.com:/ccd/obj/ccd/src/sys/DEBUG i386

>Description:
	When I connect the USB flash card reader, FreeBSD detects it
	properly and the new /dev/da3 is added. However, the /dev/da3s1
	is missing, even though fdisk lists 4 slises on the device:
	******* Working on device /dev/da3 *******
	parameters extracted from in-core disklabel are:
	cylinders=488 heads=64 sectors/track=32 (2048 blks/cyl)

	parameters to be used for BIOS calculations are:
	cylinders=488 heads=64 sectors/track=32 (2048 blks/cyl)

	Media sector size is 512
	Warning: BIOS sector numbering starts with sector 1
	Information from DOS bootblock is:
	The data for partition 1 is:
	sysid 6 (0x06),(Primary 'big' DOS (>= 32MB))
	    start 63, size 999873 (488 Meg), flag 80 (active)
		beg: cyl 0/ head 1/ sector 1;
		end: cyl 991/ head 15/ sector 63
	The data for partition 2 is:
	<UNUSED>
	The data for partition 3 is:
	<UNUSED>
	The data for partition 4 is:
	<UNUSED>

	Trying to mount it fails at first:

	% mount -oro -t msdos /dev/da3s1 /sandisk
	msdosfs: /dev/da3s1: No such file or directory

	But succeeds after the following chicken-waiving:

	% mount -oro -t msdos /dev/da3 /sandisk
	msdosfs: /dev/da3: Invalid argument
	% mount -oro -t msdos /dev/da3s1 /sandisk
	%

	So, even though the attempt to mount /dev/da3 directly fails
	(as expected), it somehow creates the missing da3s1, so that
	the subsequent attempt to mount it finaly succeeds.

	The files are nicely accessible after this and everything else
	seems to work.

>How-To-Repeat:

	See description

>Fix:

	See description
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->phk 
Responsible-Changed-By: rwatson 
Responsible-Changed-When: Sat Jan 10 18:15:17 PST 2004 
Responsible-Changed-Why:  
Seems like it could well be an interaction with GEOM, or a property of 
the disk coming online "slowly".  phk is probably a good person to make 
debugging suggestions, so assign the PR to him. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=60235 
State-Changed-From-To: open->feedback 
State-Changed-By: jh 
State-Changed-When: Fri Jul 16 11:02:22 UTC 2010 
State-Changed-Why:  
Can you still reproduce this on recent FreeBSD versions? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60235 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Thu Aug 19 15:10:21 UTC 2010 
State-Changed-Why:  
Feedback timeout. 

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