fdformat - format floppy diskette or PCMCIA memory card
fdformat [-dDeEfHlLmMUqvx] [-b label] [-B filename] [-t dostype] [devname]
The fdformat utility has been superseded by rmformat(1), which provides most but not all of fdformat's functionality.
fdformat is used to format diskettes and PCMCIA memory cards. All new blank diskettes or PCMCIA memory cards must be formatted before they can be used.
fdformat formats and verifies the media and indicates whether any bad sectors were encountered. All existing data on the diskette or PCMCIA memory card, if any, is destroyed by formatting. If no device name is given, fdformat uses the diskette as a default.
By default, fdformat uses the configured capacity of the drive to format the diskette. A 3.5 inch high-density drive uses diskettes with a formatted capacity of 1.44MB. A 5.25 inch high-density drive uses diskettes with a formatted capacity of 1.2MB. In either case, a density option does not have to be specified to fdformat. However, a density option must be specified when using a diskette with a lower capacity than the drive's default. Use the -H option to format high-density diskettes (1.44MB capacity) in an extra-high-density (ED) drive. Use the -D option, the -l option, or the -L option to format double- density (or low-density) diskettes (720KB capacity) in an HD or ED drive. To format medium-density diskettes (1.2MB capacity), use the -M option with -t nec (this is the same as using the -m option with -t nec).
Extended density uses double-sided, extended-density or extra-high-density (DS/ED) diskettes. Medium and high densities use the same media: double-sided, high-density (DS/HD) diskettes. Double (low) density uses double-sided, double-density (DS/DD
D) diskettes. Substituting diskettes of one density for diskettes of either a higher or lower density generally does not work. Data integrity cannot be assured whenever a diskette is formatted to a capacity not matching its density.
A PCMCIA memory card with densities from 512KB to 64MB may be formatted.
fdformat writes new identification and data fields for each sector on all tracks unless the -x option is specified. For diskettes, each sector is verified if the -v option is specified.
After formatting and verifying, fdformat writes an operating-system label on block 0. Use the -t dos option (same as the -d option) to put an MS-DOS file system on the diskette or PCMCIA memory card after the format is done. Use the -t nec option with the -M option (same as the -m option) to put an NEC-DOS file system on a diskette. Otherwise, fdformat writes a SunOS label in block 0.
The following options are supported:
-b label
-B filename
-D
-e
-E
-f
-H
-M
This feature is not available on all systems.
-q
-t dos
-t nec
-U
-v
-x
The following operands are supported:
devname
If devname is omitted, the default diskette drive, if one exists, will be used. N represents a decimal number and can be specified as follows:
cN
tN
0x1 ROM 0x2 OTPROM 0x3 EPROM 0x4 EEPROM 0x5 FLASH 0x6 SRAM 0x7 DRAM
dN
sN
The following options are provided for compatibility with previous versions of fdformat. Their use is discouraged.
-d
-l
-L
-m
/dev/diskette0
/dev/diskette0
/dev/aliases/floppy0
/dev/rdiskette
/dev/dsk/cNtNdNsN
/dev/rdsk/cNtNdNsN
/dev/aliases/pcmemS
/dev/rdsk/cNtNdNsN
/dev/dsk/cNtNdNsN
See attributes(5) for descriptions of the following attributes:
|
cpio(1), eject(1), rmformat(1), tar(1), volcheck(1), volrmmount(1), mount(1M), newfs(1M), prtvtoc(1M), attributes(5), pcfs(7FS)
fd(7D)
A diskette or PCMCIA memory card containing a ufs file system created on a SPARC based system (by using fdformat and newfs(1M)), is not identical to a diskette or PCMCIA memory card containing a ufs file system created on an x86 based system. Do not interchange ufs diskettes or memory cards between these platforms. Use cpio(1) or tar(1) to transfer files on diskettes or memory cards between them. A diskette or PCMCIA memory card formatted using the -t dos option (or -d) for MS-DOS does not have the necessary system files, and is therefore not bootable. Trying to boot from it on a PC produces the following message:
Non-System disk or disk error. Replace and strike any key when ready
Currently, bad sector mapping is not supported on floppy diskettes or PCMCIA memory cards. Therefore, a diskette or memory card is unusable if fdformat finds an error (bad sector).
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |