# free-m
# fdisk-l
parted partition tool greater than 2T
Parted/dev/sdb Mkpart primary ext3 0 2T
Character ability
Loyalty and dedication automatically responsible for focus on efficiency results-oriented good communication and cooperation positive enterprising low-key saving Thanksgiving
Primary partition extended partition logical partition
Command Action
A toggle a bootable flag
b Edit BSD Disklabel
C Toggle the DOS compatibility flag
D Delete a partition
L list known partition types
M Print this menu
n Add a new partition
o Create a new empty DOS partition table
P Print the partition table
Q Quit without saving changes
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
X Extra functionality (experts only)
N
Command Action
E Extended
P primary partition (1-4)
1
Last cylinder, +cylinders or +size{k,m,g} (1-130, default): +500m
Device Boot Start End Blocks Id System
/DEV/SDB1 1 160618+ Linux
/DEV/SDB2 883575 5 Extended
# PARTPROBE/DEV/SDB notifies the system that the kernel partition has changed
T L
/DEV/SDB1 1 160618+ 8e Linux LVM
/DEV/SDB1 1 160618+ 8e Linux LVM
This filesystem'll be automatically checked every mounts or
Whichever comes first. Use Tune2fs-c or-i to override.
# tune2fs-c -1/DEV/SDB1
TUNE2FS 1.41.12 (17-may-2010)
Setting Maximal mount Count to-1
# mount/dev/sdb1/mnt
W Save
Parted GNU disk partitioning tool, greater than 2T
# PARTED/DEV/SDB
GNU Parted 2.1
Using/dev/sdb
Welcome to GNU parted! Type ' help ' to view a list of
Commands.
(parted) RM
Partition number? 1
1 (parted) Mklabel GPT
Warning: The existing disk label On/dev/sdb'll be
Destroyed and all data on this disk would be lost. Do you
Want to continue?
Is/yes/no/no? Yes
(parted) p
Model:vmware, VMware Virtual S (SCSI)
Disk/dev/sdb:1074mb
Sector size (logical/physical): 512b/512b
Partition Table: GPT
(parted) Mkpart primary 0 500
Warning: The resulting partition is not a properly aligned for
Best performance.
Ignore/ignore/abandon/cancel? Ignore
Number Start End Size File system Name Flag
1 17.4kB 500MB 500MB Primary
(parted) Mkpart logical 501 1024
2 501MB 1024MB 523MB logical
# MKFS.EXT4/DEV/SDB1
# DF-HT
Parted/dev/sdb Mklabel GPT
Parted/dev/sdb Mkpart Primary 0 500
Parted/dev/sdb Mkpart Logical 501 1024
Parted/dev/sdb P
Mkfs.ext4/dev/sdb1
mount/dev/sdb1/tmp/
MOUNT-T file system Type-o mount option-A
UMOUNT-LF forced uninstallation
DD Convert Files-Convert and copy a file
DD IF=/DEV/SDA of=mbr.bin bs=512 count=1
Mkfs.ext4
Df-h
Du-sh viewing file and directory sizes
# du-sh/etc/* H Human Readable
# DU-SH/ETC
27m/etc
Tune2fs-adjust tunable filesystem Parameters on
EXT2/EXT3/EXT4 filesystems
Dumpe2fs-dump EXT2/EXT3/EXT4 filesystem infor-
Mation
This article is from the "what-all" blog, please be sure to keep this source http://hequan.blog.51cto.com/5701886/1759336
Linux Disk Management