Linux partition command -parted

parted

Format: parted disk name

Common interactive commands:

 mklabel 创建新的磁盘标签 (分区表)
 mkpart	 创建一个分区 
 print	 打印分区表,或者分区 
 quit    退出程序 
  1. Modify partition table-modify to GPT or MSDOS (that is, MBR)

Insert picture description here
Can be achieved by writing gpt / msdos
Insert picture description here
Insert picture description here

  1. New partition created

Insert picture description here

It should be noted here that the default file type of the parted command is ext2, and we can use it by default when setting up. We use the system's mkfs command to reformat

  1. Partition format

The parted partitioning tool does have a format command, but it can only be formatted as ext2. Therefore, formatting can only help the mkfs command (mkfs in the system, non-parted interactive command)
Insert picture description here

  1. Set up manual mount

Insert picture description here

  1. Set automatic loading
    automatic loading operation at the end
Published 51 original articles · Likes5 · Visits 1081

Guess you like

Origin blog.csdn.net/weixin_46669463/article/details/105664101
Recommended