fdisk -l
Disk /dev/xvda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00073f45
Device Boot Start End Blocks Id System
/dev/xvda1 * 1 2611 20970496 83 Linux
Disk /dev/xvdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
發現/dev/xvdb
格式化
mkfs.ext4 /dev/xvdb
建立掛載位置
mkdir /data
掛載
mount /dev/xvdb /data
ok了 df 一下
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 20G 2.9G 16G 16% /
tmpfs 245M 0 245M 0% /dev/shm
/dev/xvdb 5.0G 138M 4.6G 3% /data