按照官方发布的挂载数据盘帖子操作没有成功 代码如下
第一步
------------------------------------------
[root@AY140425115133Z ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 20G 4.9G 14G 26% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
-----------------------------------------
第二步
-----------------------------------------
[root@AY140425115133Z ~]# 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: 0x0007ce89
Device Boot Start End Blocks Id System
/dev/xvda1 * 1 2611 20970496 83 Linux
Disk /dev/xvdb: 137.4 GB, 137438953472 bytes
255 heads, 63 sectors/track, 16709 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: 0xa3095856
Device Boot Start End Blocks Id System
/dev/xvdb1 1 16710 134215680 f W95 Ext'd (LBA)
/dev/xvdb5 1 16710 134214656 7 HPFS/NTFS
--------------------------------------------------
第三步(
出现重复要求输入命令)
-------------------------------------------------
[root@AY140425115133Z ~]# fdisk /dev/xvdb
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^H
Command action
l logical (5 or over)
p primary partition (1-4)
p
Partition number (1-4): 1
Partition 1 is already defined. Delete it before re-adding it.
Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4)
p
Partition number (1-4): 2
No free sectors available
Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4)
p
Partition number (1-4): 1
Partition 1 is already defined. Delete it before re-adding it.
Command (m for help): wp
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
------------------------------------------------------
第四步
-----------------------------------------------------
准备格式化 [root@AY140425115133Z ~]# mkfs.ext3 /dev/xvdb1 后面没有操作了,怕出错,求高手指点指点
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。