1

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.

13
  • can you please edit and paste the output of cat /etc/fstab, formated text with {}
    – cmak.fr
    Jun 16, 2018 at 13:14
  • @cmak.fr : Added the output to post Jun 16, 2018 at 13:28
  • Is Windows fast start up on? askubuntu.com/questions/145902/… Loading NTFS is a bit slower, but just a few seconds unless hibernated and then it has to time out and mount read only. You could create a manual mount script and either make it last or manually run it to mount it when desired.
    – oldfred
    Jun 16, 2018 at 14:09
  • @oldfred : No, Windows fast startup is off. I'd like to continue to automatically mount the shared partition at startup when booting Windows and delay the mount of the shared partition when booting Ubuntu. Jun 16, 2018 at 16:05
  • Have you recently run chkdsk from Windows on that shared NTFS partition? My old XP improved from 5 min boot to 3 min boot after several chkdsk runs, even though it did not show any errors. With that system Ubuntu was 40 sec, or why I liked Ubuntu better.
    – oldfred
    Jun 17, 2018 at 0:43

1 Answer 1

1

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
5
  • You might want to explain how to mount the drive after setting noauto to the line since it will not be mounting during startup then.
    – Terrance
    Jun 16, 2018 at 14:33
  • @cmak.fr : Thanks! How/where can I put a script to mount the shared drive so that it is mounted once boot is complete? Jun 16, 2018 at 16:08
  • you can try a cron task at reboot...
    – cmak.fr
    Jun 16, 2018 at 17:02
  • 1
    @AllisonKlopp After it is booted up you type in sudo mount /media/share to mount it as the mount command will read it from the /etc/fstab file at that point.
    – Terrance
    Jun 19, 2018 at 3:21
  • @Terrance updated my post with info on what I have tried and results. Jun 19, 2018 at 15:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .