Raspbian 中是否有运行备用磁盘安装程序?

Raspbian 中是否有运行备用磁盘安装程序?

当我启动 Raspberry Pi 时,它无法挂载 Samba 共享,并且会停止启动过程。这很奇怪,因为这些共享在文件nofail中具有选项fstab。但为了克服这个问题,我首先注释掉了,然后甚至删除了 fstab 文件中的所有 Samba 共享。尽管如此,每次启动都会失败,因为它仍然尝试挂载这些共享。

我收到的错误消息是:

[FAILED] Failed to mount /mnt/shared_drive.
See 'systemctl status mnt-shared_drive.mount' for details.
You are in emergency mode. After logging in type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to try again to boot into default mode.

Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.

Press Enter to continue.

按 Enter 键不会执行任何操作,因此我无法在正在运行的系统中进行挖掘。

是否有另一个服务(我已经配置但忘记了)会尝试在启动时挂载 Samba 共享?

(旁注:共享已启动并可安装,我已经尝试了fstab虚拟机中的设置,并且能够毫无问题地安装共享。)

答案1

您是否可能在中创建了 systemd 挂载单元文件/etc/systemd/system/mnt-shared_drive.mount

我想它/lib/systemd/system/也可能存在于目录中,尽管您不应该在那里进行自定义,因为任何包更新都可能会覆盖它们。

还可以尝试使用 更新您的 initramfs 文件update-initramfs -u,以防/etc/fstab上次更新时存储在 initramfs 中的旧版本文件导致问题。

相关内容