Subject: kern/26073: Fake disklabel for USB floppy contains garbage
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <abs@absd.org>
List: netbsd-bugs
Date: 06/26/2004 21:07:51
>Number:         26073
>Category:       kern
>Synopsis:       Fake disklabel for USB floppy contains garbage
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 26 20:08:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     David Brownlee
>Release:        NetBSD 2.0F
>Organization:
	
>Environment:
	
	
System: NetBSD forsaken 2.0F NetBSD 2.0F (GENERIC) #6: Sat Jun 26 11:08:23 BST 2004 abs@tll.i.purplei.com:/files/netbsd/current/sys/arch/i386/compile/obj/GENERIC i386
Architecture: i386
Machine: i386
>Description:

	Attached a Y-E DATA USB Floppy Drive to a NetBSD box, drive contains
	an MSDOS formatted floppy.  Floppy attaches as sd0 (but only since
	Charles fixed the umass driver :).
	'disklabel sd0' reports the following:

# /dev/rsd0d:
type: ATAPI
disk: mydisk
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 18
tracks/cylinder: 2
sectors/cylinder: 36
cylinders: 80
total sectors: 2880
rpm: 7680
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

8 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 d:      2880         0     unused      0     0        # (Cyl.      0 - 79)
 e: 4149908451 4153561121    unknown                     # (Cyl. 115376697+- 111347285+)
 f: 1229803331 538988361    unknown                     # (Cyl. 14971898+- 49133102+)
 g: 1953460034 168643919    unknown                     # (Cyl. 4684553+- 58947332+)
 h:       101 1920298089    unknown                     # (Cyl. 53341613+- 53341616+)
disklabel: boot block size 0
disklabel: super block size 0
disklabel: partition e: offset past end of unit
disklabel: partition e: partition extends past end of unit
disklabel: partition f: offset past end of unit
disklabel: partition f: partition extends past end of unit
disklabel: partition g: offset past end of unit
disklabel: partition g: partition extends past end of unit
disklabel: partition h: offset past end of unit
disklabel: partition h: partition extends past end of unit

	 Floppy and disklabel works fine in fdc floppy drive.

>How-To-Repeat:
	See above.
>Fix:
	None known.
>Release-Note:
>Audit-Trail:
>Unformatted: