Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the mkdosfs command of Linux

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge of this article "how to use the mkdosfs command of Linux", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to use the mkdosfs command of Linux" article.

Function description

Establish a MS-DOS file system. Device refers to the device code for which you want to set up a DOS file system. Like / dev/hda1 and so on. Block_count is the number of chunks you want to configure. If block_count is not specified, the system will automatically calculate the number of blocks that match the size of the device for you.

Usage

Mkdosfs [- c |-l filename]

[- f number_of_FATs]

[- F FAT_size]

[- I volume*id]

[- m message*file]

[- n volume_name]

[- r root*dir*entry]

[- s sector_per_cluster]

[- v] device [block_count]

explain

Mkdosfs-cv-F-l-n-s [number of blocks]

Supplementary explanation

Mkdosfs can format the disk into the format of the MS-DOS file system under Linux.

Parameters.

-c: check for damaged blocks. -l: read the bad track record from the determined file. -f: specify the number of FAT. Options 1 and 2 are currently supported. -F: specifies that the unit of the FAT record is 12 or 16 bits. -I: sets the disk serial number of the file system. -l: reads information about corrupted blocks in the file system from the specified file. -m: if you boot with a secondary file system, but the operating system is not properly installed, the contents of the information file specified in the option will be displayed. -n: sets the disk label name of the file system. -r: set the root directory to record the maximum number of items. -s: specifies the number of sectors contained in each cluster. -v: displays detailed information during execution.

Example

Format the disk in slot An into DOS format and set the label to Tester.

Mkdosfs-n Tester / dev/fd0

The above is about the content of this article on "how to use the mkdosfs command of Linux". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report