From root@minerva.uucp.kew.com  Sat Jun 16 12:36:01 2001
Return-Path: <root@minerva.uucp.kew.com>
Received: from minerva.uucp.kew.com (kendra.ne.mediaone.net [24.218.227.234])
	by hub.freebsd.org (Postfix) with ESMTP id 2CF5237B407
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 Jun 2001 12:36:01 -0700 (PDT)
	(envelope-from root@minerva.uucp.kew.com)
Received: by minerva.uucp.kew.com (Postfix, from userid 0)
	id 33852D926; Sat, 16 Jun 2001 15:36:00 -0400 (EDT)
Message-Id: <20010616193600.33852D926@minerva.uucp.kew.com>
Date: Sat, 16 Jun 2001 15:36:00 -0400 (EDT)
From: ahd@kew.com
Reply-To: ahd@kew.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Can't get label from /dev/da1s1c: Invalid argument (22)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28204
>Category:       bin
>Synopsis:       vinum attempts to read DOS volumes and whines about it
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    grog
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 16 12:40:00 PDT 2001
>Closed-Date:    Mon Jun 18 18:37:23 PDT 2001
>Last-Modified:  Mon Jun 18 18:48:24 PDT 2001
>Originator:     Drew Derbyshire
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
Kendra Electronic Wonderworks
>Environment:
System: FreeBSD minerva.hh.kew.com 4.3-RELEASE FreeBSD 4.3-RELEASE #2: Sat Jun 16 12:32:47 EDT 2001 ahd@minerva.hh.kew.com:/usr/src/sys/compile/MINERVA i386


	
>Description:

Issue vinum dumpconfig on a machine with a DOS partition, vinum whines
that it can't read the FreeBSD disklabel.  

   fdisk output:
   ******* Working on device /dev/da1 *******
   parameters extracted from in-core disklabel are:
   cylinders=2231 heads=255 sectors/track=63 (16065 blks/cyl)

   Figures below won't work with BIOS for partitions not in cyl 1
   parameters to be used for BIOS calculations are:
   cylinders=2231 heads=255 sectors/track=63 (16065 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,(Primary 'big' DOS (> 32MB))
       start 63, size 771057 (376 Meg), flag 0
	   beg: cyl 0/ sector 1/ head 1;
	   end: cyl 47/ sector 63/ head 254
   The data for partition 2 is:
   sysid 165,(FreeBSD/NetBSD/386BSD)
       start 771120, size 35069895 (17123 Meg), flag 80 (active)
	   beg: cyl 48/ sector 1/ head 0;
	   end: cyl 1023/ sector 63/ head 254
   The data for partition 3 is:
   <UNUSED>
   The data for partition 4 is:
   <UNUSED>

minerva,/home/ahd,84# vinum dumpconfig
Can't get label from /dev/da1s1c: Invalid argument (22)


	
>How-To-Repeat:
	See example above.
>Fix:

Check type of disk before blindly reading the disk.	
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->grog 
Responsible-Changed-By: dd 
Responsible-Changed-When: Mon Jun 18 18:34:53 PDT 2001 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28204 
State-Changed-From-To: open->closed 
State-Changed-By: grog 
State-Changed-When: Mon Jun 18 18:37:23 PDT 2001 
State-Changed-Why:  
Problem solved. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28204 
>Unformatted:

Greg Lehey, 19 June 2001

This was fixed in an undocumented revision of -CURRENT.  It has now been MFCd.

PR closed.
