Skip to main content
added 17 characters in body
Source Link
Ben
  • 109
  • 2
  • 14

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.

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?

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.

$ 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.

edited tags
Source Link
Ben
  • 109
  • 2
  • 14

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/tb/TDrive drwxrwxrwx 2 rootb rootusers 4096 Oct 21 11:42 /media/tb/TDrive 

But when I mount the external hdd, the permission changesand ownership change. This doesn't happen on another computer running Ubuntu.

$ sudo mount /dev/sdb1 /media/tb/TDrive $ ls -ld /media/tb/TDrive/ dr-x------ 1 root root 4096 Oct 18 15:02 /media/tb/TDrive/ $ cd /media/tb/TDrive/ bash: cd: /media/tb/TDrive/: Permission denied 

What can I do?

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/t/TDrive drwxrwxrwx 2 root root 4096 Oct 21 11:42 /media/t/TDrive 

But when I mount the external hdd, the permission changes. This doesn't happen on another computer running Ubuntu.

$ sudo mount /dev/sdb1 /media/t/TDrive $ ls -ld /media/t/TDrive/ dr-x------ 1 root root 4096 Oct 18 15:02 /media/t/TDrive/ $ cd /media/t/TDrive/ bash: cd: /media/t/TDrive/: Permission denied 

What can I do?

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?

edited tags
Source Link
Ben
  • 109
  • 2
  • 14

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/tb/TDrive sudo chmod a+rwx /media{,/tb,{/TDrive}} sudo chown -R b:users /media 

and everything looks good:

$ ls -ld /media/t/TDrive drwxrwxrwx 2 root root 4096 Oct 21 11:42 /media/t/TDrive 

But when I mount the external hdd, the permission changes. This doesn't happen on another computer running Ubuntu.

$ sudo mount /dev/sdb1 /media/t/TDrive $ ls -ld /media/t/TDrive/ dr-x------ 1 root root 4096 Oct 18 15:02 /media/t/TDrive/ $ cd /media/t/TDrive/ bash: cd: /media/t/TDrive/: Permission denied 

What can I do?

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/t/TDrive sudo chmod a+rwx /media{,/t,{/TDrive}} 

and everything looks good:

$ ls -ld /media/t/TDrive drwxrwxrwx 2 root root 4096 Oct 21 11:42 /media/t/TDrive 

But when I mount the external hdd, the permission changes. This doesn't happen on another computer running Ubuntu.

$ sudo mount /dev/sdb1 /media/t/TDrive $ ls -ld /media/t/TDrive/ dr-x------ 1 root root 4096 Oct 18 15:02 /media/t/TDrive/ $ cd /media/t/TDrive/ bash: cd: /media/t/TDrive/: Permission denied 

What can I do?

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/t/TDrive drwxrwxrwx 2 root root 4096 Oct 21 11:42 /media/t/TDrive 

But when I mount the external hdd, the permission changes. This doesn't happen on another computer running Ubuntu.

$ sudo mount /dev/sdb1 /media/t/TDrive $ ls -ld /media/t/TDrive/ dr-x------ 1 root root 4096 Oct 18 15:02 /media/t/TDrive/ $ cd /media/t/TDrive/ bash: cd: /media/t/TDrive/: Permission denied 

What can I do?

deleted 9 characters in body
Source Link
Ben
  • 109
  • 2
  • 14
Loading
Source Link
Ben
  • 109
  • 2
  • 14
Loading