Shell Commands/Format
From MorphOS Library
Format - Formats a disk
DEVICE=DRIVE/A/K, NAME/A/K, OFS/S, FFS/S, SFS/S, MSDOS/S, INTL=INTERNATIONAL=CASESENSITIVE/S, NOINTL=NOINTERNATIONAL/S, DIRCACHE/S, NODIRCACHE/S, LNFS=LONGFILENAMES/S, NOLNFS=NOLONGFILENAMES/S, NOICONS/S, QUICK/S, NORECYCLED/S, SHOWRECYCLED/S
DRIVE - name of the device to format NAME - label of the formatted device OFS - use Old File System (depreciated) FFS - use Fast File System SFS - use Smart File System MSDOS - use MSDOS (FAT) File System INTL - for FFS: use international mode NOINTL - for FFS: do not use international mode DIRCACHE - for FFS: use directory cache NODIRCACHE - for FFS: do not use directory cache LNFS - for FFS: enable long filenames NOLNFS - for FFS: disable long filenames NOICONS - do not create an icon on the formatted device QUICK - only do a quick-format NORECYCLED - for SFS: do not add a recycled directory SHOWRECYCLED - for SFS: do not hide the recycled directory
NOTE: SFS provides a special directory at the root of the device called '.recycled'. When files are deleted they automatically appear in this directory so recovering deleted files is just a matter of copying files from this directory to anywhere else on the disk.
Example: SYS:> Format drive DH0: name MorphOS SFS showrecycled => Will format the device DH0: using SFS filesystem. The recycle directory will be available and not hidden The disk will be labeled 'MorphOS'