(How) can I delay mount of secondary internal hard drive on boot?
I added an internal HDD which is used as a shared partition between Ubuntu 17 and Windows 10 (using this guide to set it up). Unfortunately, now when I boot Ubuntu the boot time is 5 minutes (instead of 30 seconds) as the system is mounting both Ubuntu (stored on an internal SDD) and the shared partition (on the HDD). Folders shared between Ubuntu and Windows on the shared partition are Backups, Documents, Music, Pictures, Public, Videos - so I don't envision how booting the HDD on a delay would cause problems when booting Ubuntu. (Of course, please explain it to me if I am mistaken.)
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
Notes: sdb2 is Windows 10. sdb3 is Ubuntu 17.
Therefore, is there a way I can delay the mounting of the HDD until after Ubuntu is booted?
Please let me know if I can provide any additional information to explain my question / current setup.
Add'l info: output of 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
What I have tried:
I made the change to the
/etc/fstab
as suggested (auto -> noauto for the shared drive). But with only this change, Ubuntu no longer boots properly (never reaches login screen, does not respond to keyboard input). Optimally the drive would mount on login without my manual intervention each time. I also tried adding the mount command to a script in
/etc/profile.d/
however still Ubuntu would not boot. Also, once I reverted the change to fstab, I noticed an error regarding the shared drive being mounted in read-only mode. Only booting once in windows and rebooting restored my ability to access the shared drive on ubuntu even after reverting all changes.
Edit /etc/fstab
: On the line related to your shared drive, change the option auto
to noauto
UUID=44EC439A779EB78C /media/Shared/ ntfs-3g noauto,user,rw 0 0