On 01 Jun 2021, paulie420 said the following...
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;
# 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)
#
/mnt/shared *(rw,sync,no_root_squash,subtree_check)
once you have set up your nfs shares in that file, save and quit and then run `exportfs -r` to enable (or refresh) any nfs shares you just setup 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 =)
---
|14Best regards,
|11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N
|07ÄÄ |08[|10eml|08] |
15ml@erb.pw |07ÄÄ |08[|10web|08] |15www.erb.pw |07ÄÄÄ¿ |07ÄÄ |08[|09fsx|08] |1521:1/158 |07ÄÄ |08[|11tqw|08] |151337:1/101 |07ÂÄÄÙ |07ÄÄ |08[|12rtn|08] |1580:774/81 |07ÄÂ |08[|14fdn|08] |152:250/5 |07ÄÄÄÙ
|07ÄÄ |08[|10ark|08] |1510:104/2 |07ÄÙ
--- Mystic BBS v1.12 A47 2020/12/04 (Linux/64)
* Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (1337:1/101)