📄 fd.4
字号:
.TH FD 4.SH NAMEfd \- floppy disk.SH DESCRIPTIONThe.B fd*devices refer to the Floppy disk driver using the NEC PD765 floppy diskcontroller. These diskettes are arrays of 512 byte sectors, although Minixalways works with two sectors at a time due to its 1024 byte block size. Youcan read or write any number of bytes however, Minix takes care of cuttingand pasting incomplete blocks together..PPThe driver is normally configured for two floppy disk devices.B fd0and.BR fd1 .It can handle two more, but it is unlikely that the average PC can..PPOn the first access to an.B fddevice (by.BR open (2)or.BR mount (2)),the driver will execute a series of read tests to determine the floppy type.This works ok for all floppy types except the true 360k type, because itis indistinguishable from the 720k type. This only means that the size ofthe floppy is not estimated right..PPBits 2\-6 of the minor device number may be set to the floppy disk typeto make it known to the driver what type of diskette it is reading orwriting. The non-auto devices should be used for formatting, or when one wants tobe absolutely sure that the device is accessed right. These devices exist fordrive 0:.sp.nf.ta +4n +7n +9n +8n type device minor media.ta +5n +7n +9n +7n 0 fd0 0 autodetect 1 pc0 4 360k, 5.25" 2 at0 8 1.2M, 5.25" 3 qd0 12 360k in a 720k, 5.25" drive 4 ps0 16 720k, 3.5" 5 pat0 20 360k in a 1.2M, 5.25" drive 6 qh0 24 720k in a 1.2M, 5.25" drive 7 PS0 28 1.44M, 3.5".fi.DT.PPType 4 may also be used for the rarely seen 720k, 5.25" floppies (type 2 madethem obsolete fast.) Note that these "types" only describe the floppies froma software point of view, type 1 and 4 drives use the same parameters..PPIf the format bit (bit 7) is set, then the driver interprets write commandsas track formatting requests. This is used by the.BR format (1)command..PPIf the type bits are set to 28, 29, 30, or 31, then the driver uses apartition table found in sector 0 to partition the floppy. The partitionsof.B fd0may be accessed as.B fd0athrough.BR fd0d .See.BR hd (4)for a description of the partition table, and associated ioctl commands..SH FILES/dev/fd[0\-3], /dev/pc[0\-3], /dev/at[0\-3], /dev/qd[0\-3], /dev/ps[0\-3],/dev/pat[0\-3], /dev/qh[0\-3], /dev/PS[0\-3], /dev/fd[0\-3][a\-d].SH "SEE ALSO".BR format (1),.BR hd (4),.BR part (8)..SH BUGSThe driver does not know the size of a 360k diskette in a 360k 5.25"drive, because it uses the 720k parameters for it. So it will happily tryto read past the end making all kinds of interesting noises. It's a goodthing these drives are practically obsolete..PPThe partition table is only read when the drive motor is off and only foran auto or partition device. The driver assumes that a floppy in a drivewith a running motor can't have been replaced all of a sudden..SH AUTHORKees J. Bot (kjb@cs.vu.nl)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -