我的服务器有/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发布于 2015-09-29 01:02:18
我相信我已经找到了答案:硬盘已经损坏。
https://askubuntu.com/questions/677153
复制相似问题