在 Ubuntu 20.04 机器运行了一段时间后,我尝试运行df
,但它只是挂在那里。
dmesg
显示大量相同的错误消息:
[118924.226495] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118924.226928] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118924.227149] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118924.227344] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118924.227500] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118924.227701] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118924.227906] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118924.228065] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118924.228354] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118924.228517] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118929.496105] buffer_io_error: 1440 callbacks suppressed
[118929.496110] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118929.496422] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118929.496605] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118929.496780] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118929.496964] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118929.497150] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118929.497296] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118929.497445] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118929.497625] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118929.497855] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118934.783290] buffer_io_error: 1440 callbacks suppressed
下一步该怎么办?
我们可以卸载/dev/sdh1
然后重新挂载它,以便df
再次正常运行吗?如果是这样,我们如何找到的挂载点/dev/sdh1
,以便我们可以运行命令sudo umount <mountpoint_of_/dev/sdh1>
?
尝试了以下命令,但它们没有返回任何内容
findmnt -S /dev/sdh
findmnt -S /dev/sdh1
grep /dev/sdh /etc/mtab
grep /dev/sdh1 /etc/mtab
答案1
您无需知道挂载点即可卸载它,只需知道设备名称即可。只需执行sudo umount /dev/sdh1
。
如果您想识别挂载点,findmnt /dev/sdh1
就足够了。