TransWikia.com

Auto-mounting external hard drive not working

Unix & Linux Asked by ÁppleAssassin on December 3, 2020

I’m trying to mount my external hard drive automatically on my server running Ubuntu 14.04.

I’ve tried editing /etc/fstab directly, I’ve tried GNOME Disks and I’ve tried ssbmount. None of them work after my server automatically resets every morning.

My fstab file looks like this:

# /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/sda1 during installation
UUID=e08eb43c-11ba-40e1-bc9d-122c364960d7 /               ext4        errors=remount-ro 0       1
/swapfile   none    swap    sw    0   0
#/dev/sdb2    /mnt/ext/drive01               ntfs-3g    errors=remount-ro 0           1
UUID=764A847D4A843C3D /mnt/ext/drive01 ntfs-3g nosuid,nodev,nofail,x-gvfs-show 0 0

The bottom most entry is the one relevant to the hard drive. It just simply won’t auto-mount on startup. I have to go into it, unmount it and then remount it; otherwise I get the error Failed to mount "Backup Drive". Error when getting information for file /mnt/ext/drive01: Transport endpoint is not connected"

If anyone could help clear up the problem that’d be great.

One Answer

To verify that you have your /etc/fstab set up correctly, the mount point exists, you're not relying on a disk manager to mount the drive for you, and you have ntfs-3g installed, can you try rebooting the server, then mount it with this command?

sudo mount /mnt/ext/drive01

Correct answer by vik on December 3, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP