I have Ubuntu 16.04
installed on a small SSD, and have a separate 500GB hard drive for bulk data.
However, after booting, this separate data drive is invisible when trying to access it from the command line. For instance, if I try to cd
to it with:
cd /media/jorn/Data
Bash return a No such file or directory
error.
To resolve this, I have to open the files system explorer and go to the drive. Only then does it show up in the terminal (without needing to restart the terminal).
My question is: Is there a way to trigger this 'initialization' automatically? Or perhaps through a terminal command that I can then put into .profile
?
I have seen this question about mounting a drive automatically at start up, but that option is already turned on for the drive in question. I'm not sure this is a problem with mounting any ways.
This question seems to ask about the same problem, but it asks about an external hard drive, and the question linked in the comments talks about a corrupted NTFS
partition. While my drive is formatted in Ext4
.
uhelper
option on the Fstab page. What does it do? 2.) If my system fails to boot, how would I roll back the change? Would I have to put the drive into another system? (I'm not running dual-boot). – Jorn Vernee Mar 18 '17 at 15:23uhelper
is an unmount helper option (see the man page for more information. To be honest, I've just always used this without really having a good reason to. You possibly don't need this at all. See also http://manpages.ubuntu.com/manpages/xenial/man8/umount.udisks2.8.html – user8675309 Mar 18 '17 at 15:27/media/jorn/Data
), as I was trying to see if these options would affect the fstab file. The entry:/dev/sda1 /media/jorn/Data auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=Data 0 0
appeared in/etc/fstab/
. I will accept this answer since steps 1-4 helped diagnosed the problem. Thanks for the help :) – Jorn Vernee Mar 18 '17 at 15:40