PDA

Bekijk de volledige versie : nfs mount problems



elektronaut
26-03-2006, 17:58
Hi,

I was successfully using nfs for a while and now I can't mount anymore, I always get a "no permission" error. I got no clue what's happening. The system log says:


Mar 26 17:29:20 syslog: refused mount request from 192.168.1.2 for /tmp/harddisk (/): no export entry


I followed the troubleshooting section in the nfs howto (http://nfs.sourceforge.net/nfs-howto/troubleshooting.html#SYMPTOM3):


$ less /etc/exports
# automagically generated from web settings
/tmp/harddisk 192.168.1.2(rw,no_root_squash)

$ less /proc/fs/nfs/exports
# Version 1.1
# Path Client(Flags) # IPs
/tmp/harddisk 192.168.1.2(rw,no_root_squash,sync,wdelay) # 192.168.1.2

$ less /var/lib/nfs/xtab
/tmp/harddisk 192.168.1.2(rw,sync,wdelay,hide,nocrossmnt,secure, no_root_squash,no_all_squash,subtree_check,secure_ locks,mapping=identity,anonuid=-2,anongid=-2)

Everything looks o.k., and I can certainly also ping from server to client. The 'who' command doesn't exist on the Asus, so I couldn't check on that. But I got no entry except for the Asus in /etc/hosts. I'm really puzzled because it used to work before.
For completeness here's my fstab entry:


TheSource:/tmp/harddisk /mnt/TheSource nfs rw,user,noauto,rsize=32768,wsize=32768,hard,intr 0 0

Neither


mount TheSource:/tmp/harddisk

nor


mount -tnfs -orw,hard,intr,rsize=32768,wsize=32768 TheSource:/tmp/harddisk /mnt/TheSource

work anymore.

Anybody got an idea what's happening?
(Firmware version: 1.9.2.7-6c-pre5)

Oleg
26-03-2006, 18:37
Does /tmp/harddisk exists and mounted on the wl500g? Which filesystem is used for storing data?

elektronaut
26-03-2006, 19:37
Yes, the usb drive is mounted on the Asus. It's using ext3. Like I said, I could use it before. The only thing about the file system is: I had to change it tio ext2 to resize it because I needed the space for /opt and swap partitions. GNU Parted didn't work for some reason (I forgot) and so I was using resize2fs on my laptop and afterwards fdisk on the Asus. But I rechanged it to ext3.


$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part3 on /opt type ext3 (rw)
/dev/discs/disc0/part1 on /tmp/harddisk type ext3 (rw,noatime)

oleo
27-03-2006, 06:55
Fro my experience I can say that somtetimes mountd fails to start. This was the case for 6b. But now wth 7c, it works as it should. Could not verify why this was the case. Maybe it fails because, export directories did not exist at the time It started.

Use
shoumount -e too see for troubles. Mine exports are:
/tmp/harddisk *(async,rw,no_root_squash)
/opt *(async,rw,no_root_squash)

elektronaut
27-03-2006, 08:55
This is strange, now it's working again. I hope it stays that way. mountd was started when the problem occurred, I checked on that. I also checked via showmount. I was also wondering if the wireless connection might be a problem but I don't think so as the mount requests where logged by the router. I'll post again if the problem comes up again. Thanks a lot for your suggestions!