Linux断电重启后,硬盘挂载失败问题。

问题描述:

[FAILED] Failed to mount /data.
[DEPEND] Dependency failed for Local File Systems.
[DEPEND] Dependency failed for /date/data.
[FAILED] Failed to start Import ZFS pools by device scanning.
在这里插入图片描述

过程:

1. 查看文件系统挂载情况(看一下红框标的大硬盘是否挂载上):

在这里插入图片描述

df -h 没有找到大硬盘…

在这里插入图片描述

2. 手动挂载失败:

mount /dev/sdb1 /data 挂载失败:

在这里插入图片描述

3. 咨询DeepSeek解决方法:

在这里插入图片描述

4. 逐步尝试:

4.1 fsck 检查并修复文件系统(时间蛮久的,1h左右);
4.2 mount 重新挂载;
4.3 dmesg 检查文件系统状态;
(ps. 运行完前三步后,就已经挂载成功了,所以后面步骤没有再尝试)

5. 在其他机子上挂载大硬盘时报错:Stale file handle

在这里插入图片描述

解决方法:解挂载后再重新挂载。

参考:https://blog.youkuaiyun.com/weixin_53060366/article/details/128861967
在这里插入图片描述

参考:

[1]. DeepSeek.
[2]. https://blog.youkuaiyun.com/weixin_53060366/article/details/128861967

求求以后别突然断电了。。。😭,感谢DeepSeek对小菜鸡的帮助~😉

磁盘挂载失败问题可能是由于磁盘已被系统占用导致的。引用中提到的错误提示"/dev/sdb1 is apparently in use by the system"表明磁盘正在被系统使用,因此无法进行文件系统的创建。解决这个问题的方法是尝试重新启动系统,使用命令"shutdown -r now"来进行重启。重新启动后,再次运行"df -h"命令来查看磁盘空间情况,确认磁盘已经正确挂载并且空间大小正确。引用中也提到了这个解决方法。 总结起来,当遇到磁盘挂载失败问题时,首先应该检查磁盘是否被系统占用,可以通过运行"df -h"命令来查看。如果磁盘已被占用,可以尝试重新启动系统来解决问题。此外,还需要注意在解决问题时要保持细心,并将眼睛看到的异常都记录下来,这些异常可能存在某种联系。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Linux磁盘挂载问题 ***is apparently in use by the system; will not make a filesystem here!](https://blog.youkuaiyun.com/weixin_45786189/article/details/112259393)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [【Linux挂载磁盘的问题(/dev/sdb1 is apparently in use by the system; will not make a 文件系统 ...](https://blog.youkuaiyun.com/yxzone/article/details/113562852)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值