
我新增了一個內部 HDD,用作 Ubuntu 17 和 Windows 10 之間的共用分割區(使用本指南進行設定)。不幸的是,現在當我啟動 Ubuntu 時,啟動時間為 5 分鐘(而不是 30 秒),因為系統正在安裝 Ubuntu(儲存在內部 SDD 上)和共用分割區(在 HDD 上)。 Ubuntu 和 Windows 在共用分割區上共用的資料夾有備份、文件、音樂、圖片、公用、影片 - 所以我不認為延遲啟動 HDD 會在啟動 Ubuntu 時導致問題。 (當然,如果我錯了,請解釋一下。)
NAME FSTYPE SIZE MOUNTPOINT LABEL
sda 931,5G
└─sda1 ntfs 931,5G /media/Shared Shared
sdb 465,8G
├─sdb1 ntfs 367,3G
├─sdb2 ntfs 800M
├─sdb3 ext4 93,1G /
└─sdb5 swap 4,5G
筆記:sdb2 是 Windows 10。
那麼,有沒有辦法將硬碟的安裝延遲到Ubuntu啟動之後呢?
如果我可以提供任何其他資訊來解釋我的問題/當前設置,請告訴我。
新增資訊:的輸出cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb2 during installation
UUID=c391995e-3fcf-40a0-a300-d359bf55a668 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=d8f31d45-9319-45fc-b7a7-592e3097fa08 none swap sw 0 0
# swap was on /dev/sdb5 during installation
#UUID=e575692f-7baa-485c-a8cb-80ffda2b78f2 none swap sw 0 0
# Shared mount
UUID=44EC439A779EB78C /media/Shared/ ntfs-3g auto,user,rw 0 0
我嘗試過的:
我做了更改
/etc/fstab
依照建議(對於共用驅動器,自動 -> noauto)。但僅透過此更改,Ubuntu 就無法再正常啟動(永遠不會到達登入畫面,不響應鍵盤輸入)。最好在登入時安裝驅動器,而無需我每次手動幹預。我還嘗試將 mount 命令添加到腳本中
/etc/profile.d/
但是 Ubuntu 仍然無法啟動。另外,當我將變更還原到 fstab 後,我注意到以唯讀模式安裝共用磁碟機的錯誤。即使在恢復所有變更後,僅在 Windows 中啟動一次並重新啟動就恢復了我在 ubuntu 上存取共用磁碟機的能力。
答案1
編輯/etc/fstab
:在與您的共享雲端硬碟相關的行中,將選項更改auto
為noauto
UUID=44EC439A779EB78C /media/Shared/ ntfs-3g noauto,user,rw 0 0