码迷,mamicode.com
首页 > 其他好文 > 详细

挂载 格式化

时间:2016-05-14 23:04:03      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:

[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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!