无法挂载 /dev/dm-2 。并且 dm-2 的文件系统显示为空

无法挂载 /dev/dm-2 。并且 dm-2 的文件系统显示为空

我的服务器有 /dev/dm-0 、 /dev/dm-1 和 /dev/dm-2 。前两个可以成功安装,而第三个则失败并显示以下消息

mount: you must specify the filesystem type . 

dm-2 一直运行良好,直到有一天它变成了只读系统(我不知道为什么会发生这种情况。我就是无法将任何数据写入该磁盘)。所以我重新启动了服务器,现在我无法再安装它了。有谁可以给​​我提示吗?以下是我已经尝试过的一些方法。谢谢!

所以我输入了命令

lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL 

NAME                                 FSTYPE        SIZE MOUNTPOINT   LABEL
sr0                                               1024M            
sda                                                2.7T            
└─sda1                               LVM2_member   2.7T            
└─cv--storage-cv08_5T (dm-2)                     4.6T            
sdb                                                1.8T            
└─sdb1                               LVM2_member   1.8T            
└─cv--storage-cv08_5T (dm-2)                     4.6T            
sdc                                              465.8G            
├─sdc1                               ext4          953M /boot      
├─sdc2                               swap         18.6G [SWAP]      
├─sdc3                               ext4         74.5G /          
├─sdc4                                               1K             
└─sdc5                               LVM2_member 371.7G            
├─cv--storage-cv--workplace (dm-0)   ext4        180.7G            
└─cv--storage-hadoop (dm-1)          ext4          191G 

我认为 dm-2 的文件系统有问题。使用

e2fsck -f /dev/dm-2 

将会呈现

e2fsck: Attempt to read block from filesystem resulted in short read 
while trying to open /dev/dm-2
Could this be a zero-length partition?

mkfs.ext4 /dev/dm-2

将会呈现

mke2fs 1.42 (29-Nov-2011)
Warning: could not erase sector 2: Attempt to write block to filesystem resulted in short write
Filesystem label= 
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
152621056 inodes, 1220942848 blocks
61047142 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
37261 block groups
32768 blocks per group, 32768 fragments per group
4096 inodes per group
Superblock backups stored on blocks: 
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
102400000, 214990848, 512000000, 550731776, 644972544

Allocating group tables: done                            
Warning: could not read block 0: Attempt to read block from filesystem resulted in short read
Warning: could not erase sector 0: Attempt to write block to filesystem resulted in short write
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:     1/37261
Warning, had trouble writing out superblocks

答案1

我相信我已经找到答案了:硬盘受到物理损坏。

相关内容