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

Use the sfdisk command of linux to partition the hard drive tool

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

Share

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

This article mainly introduces the use of linux sfdisk command hard disk partition tool, the article is very detailed, has a certain reference value, interested friends must read it!

Sfdisk is the hard disk partition tool program, which can display the setting information of the partition and check whether the partition is normal. Sfdisk can also be used to create partitions. As it is a big problem to establish a hard disk partition, it is recommended to use the hard disk partition tool program designed for individual operating systems, such as using fdisk to establish DOS partition and Disk Druid or sfdisk to establish linux partition.

Syntax format: sfdisk [parameters]

Common parameters:

-d display the settings of the hard disk partition-g output module load information-l display the relevant settings of the hard disk partition after display-s displays the size of the partition, in blocks-T displays all file systems recognized by sfdisk ID-v display version information-V checks whether the hard disk partition is normal-x displays the logical partition in the extended partition-N according to the partition table read from standard input Create a partition table on a specified block device-An opens the startup tag of the specified partition (available for MBR partition tables only)-delete deletes the specified / all partitions-J exports the existing partition table of the specified block device in JSON format-F lists the remaining space on the specified / all block devices that has not been partitioned-r by the starting sector of each partition Renumber an existing partition-an only adds a new partition to the existing partition table, not creates a new partition table-f disables all consistency checks, forces the seemingly obvious error action-n simulation operation (not really written to the block device)-o outputs only the specified fields-Q does not show all redundant information-X specifies the type of partition table. If this option is not explicitly specified, it means that the existing type on the block device is used. If no partition table exists on the existing block device, the default is dos type (MBR)-h or-- help to print help and exit immediately

Reference example

Display partition information:

[root@linuxcool ~] # sfdisk-l

Displays the settings for the hard disk partition:

[root@linuxcool ~] # sfdisk-d above is all the contents of the hard disk partition tool using linux's sfdisk command, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to 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

Servers

Wechat

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

12
Report