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

Linux disk partitions (GPT)

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

I. View Partition

In addition to using the fdisk-l disk device path command, you can also view it with the parted-l of the gpt partition command

The content displayed in parted-l is more concise. Msdos refers to the mbr partition type, and the display of gpt indicates the gpt partition type.

2. GPT partition operation: the command used for gpt partition is parted to enter the partition interface: parted / dev/sdb, which indicates the common partition operation commands for sdb disk partition operation:

Rm partition number, deleting partition

Quit saves and exits the partition operation interface

P View current partition

Mktable gpt converts partition table to gpt

Mkpart partition type (such as primary) size (format such as 1m 100m) create a new partition

Note: gpt almost unlimited the number of primary partitions rescue repair operation:

If the partition is missing, how to retrieve the partition, the premise is to know the start and end of the partition.

Rescue 1m 100m means to restore a partition in the range of 1m to 100m of the partition table. III. Operation of partition table

Delete and update recovery of partition table

Partx-d / dev/sdb delete partition table

Partx-a / dev/sdb updates restore deleted partition tables

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