fdisk -l
fdisk /dev/sdb
n
p
1
+2048m (分2G)或者1 55632846选1到所有
w
mkfs -t ext4 -c /dev/sdb1
vim /etc/fstab
/dev/sdb1 /www ext4 defaults 1 2
快速格式化: mkfs.ext4 /dev/sdb1
parted分區
parted /dev/sdb
mklabel gpt
警告: The existing disk label on /dev/xvdf will be destroyed and all data on this disk will be lost. Do
you want to continue?
是/Yes/否/No? yes
(parted) print
mkpart primary 0kb 8500GB
警告: You requested a partition from 0.00B to 8500GB.
The closest location we can manage is 17.4kB to 8500GB.
Is this still acceptable to you?
是/Yes/否/No? yes
警告: The resulting partition is not properly aligned for best performance.
忽略/Ignore/放弃/Cancel? ignore
(parted) print
quit
fdisk -l
mkfs.ext4 /dev/sdb1
mount /dev/sdb1 /oradata
vi /etc/fstab
/dev/sdb1 /oradata ext4 defaults 0 2