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

What are the common commands for linux formatting a hard disk?

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Today Xiaobian to share with you is linux format hard disk commonly used commands, I believe that many people do not understand, in order to let you know more about linux format hard disk commonly used commands, so give you a summary of the following content, let's look down. I'm sure you'll get something.

Format command, take the format / dev/sda1 partition as an example:

$sudo umount / dev/sda1 # the partition must be uninstalled first

Formatted as FAT partition

The $sudo mkfs.vfat-F 32 / dev/sda1 #-F parameter must be uppercase. The parameters are 12meme 16 and 32, corresponding to FAT12,FAT16,FAT32, respectively.

To format a NTFS partition, you need to install ntfsprogs first. Take Ubuntu / Debian as an example:

$sudo apt-get install ntfsprogs

Then execute the format command, taking the format / dev/sda1 partition as an example:

$sudo umount / dev/sda1 # must first uninstall the partition $sudo mkfs.ntfs / dev/sda1 # formatted as ntfs is a bit slow.

Formatted as ext4/3/2, take formatting / dev/sda1 partition as an example:

$sudo umount / dev/sda1 # must first uninstall the partition $sudo mkfs.ext4 / dev/sda1 # formatted as ext4 partition $sudo mkfs.ext3 / dev/sda1 # formatted as ext3 partition $sudo mkfs.ext2 / dev/sda1 # formatted as ext2 partition

On the linux format hard disk commonly used commands are shared here, I hope that the above content can have a certain reference value, you can learn to apply. If you like this article, you might as well share it for more people to see.

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

Servers

Wechat

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

12
Report