0

This question already has an answer here:

I have one disk with all ubuntu partitions and a separate Data partition.

If i try to open a file located on Data partition through a program the file is unavailable. If i open the partition in Files and then try to open the the same file through the same program everything works.

Is there something wrong with the mounting options and how do i best check that?

marked as duplicate by Sergiy Kolodyazhnyy, Ravan, Pilot6, Charles Green, Eric Carvalho Dec 22 '15 at 15:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • is it in your fstab ? cat /etc/fstab and check if your data partition is there somewhere – user257256 Dec 21 '15 at 21:52
  • I am not sure I can help much but more information is needed. I'd suggest you add screen shots for your fstab file ('cat /etc/fstab'), 'lsblk' command, and 'sudo fdisk -l' command – Dave Dec 21 '15 at 21:59
2

By default the disk partitions other than root or swap are shown as available but not auto-mounted. Clicking on the partition icons in file manager runs udisksctl command in background that mounts those partitions for your user.

To make them auto-mounted , follow suggestions in Automatically Mount Partitions article from Ubuntu's official documentation site. Basically, you must have additional entries in /etc/fstab file for any additional partition besides root or swap. Here's an example of an entry for my Windows partition

UUID=4EBAAE53BAAE36FD /media/WINDOWS  ntfs noatime,nodiratime,user=1000,rw 0 0

Use sudo blkid command in terminal to find out the UUID of each partition

Not the answer you're looking for? Browse other questions tagged or ask your own question.