I am in folder /datadrive/
which is the mount point of /dev/sdc1
(in /etc/fstab
I have /dev/sdc1 /datadrive ext4 defaults,nofail 1 2
) and whenever I try to make any operation in this folder (e.g. mv
, cp
, touch
...) the root privilege is required (sudo
). I guess this is because the file system is "read-only" (sorry for my ignorance, but I am not sure about that).
Since that I am going to execute many scripts, I would like to convert the file system here in what I guess is called "read/write", so that sudo
is not anymore required (correct me if I'm wrong).
I already tried with sudo mount -o remount,rw '/datadrive/'
without any effects. Do you have any idea so on how to remove the sudo
requirement?
EDIT
With ls -l
I get:
total 52
drwxr-xr-x 10 1002 1002 4096 Feb 22 15:53 ./
drwxr-xr-x 24 root root 4096 Feb 22 16:13 ../
drwxrwxr-x 5 1002 1002 4096 Feb 22 16:04 NGS-SparkGATK/
drwxr-xr-x 3 root root 4096 Feb 22 15:36 delete/
drwx--x--x 14 root root 4096 Feb 22 16:13 docker_var/
drwxrwxr-x 9 1002 1002 4096 Jan 22 15:18 fastq/
drwxr-xr-x 6 root root 4096 Feb 22 15:54 libraries/
drwx------ 2 root root 16384 Sep 25 13:23 lost+found/
drwxrwxr-x 4 1002 1002 4096 Nov 14 11:37 reference/
drwxrwxrwt 16 root root 4096 Feb 21 12:53 tmp/
ls -l /datadrive
It seems to be a permission issue./dev/sdc
is the primary device (not the partition, which would be/dev/sdc1
for example), and it's the partition which gets mounted at another location. Given your mount command example with/datadrive/
I presume that is the actual mount path? Please edit your question and explain which file system the partition is. Likely you mounted as root without setting appropriate permissions options when mounting./datadrive
is mounted:grep /datadrive /proc/mounts
/dev/sdc /datadrive ext4 rw,relatime,stripe=32748,data=ordered 0 0
seems to be Read/Write, so the problem is not in file system type, it must be something else...