如何在沒有系統存取權限的情況下在 CentOS 上刪除自動掛載

如何在沒有系統存取權限的情況下在 CentOS 上刪除自動掛載

我有一台 Nethserver 伺服器(基於 CentOS 7),最近其中一個磁碟出現故障。磁碟上沒有什麼重要的東西,所以我就把它刪除了。

但磁碟被設定為自動掛載/mnt/disk1,從那時起系統就不想再啟動了。

我檢查了日誌並確認它正在嘗試安裝磁碟,我相信這就是它不想再啟動的原因。

[* ] A start job is running for dev-disk-by\x2duuid-c418cb0c\x2d...944\x2d8639\x2d90b84dc0dab2.device (1min 29s / 1min 30s[ TIME ] Timed out waiting for device dev-disk-by\ x2duuid-c418cb0c\x2d03ba\x2d4944\x2d8639\x2d90b84dc0dab2.device.
[DEPEND] Dependency failed for /mnt/disk1.
[DEPEND] Dependency failed for Local File Systems.
[DEPEND] Dependency failed for Mark the need to relabel after reboot.
[DEPEND] Dependency failed for Migrate local SELinux policy changes from the old store structure to the new structure.
[DEPEND] Dependency failed for Relabel all filesystems, if necessary.
[DEPEND] Dependency failed for Collectd statistics daemon.

有什麼方法可以透過修改系統上的檔案來停用自動掛載,因為我無法從命令列啟動它來執行此操作?

我可以從電腦存取該磁碟,可以編輯文件,但不知道如何停用它。

相關內容