I try to access an external hard drive with an ntfs filesystem from NixOS.
Is it correct that I have to create a mounting point? Where do you usually create a mounting point?
sudo mkdir -p /media/b/TDrive sudo chmod a+rwx /media{,/b,{/TDrive}} sudo chown -R b:users /media and everything looks good:
$ ls -ld /media/b/TDrive drwxrwxrwx 2 b users 4096 Oct 21 11:42 /media/b/TDrive But when I mount the external hdd, the permission and ownership change. This doesn't happen on another computer running Ubuntu.
$ sudo mount /dev/sdb1 /media/b/TDrive $ ls -ld /media/b/TDrive/ dr-x------ 1 root root 4096 Oct 18 15:02 /media/b/TDrive/ $ cd /media/b/TDrive/ bash: cd: /media/b/TDrive/: Permission denied What can I do?
The above problem doesn't happen on another computer running Ubuntu.