Linux parted command detailed

Source: Internet
Author: User

parted common command parameters
usage:parted [OPTION] ... [DEVICE [COMMAND [PARAMETERS] ...] ...]  Apply COMMANDs with PARAMETERS to DEVICE.                      If no COMMAND (s) is given, run ininteractive mode. Option:-H,--help show this Help-L,--list  Lists partition layout on all block devices-m,--machine displays machine parseable output-s, --script never prompts user-V,--version displays version-A,--align=[none|cyl|min|opt] alignment for n EW partitions command: Align-check TYPE n Check partition N for TYPE (min|opt) alignment check NU Mber do a simple check on the file system CP [From-device] from-number to-number Copy File System to another partition Help [command] print general help, or help on COMMAND Mklab                      El,mktable Label-type Create a new Disklabel (partition table) MKFS number Fs-type       Make a Fs-type file system on Partition number Mkpart Part-type [Fs-type] start end make a partition mkpartfs Part-type fs-type START End Mak                         e a partition with a file system move number START END move partition number name Number name Name partition number as NAME print [devices|free|list,all|        Number] Display the partition table, available devices, free space, all found partitions, or a particular  Partition quit Exit Program Rescue START END Rescue a lost        Partition near start and end resize number START END Resize partition number and its file  System RM Number Delete partition Number select DEVICE Choose                   The device to edit set number FLAG state change the FLAG on partition number toggle [number [FLAG]] Toggle the state of FLAG on partition number  Unit unit Set the default Unit to unit version display The version number and copyright information of GNU Parted

Parted common command display
.parted partition (PGT partition), which takes effect immediately, creates a direct, non-interactive creation that is more than 2T, and uses GPT (globally unique disk partitioning table format) partition table--and MBR's maximum traceable  The address is 2T 1. Interactive: 1.parted/dev/sdb Mklabel GPT-to change partition table-->help write help Mkpart primary 0 10-        ->0-10M Primary Partition RM 2--and delete, 2. The modified content is told to the kernel, otherwise a restart is required Partprobe/dev/sdb  3. View ll/dev/sd* ==>fdick-l 2. Non-interactive Yes create 1. Create Parted/dev/sdb mklabel GPT Yes parted/dev/sdb Mklabel primary EXT4 0 IGN Ore parted/dev/sdb Mklabel logic EXT4 0 Ignore 2. Send the modified content to the kernel or restart partprobe/dev/s DB 3. View ll/dev/sd* ==>fdick–l 

* File system required after disk partitioning, e.g. EXT4

"More References" https://www.cnblogs.com/ftl1012/p/9280862.html

Linux parted command detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.