在上一篇文章《阿里云数据盘/硬盘挂载流程(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 disk2、格式化数据盘/dev/xvdb
[root@iZ28afd0manZ /]# mkfs.ext3 /dev/xvdb
mke2fs 1.41.12 (17-May-2010)
/dev/xvdb is mounted; will not

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

3934

被折叠的 条评论
为什么被折叠?



