云主机提示Disk /dev/xvdb doesn’t contain a valid partition table

时间:2020-12-09 23:37:01

首先参考如下文章:

http://heyongchao.com/ali-cloud-hosting-tips-disk-dev-xvdb-doesn-t-contain-a-valid-partition-table.do

之后发现还不行,无法格式化,于是又找了下面的文章:

http://www.netshield.cn/support/4560/


问题原因:

格式化扩展分区报错,扩展分区不能格式化,要扩展分区下的逻辑分区才能格式化

//新建逻辑分区

#fdisk /dev/sdb

Command (m for help): n

Command action

l logical (5 or over)

p primary partition (1-4)

l

First cylinder (1-13054, default 1): 1

Last cylinder, +cylinders or +size{K,M,G} (1-13054, default 13054):

Using default value 13054


Command (m for help): w

The partition table has been altered!


Calling ioctl() to re-read partition table.

Syncing disks.


//格式化ext3系统,挂载可以正常mount了

# mkfs.ext3 /dev/sdb5