How to use the Linux mformat command

Source: Internet
Author: User

Create a DOS file system on a low-level formatted disk. If the USE_2M parameter is opened during mtools programming, some parameters related to the 2 M format will function. Otherwise, these parameters (such as S, 2, 1, and M) will not work.

Syntax

Mformat [-t cylinders] [-h heads] [-s sectors] [-l volume_label] [-F] [-I fsVer-sion]

[-S sizecode] [-2 sectors_on_track_0] [-M software_sector_size] [-a] [-X] [-C]

[-H hidden_sectors] [-r root_sectors] [-B boot_sector] [-0 rate_on_track_0]

[-A rate_on_other_tracks] [-1] [-k] drive:

Parameters:

  • -T magnetic column (synlider) count
  • -H head count
  • -S: the number of magnetic zones for each magnetic track
  • -L tag
  • -F format the disk to FAT32, but this parameter is still in the experiment.
  • -I sets the version number in FAT32. Of course, this is still in the experiment.
  • -S: the size code of the magnetic Area. The calculation method is sector = 2 ^ (size code + 7)
  • -Number of magnetic zones of the c magnetic bundle (cluster. If the given number causes the number of magnetic bundle to exceed the limit of the FAT table, mformat will automatically enlarge the number of magnetic segments.
  • -S
  • -M software magnetic zone size. This number is the size of the magnetic zone in which the system returns. It is usually the same as the actual size.
  • -If a adds this parameter, mformat will generate a set of Atari system serial numbers for this disk.
  • -X format the disk into XDF format. Before use, you must use the xdfcopy command to perform low-level formatting on the disk.
  • -C generates a disk image that can install the MS-DOS file system ). Of course, this parameter is meaningless for a physical drive.
  • -H indicates the number of hidden magnetic areas. This is usually applicable when formatting the partition of the hard disk, because there is usually a partition table before the partition. This parameter is not tested and does not need to be used.
  • -N disk number
  • -The size of the r root directory, in the unit of disk space. This parameter is only valid for FAT12 and FAT16.
  • -B uses the specified file or device's boot magnetic area as the boot magnetic area of this disk or shard. Of course, the hardware parameters will change accordingly.
  • -K tries its best to keep the original boot magnetic zone.
  • -0: data transmission rate of the 0th track
  • -A data transfer rate out of track 0th
  • -2 use 2 m format
  • -1 does not use the 2 m format

Instance

Format the disk in a: (/dev/fd0) with the default value.

Mformat:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.