#Adding a NFS Server Drive to my Files for transfering files from my PC to my TrueNAS NAS

1 messages · Page 1 of 1 (latest)

weary parrot
#

I have been struggling with this for hours now and I'm mentally spent on this. I have read many forums and such on related errors and issues. I have got my system to this stage:

fstab seems to be working, my server ip is in fstab. When I launch, my drive looks to be showing in my Files, but I can't access it. This was the same when I have this saved to my /media/username/Shows. I cannot use cd /mnt/Shows as I get permission denied, even using sudo. I have made the folder I'm trying to access Public for testing. Any help on this would be appreciated

dim imp
#

maybe make the partition you want to access and use on linux as EXT4

#

afterwhich take ownership.

weary parrot
#

It's a Networking Share from another device in a RAID array that is running ZFS. It's not really able to partition into EXT4.

dim imp
#

kk

#

do you know the precise name of the 'operating system' that runs your NAS

weary parrot
#

Dang, I thought I put that in the post, it's TrueNAS

dim imp
#

just had a thought that maybe you have to put your linux user account into some group

#

like network , or fileshare, or something of that nature

#

like i know one has to do when using virtual machines in linux

weary parrot
#

I have the drive public, so that shouldn't be a problem. I was also accessing it from SMB but that doesn't work as well with Linux apparently

dim imp
#

i'll check out some deets on TruNAS

weary parrot
#

I can see the share from my files in SMB, but just can't seem to get it through NFS, I feel like it's a user issue, but could be something else. Like the drive is mounted properly it looks like, I just can't get access to it

dim imp
#

oh,

#

can you open file manager, and right click the share, and do properties? permissions, and show a ss of it

weary parrot
#

well that's something, maybe it's not properly mounted then?

dim imp
#

should look kind of like that.. even if the owner is left as root

#

you might be able to tweak that from linux

weary parrot
#

ah, okay. So it says "You are not the owner, so you cannot change these permissions", where do I go from here?

dim imp
#

go to the filesystem (/)

#

in nemo file manager

#

right click the mnt folder, and pick "open as root"

#

then in root nemo, review the properties of the Shows drive.

#

and probably you can make change

weary parrot
#

ah, well now I can open the folder, but it is not showing the contents of it...

dim imp
#

anything in it?

weary parrot
#

nothing

#

oh, yes

dim imp
#

right click the blank area

#

and do Create: new empty file

#

does it accomplish it?

weary parrot
#

it does, but I have no clue where...

dim imp
weary parrot
#

yes, I did that. does the SMB share and NFS share not share the same contents maybe?

#

They are to the same folder on the NAS

dim imp
#

you should see in the file pane now in your Shows folder a file that is simply "new file" and looks like a text file icon.

#

or it may say "untitled"

weary parrot
#

yes, I did see that. I'm going to move one of my shows over to it to see if Plex can see the media, if so, I am content

#

still a bit odd to me that 2 shares to the same path would not show contents from each other

#

both Shows and Movies are running both, but can't see the contents of each other despite having the same Path

dim imp
#

different protocol maybe. the nemo file manager deals with SMB/CIFS (SAMBA as it is known on linux)

weary parrot
#

Yeah, I was having issues with saving files from applications to the SMB folders and someone recommended to go with NFS. It has been a chaotic turn of events

dim imp
#

Filmed in 1920 x 1080 .Simple how to Tips for LMDE 6 & LM 22 Cinnamon SAMBA File Sharing & Firewall Tips. You can also add the Sambashare to your user Group . Highly Recommend watching the Video in it's entirety. Best viewed on a large screen.

0:00 - Intro SAMBA File Sharing & Firewall Tips
0:03 - Overview
2:19 - Installing SAMBA info
4:36 -...

▶ Play video
visual kestrel
visual kestrel
dim imp
#

yep

#

since they've mentioned both

weary parrot
#

not sure how to tell if read/write is enabled for tha

visual kestrel
weary parrot
#

okay, so shoudl be good there?

visual kestrel
#

yes, should work

#

make sure that nfs3 service is running

weary parrot
#

interestingly, I'm not seeing my NFS session in the Sessions tab of either NFS3 or NFS4

#

does that mean the /mnt/Shows drive is not properly mounting?

dim imp
#

i think Lot meant check on linux

#

probably as some systemd service that autostarts as the computer boots up... well before any log in or desktop

visual kestrel
#

yes

#

you need nfs utils on both your server and client

#

on server systemctl status nfs-server

weary parrot
weary parrot
visual kestrel
visual kestrel
weary parrot
#

all good, I think the export refresh is likely what needs to be done as well

#

I'm assuming I do "sudo systemctl restart nfs-kernel-server" now?

visual kestrel
weary parrot
#

maybe, I could be crazy, definite possibility

dim imp
#

systemctl status nfs-server <<do this on your linux computer to query

#

if it's on, then just reboot.

weary parrot
#

or nfs-common? I get service not found on nfs-server

dim imp
#

after that export thing Lot had u do

weary parrot
dim imp
#

dont turn ur linux client into a server, whatever u do

#

then u'll really mess up

#

just google it

#

'how to verify if nfs services are running on a linux client"

weary parrot
#

"To connect to an NFS drive on Linux, you need to install the NFS client package (like nfs-common for Ubuntu) and then use the mount command to mount the NFS share to a local directory"

weary parrot
# weary parrot

so likely nfs-common is the service to check and my was giving this response, which is showing inactive

dim imp
#

yes. could be because samba is running, but idk if it's the real cause

#

nfs-common : masked

weary parrot
dim imp
#

unmount the samba share via right click in the devices area in the file manager

weary parrot
#

it's currently unmounted

dim imp
#

cat /proc/mounts

weary parrot
#

I just now disabled the SMB share for it as well to avoid that possible issue

#

can reenable later if needed

dim imp
#

or this for more narrowed:
cat /proc/mounts | grep "/dev"

weary parrot
#

yoshi@TheIsland:~$ cat /proc/mounts | grep "/dev"
udev /dev devtmpfs rw,nosuid,relatime,size=16337612k,nr_inodes=4084403,mode=755,inode64 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/nvme0n1p2 / ext4 rw,relatime,errors=remount-ro 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,inode64 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,nosuid,nodev,relatime,pagesize=2M 0 0
/dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0

#

i don't believe any of those are the smb share, but I also haven't seen one in there to be able to tell

#

it looks like the same output either was

dim imp
#

correct. so it truly is unmounted. that's fine

visual kestrel
weary parrot
#

That just says to include the "insecure" option, which is already present on mine:
"/mnt/HDDs/Shows"
*(sec=sys,rw,insecure,no_subtree_check)

visual kestrel
weary parrot
#

it didn't error on my end this time after doing a exportfs -rav on the server, but can't access the folder

#

can as root though and all shows up there

visual kestrel
#

dedcat I have no idea

weary parrot
#

lol, i feel that, it may be because I ran the mount command as sudo, will see if I can unmount and remount

#

odd...

#

i'll try a restart and see if the fstab works as it should

#

permissions are not making sense at all to me, but my original issue is resolved as I am not getting the mount working properly

#

there just always seems to be a bigger fish

dim imp
#

maybe just forget NFS. review the vid i sent for SAMBA tips and use it that way

#

that or u didn't put the syntax into fstab correctly

#

usually drives start with:
UUID=

#

or when Disks app does it, it's /dev/by-uuid/something something

dim imp
#

The correct fstab syntax for a CIFS (Samba) network share is:
//ServerName/ShareName /path/to/mountpoint cifs credentials=/path/to/creds,_netdev,uid=1000,gid=1000,file_mode=0664,dir_mode=0775 0 0. Key components include the //server/share network path, the local mount point, the cifs type, the credentials file location, and options like _netdev to ensure network availability, uid/gid for permissions, and file_mode/dir_mode for file/directory permissions

weary parrot
#

I'll watch that video and check

dim imp
#

contrast the above to yours

#

uid and gid mean the user and group id on on linux. 1000 is always the logged-in main user

#

sample line:
//192.168.1.100/Data /mnt/nas cifs credentials=/home/user/.smbcredentials,_netdev,uid=1000,gid=1000,file_mode=0664,dir_mode=0775 0 0

#

notice yours has a colon after the internal IP address of the sharepoint

#

this example is for samba, obv. noting the Filesystem type column in the fstab line here is cifs

#

pictorially, for better illustration:

weary parrot
#

SAMBA will not work with the application I am using. That's the reason I started messing with NFS in the first place. Currently, I can access everything with root, but cannot as my user account.