标签:
[root@iZ25r0ej7v1Z mnt]# fdisk /dev/xvdx
WARNING: DOS-compatible mode is deprecated. It‘s strongly recommended to
switch off the mode (command ‘c‘) and change display units to
sectors (command ‘u‘).
Command (m for help): n
Command action
e extended
p primary partition (1-4)
1
Invalid partition number for type `1‘
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-652, default 1): (直接换行)
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-652, default 652): (直接换行)
Using default value 652
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
格式化
mkfs.ext3 /dev/xvdb
[root@iZ25r0ej7v1Z mnt]# fdisk -l
mount /dev/xvdx /x
df (看是否成功挂在mnt上)
1
2
3
4
5
|
[root@iZ253hlps3yZ ~]# df -m Filesystem 1M-blocks Used Available Use% Mounted on /dev/xvda1 40316 2838 35431 8% / tmpfs 498 0 498 0% /dev/shm /dev/xvdb 5040 139 4646 3% /mnt
|
标签:
原文地址:http://www.cnblogs.com/aliblogs/p/5493726.html