Linux fdisk disk partitioning

Source: Internet
Author: User

Fdisk [-l] Appliance name

-L outputs all partion contents of the device after it is connected


[Email protected] ~]# fdisk/dev/sda2

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF Disklabel

Building a new DOS disklabel. Changes'll remain in memory only,

Until decide to write them. After that, of course, the previous

Content won ' t be recoverable.

The number of cylinders for this disk was set to 1945.

There is nothing wrong with the, but this is larger than 1024,

And could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from the other OSs

(e.g., DOS fdisk, OS/2 fdisk)

Warning:invalid flag 0x0000 of partition Table 4 would be a corrected by W (rite)

Command (M for help): m input m view instruction

Command Action

A toggle a bootable flag

b Edit BSD Disklabel

C Toggle the DOS compatibility flag

d Delete a partition delete a partion

L list known partition types

M Print this menu

n Add a new partition adds a partion

o Create a new empty DOS partition table

P Print the partition table display split tables

Q Quit without saving changes do not store away from Fdisk mode

s create a new empty Sun Disklabel

t change a partition ' s system ID

U Change display/entry units

V Verify the partition table

W Write table to disk and exit save the operation just now

X Extra functionality (experts only)


This article is from the Linux Operations sharing blog, so be sure to keep this source http://liangey.blog.51cto.com/9097868/1572191

Linux fdisk disk partitioning

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.