Jump to content

SOLVED

A little update: it’s working now.

And it had nothing to do with networking, and I think it had something to do with the server (mini PC) itself.

I have a 2nd drive that’s mounted as an external drive, and it had this weird issue where it doesn’t get detected after reboot

  • no /dev/sda
  • lsusb entry for the external drive is missing.

I did:

  1. I powered down both of them for about a minute
  2. Power on the external drive
  3. Power on the server

And it’s now working.

 

NOTE: the external drive wasn’t being exported and in my testing, I was just exporting the /home only. So it’s either a coincidence or there’s a link.

 

-------------------------------

 

My laptop seems to be having a hard time mounting via autofs. 

I know for a fact that it can reach that server as my laptop is able to reach it via SSH.

Both computer and server are on the same VLAN. The computer is able to mount the NFS share from my other server in different VLAN just fine.

$ sudo automount -fvd
Starting automounter version 5.1.8, master map /etc/auto.master
using kernel protocol version 5.05
lookup_nss_read_master: reading master file /etc/auto.master
do_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry +dir:/etc/auto.master.d
lookup_nss_read_master: reading master dir /etc/auto.master.d
lookup_read_master: lookup(dir): scandir: /etc/auto.master.d
lookup_read_master: lookup(file): read entry +auto.master
lookup_nss_read_master: reading master files auto.master
do_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
master_do_mount: mounting /-
automount_path_to_fifo: fifo name /var/run/autofs.fifo--
lookup_nss_read_map: reading map files auto.media
do_init: parse(sun): init gathered global options: (null)
mounted direct on /media/nfs/data with timeout 300, freq 75 seconds
do_mount_autofs_direct: mounted trigger /media/nfs/data
st_ready: st_ready(): state = 0 path /-
handle_packet: type = 5
handle_packet_missing_direct: token 113, name /media/nfs/data, request pid 8848
attempting to mount entry /media/nfs/data
lookup_mount: lookup(file): looking up /media/nfs/data
lookup_mount: lookup(file): /media/nfs/data -> -fstype=nfs4,rw,soft,intr,noatime,x-gvfs-show    192.168.1.25:/home
parse_mount: parse(sun): expanded entry: -fstype=nfs4,rw,soft,intr,noatime,x-gvfs-show  192.168.1.25:/home
parse_mount: parse(sun): gathered options: fstype=nfs4,rw,soft,intr,noatime,x-gvfs-show
parse_mount: parse(sun): dequote("192.168.1.25:/home") -> 192.168.1.25:/home
parse_mount: parse(sun): core of entry: options=fstype=nfs4,rw,soft,intr,noatime,x-gvfs-show, loc=192.168.1.25:/home
sun_mount: parse(sun): mounting root /media/nfs/data, mountpoint /media/nfs/data, what 192.168.1.25:/home, fstype nfs4, options rw,soft,intr,noatime,x-gvfs-show
mount(nfs): root=/media/nfs/data name=/media/nfs/data what=192.168.1.25:/home, fstype=nfs4, options=rw,soft,intr,noatime,x-gvfs-show
mount(nfs): nfs options="rw,soft,intr,noatime,x-gvfs-show", nobind=0, nosymlink=0, ro=0
get_nfs_info: called with host 192.168.1.25(192.168.1.25) proto 6 version 0x840
mount(nfs): no hosts available
dev_ioctl_send_fail: token = 113
failed to mount /media/nfs/data
handle_packet: type = 5
handle_packet_missing_direct: token 114, name /media/nfs/data, request pid 8848
dev_ioctl_send_fail: token = 114
handle_packet: type = 5
handle_packet_missing_direct: token 115, name /media/nfs/data, request pid 8848
dev_ioctl_send_fail: token = 115
handle_packet: type = 5
handle_packet_missing_direct: token 116, name /media/nfs/data, request pid 8848
dev_ioctl_send_fail: token = 116

 

$ cat /etc/auto.media 
/media/nfs/data         -fstype=nfs4,rw,soft,intr,noatime,x-gvfs-show   192.168.1.25:/home

 

Desktop

Y4M1-II: AMD Ryzen 9-5900X | Asrock RX 6900XT Phantom Gaming D | Gigabyte RTX 4060 low profile | 64GB G.Skill Ripjaws V | 4TB Samsung 990 Pro + 8TB WD Black SN850X + 4TB 870 EVO + + 8TB WD Black HDD | Lian Li O11 Dynamic XL-X | Antec ST1000 1000W 80+ Titanium | MSI Optix MAG342CQR | LG DualUp | Tuxedo OS (Plasma)

-------------------------------

Mobile devices

Kuroneko: Lenovo ThinkPad X1 Yoga 4th - Intel i7-10510U | 16GB RAM | 1TB SSD | Pop!_OS (COSMIC)

Norena: HP Pavillion 15 with Ryzen 5 & GTX 1650

Black Decker: Steam Deck 512GB model; swapped storage 2TB NVME

Sylver: Galaxy Z Flip 6

Link to comment
https://linustechtips.com/topic/1570963-autofs-not-mounting/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×