parted
Format: parted disk name
Common interactive commands:
mklabel 创建新的磁盘标签 (分区表)
mkpart 创建一个分区
print 打印分区表,或者分区
quit 退出程序
- Modify partition table-modify to GPT or MSDOS (that is, MBR)
Can be achieved by writing gpt / msdos
- New partition created
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
- 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)
- Set up manual mount
- Set automatic loading
automatic loading operation at the end