Hello, I connect second external drive HDD Seagate 6TB USB(with power supply) and want to add that drive as nfs share to my laptop. I did it with my first drive Toshiba 3TB HDD USB. That 6TB drive is formated as NTFS and it has root permissions. I change permissions to dietpi but after reboot it has root permissions again. It's possible to change that permanently and do I have to change some parameters in my ubuntu laptop fstab and dietpi fstab if that drive is ntfs?
there is a big difference between your 2 HDD. First one is ext4 file system while your 2nd is NTFS. On Unix-like operating systems such as Debian, you can run chown and chmod on ntfs file systems but they aren't going to have any effect on the actual permissions. Does the file system absolutely need to be ntfs? I would recommend ext4 if you like to use user permission.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Hi, I can format that drive but already have 1,6 TB of data and I took very long to copy from Toshiba drive. But if it's not possible to change permissions I will do that. I will format to ext4.
I was trying to mount a nfs and sshfs to test the docker of jellyfin (and failing miserably)
You might need to add ,uid=xxx,gid=xxx to the mount options...and remove defaults means it will always mount as root, make sure you use , (comma) with no spaces...also have it connected to mouse/KB/monitor in case fstab goes ape and doesn't work
Thanks guys for help but I format that drive. If I would have problems with this disk later with this ntfs, I prefer to format and tire a bit with data transfer now.
Thanks for Your time and help.
Regards,
Przemek
Hi, I format that drive but I noticed that is mounted and has root permissions. My first HDD has dietpi permissions, that because I had dietpi_userdata on it? Do I have now t change permissions to that new drive to:
```
sudo chmod - R 777 /mnt/Seagate
sudo chown -R dietpi:dietpi /mnt/Seagate
```
I will have on it folder where I will make backup of my local laptops with deja-dup and second where I will make dietpi-sync my dietepi_userdata folder from /mnt/Toshiba.
root@DietPi:/# cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)