阿里云数据盘挂载遇到的一些问题总结

本文记录了解决阿里云主机硬盘挂载过程中遇到的问题,包括格式化时提示已挂载、通过删除分区来清除挂载状态等步骤,并最终通过重启解决了问题。

在上一篇文章《阿里云数据盘/硬盘挂载流程(CentOS)》中提到了阿里云主机挂载的基本流程,但在挂载的过程中也遇到一些奇葩的问题!

1、首先看一下系统信息:

[root@iZ28afd0manZ /]# 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 (Sun disk label): 255 heads, 63 sectors, 65270 cylinders
Units = cylinders of 16065 * 512 bytes

    Device Flag    Start       End    Blocks   Id  System
/dev/xvdb1             0     65264 524233080   83  Linux native
/dev/xvdb2  u      65264     65270     48195   82  Linux swap
/dev/xvdb3             0     65270 524281275    5  Whole disk
2、格式化数据盘/dev/xvdb

[root@iZ28afd0manZ /]# mkfs.ext3 /dev/xvdb
mke2fs 1.41.12 (17-May-2010)
/dev/xvdb is mounted; will not 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值