Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135852865
D24971.id72150.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D24971.id72150.diff
View Options
Index: usr.sbin/fdformat/fdformat.8
===================================================================
--- usr.sbin/fdformat/fdformat.8
+++ usr.sbin/fdformat/fdformat.8
@@ -133,6 +133,31 @@
1 is returned on any errors during floppy formatting, and an exit status
of 2 reflects invalid arguments given to the program (along with an
appropriate information written to diagnostic output).
+.Sh EXAMPLES
+To format a new double-sided, high-density (HD) 1.44 MB disk in
+inserted in the first floppy disk drive, issue:
+.Pp
+.Dl "/usr/sbin/fdformat -f 1440 /dev/fd0"
+.Pp
+After low-level formatting the disk with
+.Nm
+, create a disk label so that the system can determine the size and
+geometry of the disk.
+The supported geometry values are listed in
+.Pa /etc/disktab
+, and we will use
+.Va fd1440
+for this example.
+To write the disk label, use
+.Xr bsdlabel 8 Ns :
+.Pp
+.Dl "/sbin/bsdlabel -B -w /dev/fd0 fd1440"
+.Pp
+The floppy is now ready to be high-level formatted with a file system.
+To format the floppy disk with FAT, issue:
+.Pp
+.Dl "/sbin/newfs_msdos /dev/fd0"
+.Pp
.Sh DIAGNOSTICS
Unless
.Fl q
@@ -152,7 +177,8 @@
.Xr fdc 4 ,
.Xr fdcontrol 8 ,
.Xr newfs 8 ,
-.Xr newfs_msdos 8
+.Xr newfs_msdos 8 ,
+.Xr bsdlabel 8
.Sh HISTORY
The
.Nm
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 14, 1:17 PM (6 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25288521
Default Alt Text
D24971.id72150.diff (1 KB)
Attached To
Mode
D24971: Add example usage for formatting a floppy disk.
Attached
Detach File
Event Timeline
Log In to Comment