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