NetBSD Problem Report #6229

Received: (qmail 11239 invoked from network); 2 Oct 1998 13:14:03 -0000
Message-Id: <199810021313.PAA04902@rumolt.teuto.de>
Date: Fri, 2 Oct 1998 15:13:10 +0200 (MEST)
From: martin@rumolt.teuto.de
Reply-To: martin@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: too hard to create a 720k floppy filesystem
X-Send-Pr-Version: 3.95

>Number:         6229
>Category:       port-i386
>Synopsis:       It's realy hard to create a 720k floppy filesystem
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    martin
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 02 06:20:01 +0000 1998
>Closed-Date:    Sat Mar 27 14:40:03 +0000 2004
>Last-Modified:  Sat Mar 27 14:40:03 +0000 2004
>Originator:     Martin Husemann
>Release:        
>Organization:

>Environment:

System: NetBSD rumolt.teuto.de 1.3G NetBSD 1.3G (RUMOLT) #6: Thu Oct 1 09:58:22 MEST 1998 root@rumolt.teuto.de:/a/usr/src/sys-i4b/arch/i386/compile/RUMOLT i386


>Description:

The floppy driver fd uses minors to select between different densities.
You can not newfs a raw disk without a disklabel on it - so the disklabel
specifies partitions by its own. To create a filesystem on a 720k floppy
in a 1.4MB drive, you need to access /dev/rfd0f, and the only partition
you can sanely access there is 'f'.

This is a mess - and it's undocumented. Try "man 4 fd".

>How-To-Repeat:

Try to create a boot floppy for testing purposes. Only have a 720k medium
available.

Try:
	fdformat /dev/rfd0f	# works like a charm
	newfs /dev/rfd0f	# fails: no disklabel
	disklabel /dev/rfd0f 	# need a disktab entry

Copy the disktab entry for floppy3, halfing all the sector numbers.
Try again:

	disklabel /dev/rfd0f floppy720	# works now
	newfs /dev/rfd0f	# fails - no 'f' partition available

Bang head against wall...

>Fix:
To get it working at all you'll need an /etc/disktab entry like this:

floppy720|3in Low Density Floppy:\
	:ty=floppy:se#512:nt#2:rm#300:ns#9:nc#80:\
	:pa#1440:oa#0:ba#4096:fa#512:\
	:pb#1440:ob#0:\
	:pc#1440:oc#0:\
	:pd#1440:od#0:\
	:pe#1440:oe#0:\
	:pf#1440:of#0:


Then you can disklabel the disk, newfs it and mount it.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->port-i386-maintainer 
Responsible-Changed-By: fair 
Responsible-Changed-When: Mon Dec 28 09:59:11 PST 1998 
Responsible-Changed-Why:  
This PR is the responsibility of the portmaster, 
not the GNATS database administrator. 
Responsible-Changed-From-To: port-i386-maintainer->martin 
Responsible-Changed-By: perry 
Responsible-Changed-When: Mon Mar 31 07:23:03 PST 2003 
Responsible-Changed-Why:  
Martin seems to understand this, and in the five years since the bug 
was submitted no one else seems to have wanted to learn enough to fix 
it. :) 
State-Changed-From-To: open->closed 
State-Changed-By: soren 
State-Changed-When: Sat Mar 27 14:39:51 UTC 2004 
State-Changed-Why:  
We have makefs(8) now. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.