无法安装 HDD/文件系统类型错误,超级块损坏

无法安装 HDD/文件系统类型错误,超级块损坏

当我尝试使用以下命令安装我的硬盘时:

sudo mount /dev/sdd /media/jinglez/MainFiles

我收到此错误:

jinglez@jinglezServer:~$ mount /dev/sdd /media/jinglez/MainFiles
mount: wrong fs type, bad option, bad superblock on /dev/sdd,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

根据要求,我运行dmesg | tail并返回:

jinglez@jinglezServer:~$ dmesg | tail
[   64.337321] init: transmission-daemon main process (882) terminated with status 127
[   64.337361] init: transmission-daemon respawning too fast, stopped
[   64.896160] tg3 0000:02:00.0: irq 42 for MSI/MSI-X
[   65.695028] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   65.695463] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   99.933921] systemd-hostnamed[3202]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[  120.906364] init: plymouth-stop pre-start process (4631) terminated with status 1
[  377.372510] EXT4-fs (sdd): bad geometry: block count 732566646 exceeds size of device (732566381 blocks)
[  380.264264] EXT2-fs (sdd): error: couldn't mount because of unsupported optional features (240)
[  382.129108] EXT3-fs (sdd): error: couldn't mount because of unsupported optional features (240)

答案1

在对我一无所知的东西进行深入研究之后,我确实找到了解决方案。

在对 dmesg 中几乎每一行看起来像错误的内容进行“谷歌搜索”之后,我发现坏的几何块是赢家。

377.372510] EXT4-fs (sdd): bad geometry: block count 732566646 exceeds size of device (732566381 blocks)

块数超过设备块的大小是有道理的。然而,当我读到我应该使用它resize2fs来调整它的大小时,我非常害怕,我深吸了一口气,哇!我又能查看我的文件了。

我知道磁盘上只使用了大约 1.5TB 的空间,所以为了安全起见,我这样做了:

resize2fs /dev/sdd 2500000M

然后我就能毫无问题地安装该驱动器了!

这就是我的解决方案!

相关内容