1*1ac719d1Swiz.\" $NetBSD: fdformat.1,v 1.18 2012/04/08 22:00:38 wiz Exp $ 29d225a17Stls.\" 3c7c4c00eSthorpej.\" Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. 406047446Sjtk.\" All rights reserved. 506047446Sjtk.\" 6c7c4c00eSthorpej.\" This code is derived from software contributed to The NetBSD Foundation 7c7c4c00eSthorpej.\" by John Kohl. 8c7c4c00eSthorpej.\" 906047446Sjtk.\" Redistribution and use in source and binary forms, with or without 1006047446Sjtk.\" modification, are permitted provided that the following conditions 1106047446Sjtk.\" are met: 1206047446Sjtk.\" 1. Redistributions of source code must retain the above copyright 1306047446Sjtk.\" notice, this list of conditions and the following disclaimer. 1406047446Sjtk.\" 2. Redistributions in binary form must reproduce the above copyright 1506047446Sjtk.\" notice, this list of conditions and the following disclaimer in the 1606047446Sjtk.\" documentation and/or other materials provided with the distribution. 1706047446Sjtk.\" 18c7c4c00eSthorpej.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 19c7c4c00eSthorpej.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20c7c4c00eSthorpej.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21c7c4c00eSthorpej.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22c7c4c00eSthorpej.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23c7c4c00eSthorpej.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24c7c4c00eSthorpej.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25c7c4c00eSthorpej.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26c7c4c00eSthorpej.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27c7c4c00eSthorpej.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2806047446Sjtk.\" POSSIBILITY OF SUCH DAMAGE. 2906047446Sjtk.\" 30f94a2b95Swiz.Dd July 22, 2006 311375e008Swiz.Dt FDFORMAT 1 329e44e9b5Sgarbled.Os 3306047446Sjtk.Sh NAME 3406047446Sjtk.Nm fdformat 3506047446Sjtk.Nd format a floppy diskette 3606047446Sjtk.Sh SYNOPSIS 371375e008Swiz.Nm 3806047446Sjtk.Op Fl n 3906047446Sjtk.Op Fl B Ar nbps 4006047446Sjtk.Op Fl C Ar ncyl 4106047446Sjtk.Op Fl F Ar fillbyte 42*1ac719d1Swiz.Op Fl f Ar device 43*1ac719d1Swiz.Op Fl G Ar gaplen 4406047446Sjtk.Op Fl I Ar interleave 45*1ac719d1Swiz.Op Fl P Ar stepspercyl 46*1ac719d1Swiz.Op Fl S Ar nspt 47*1ac719d1Swiz.Op Fl T Ar ntrk 48*1ac719d1Swiz.Op Fl t Ar type 49*1ac719d1Swiz.Op Fl X Ar xfer_rate 5006047446Sjtk.Sh DESCRIPTION 5106047446SjtkThe 5206047446Sjtk.Nm 5306047446Sjtkutility formats a floppy diskette. 5406047446SjtkWith no arguments, it formats the default floppy device with the default 5506047446Sjtkdensity parameters (as provided by the floppy diskette device driver). 5606047446Sjtk.Pp 5706047446SjtkAs the each track of the floppy diskette is formatted, it is read to 58be8ae688Sgrantverify the format was successful. 5906047446Sjtk.Pp 609c074f4fShubertfThe 611375e008Swiz.Nm 62be8ae688Sgrantutility does not create a filesystem of any kind. 63be8ae688SgrantUse tools like 649c074f4fShubertf.Xr newfs 8 , 65791ead0aSwiz.Xr newfs_msdos 8 , 669c074f4fShubertfor 679c074f4fShubertf.Xr mformat 1 689c074f4fShubertf(part of the pkgsrc/sysutils/mtools package) depending on what filesystem 699c074f4fShubertftype you want to use on the floppy disk to do so. 709c074f4fShubertf.Pp 7106047446SjtkAvailable command-line flags are: 7206047446Sjtk.Bl -tag -width indent -compact 7306047446Sjtk.It Fl f Ar device 7406047446SjtkFormat the floppy using 7506047446Sjtk.Ar device 7606047446Sjtkinstead of the default 7706047446Sjtk.Pa /dev/rfd0a . 7806047446Sjtk.It Fl t Ar type 7906047446SjtkFormat the floppy using parameters for the diskette named 8006047446Sjtk.Ar type 8106047446Sjtkin 8206047446Sjtk.Pa /etc/floppytab 8306047446Sjtkinstead of the device default parameters. 8406047446Sjtk.It Fl n 8506047446SjtkDo not verify each track as it is read. 8606047446Sjtk.It Fl B Ar nbps 8706047446SjtkSet the number of bytes per sector for the formatted diskette. 8806047446Sjtk.It Fl S Ar nspt 8906047446SjtkSet the number of sectors per track for the formatted diskette. 9006047446Sjtk.It Fl T Ar ntrk 9106047446SjtkSet the number of tracks (heads) per cylinder for the formatted diskette. 9206047446Sjtk.It Fl C Ar ncyl 93142bbb09SjtkSet the number of cylinders for the formatted diskette. 9406047446Sjtk.It Fl P Ar stepspercyl 9506047446SjtkSet the number of motor steps per cylinder for the formatted diskette. 9606047446Sjtk.It Fl G Ar gaplen 9706047446SjtkSet the sector gap length for the formatted diskette. 9806047446Sjtk.It Fl F Ar fillbyte 9906047446SjtkSet the fill byte for the formatted diskette. 10006047446Sjtk.It Fl X Ar xfer_rate 10106047446SjtkSet the bit transfer rate for the formatted diskette. 10206047446Sjtk.It Fl I Ar interleave 10306047446SjtkSet the interleave factor for the formatted diskette. 10406047446Sjtk.El 10506047446Sjtk.Sh SEE ALSO 106362f41aeSmikel.Xr fdc 4 1071375e008Swiz(amiga, i386 and sparc ports) 10806047446Sjtk.Sh HISTORY 10906047446SjtkThe 11006047446Sjtk.Nm 11134a98169Sperryutility appeared in 11234a98169Sperry.Nx 1.3 . 113c67b0a80Swiz.Sh BUGS 114c67b0a80SwizSome floppy drive units have physical 115c67b0a80Swizdiskette format sensors which automatically select a diskette 116be8ae688Sgrantdensity for reading. 117be8ae688SgrantSuch drives can format at alternate densities, but 118c67b0a80Swizthey cannot successfully verify the formatted diskette except at the 119c67b0a80Swizdiskette's normal density. 120