I'd posted awhile back saying that one of my File Conferences, which
lives on a NAS drive connected to my BBS box, had bad permissions and
Well, thats not exactly right. I ssh into my BBS box [system], and
simply type 'cp /mnt/Backup4TB/ROMs/rom/SegaMasterDrive/'Zool 64
[!].sms' .'... (or any file) and my 'pi' user has no problem copying
files from that mounted drive...
Thanks, in case anyone reads some issue that I haven't seen yet.
Paulie can you post that line from your /etc/fstab and also the
applicable lines from /etc/export ?
Thanks, tallship, for trying to help...
Paulie can you post that line from your /etc/fstab and also the applicable lines from /etc/export ?
So currently I've just been running a .sh script, something like:
$ ~/mystic/mountroms.sh
#!/bin/bash
sudo mount -t nfs 10.0.0.13:/export/Backup4TB /mnt/Backup4TB
...I currently have my fstab entry commented out, I don't remember exactlywhy... heres my /etc/fstab anyway:
pi@bbs:~ $ cat /etc/fstab
proc /proc proc defaults 0 0 PARTUUID=fad0b673-01 /boot vfat defaults 0 2 PARTUUID=fad0b673-02 / ext4 defaults,noatime 0 1 # a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that #10.0.0.16:/export/Backup4TB /var/Backup4TB nfs defaults 0 0
And it seems like I don't have an /etc/export. What is that??? I know a lotwith Linux, but... I'm reminded often that the 'lot' that I know is little toothers. :P
Anyway, if I remember correctly I was mounting the NFS in my /etc/fstab butthen commented it out for a bit as I tested; somehow switched to this script,but... the drive is there, unless the way I'm doing it is fubar.
:P
your nfs /etc/export should be /etc/exports and that is found on the system that you're sharing the folders from in there you will have 1
line per share, showing something like;
the reason you may have disabled the mounting in fstab is when
rebooting the nfs client, ie your bbs pi, if the mount/networking is unavailable at the time it's booting it will hang the boot.
I would prolly say using the script after it's booted to mount is better unless the nfs mount and the pi will always be available, then use fstab. Hope this helps paulie420 =)
paulie420@Matrix:/etc $ cat exports
# This file is auto-generated by openmediavault (https://www.openmediavault.org)
# WARNING: Do not edit this file, your changes will get lost.
# /etc/exports: the access control list for filesystems which may be exported# to NFS clients. See exports(5).
/export/Backup4TB 10.0.0.0/24(fsid=1,rw,subtree_check,insecure) /export/Btrfs4TB 10.0.0.0/24(fsid=2,rw,subtree_check,insecure)
# NFSv4 - pseudo filesystem root
/export 10.0.0.0/24(ro,fsid=0,root_squash,no_subtree_check,hide)
the reason you may have disabled the mounting in fstab is when rebooting the nfs client, ie your bbs pi, if the mount/networking is unavailable at the time it's booting it will hang the boot.
Ding ding, winner... I think you're correct. And I just switched to running ascript to mount it while logged in - but... even with the
script, and not setupto mount automatically - it should WORK, right?
Thanks... thats what I thought - that even tho I'm not using fstab I
have tofigure out WHY users cant download 1st... it does help, mL - and you wereright... I had the fstab side worked out but possibly needed to
do the serverside setup.
You might also want to look for file/directory ownership and
permissions, as even though the shared filesystem is on another system, the user that is reading/writing from/to it needs to have access, so
check that the UID/GUI of the "pi" user (I assume that's the user that will be reading/writing on the bbs/pi, make sure that what UID/GID it
has on the bbs system, is also a valid UID/GID on the system that is sharing the files.
Make sure also that this UID/GID has access on the directory and files within for reading/writing.
Hope this helps.
Sysop: | Saxainden |
---|---|
Location: | Littleton, CO |
Users: | 30 |
Nodes: | 10 (0 / 10) |
Uptime: | 16:10:28 |
Calls: | 359 |
Calls today: | 1 |
Messages: | 36,390 |