PDA

Bekijk de volledige versie : Problems with sharing USB disc over NFS



Jean-Fabrice
06-03-2005, 08:18
Hi all,

Is nfs filesystem supported for mounting in 1.9.2.7-3 ?
I'm trying to mount a foreign partition on my wl500g and get a "mount: 192.168.0.5:/share no such file or directory"

Is there somethin wrong or will I have to recompile with kernel tweaked configuration ?

Oleg
06-03-2005, 11:38
Not at the moment, but this would be possible in the next firmware.

Jean-Fabrice
11-03-2005, 10:13
Well,

I'm trying harder to get nfs supported in 1.9.2.7-3 Oleg's firmware.
Oleg said it will be supported in the next release, but I would like to try on my own. If nobody has time time to spend teaching me, that's not a problem, I will wait :)

If you have time, here is my problem :
/tmp/broadcom/src/wl500g-1.9.2.7-3c/ > make kernel
/tmp/broadcom/src/wl500g-1.9.2.7-3c/ > make
/tmp/broadcom/src/linux/linux > make menuconfig (choose module support for NFS and support for NFS v3)
/tmp/broadcaom/src/gateway > make
/tmp/broadcaom/src/gateway > make install

I the get a flashable trx with module nfs.o included

When I try, after flashing, to load nfs.o via 'insmod nfs', I got a lot of errors about unresolved symbols and the nfs.o doesn't load. Unresolved symbols are on rpc stuff. I checked linux/linux/.config and saw that SUNRPC, LOCKD and LOCKD_V4 kernel parameters are set.

Does anyone know what I missed ? Any tips ?

JF

Oleg
11-03-2005, 10:22
Check your PM...

bubendorf
29-03-2005, 23:02
Is this now possible with the v1.9.2.7 CR4 firmware?
mount seems to work but says "... failed: No such device".

Markus

Jean-Fabrice
30-03-2005, 06:11
mount seems to work but says "... failed: No such device".


Yep, same thing at home. Mounting wlhdd exported partition on wl500g says "no such device".

I have a line in /tmp/syslog.log of wlhdd (nfsd server) which says "authenticated request from xx.Xx.xx.xx for /"

Have use all possible option with mount -tnfs -oblablah (like rsize, noroot_squash, etc...) with no effect
wlhdd and wl500g are in their respective /etc/hosts

bubendorf
30-03-2005, 06:17
Searching the internet I found
"No such device" - NFS is not configured into the client's kernel.

I seems the kernel still does not have NFS support.
Will this change in the near future?

Markus

bubendorf
30-03-2005, 06:45
OK. I found the error. I forgot the insmods:
insmod sunrpc
insmod lockd
insmod nfsd
insmod nfs

Now mount does not complain any more.
But it hangs. After I typed mount -tnfs 10.0.0.3:/tmp /mnt nothing happens. Not even Ctrl-C works any more.

Any ideas?

Markus

Oleg
30-03-2005, 07:31
start /usr/sbin/portmap, also you do not need to insmod nfsd

bubendorf
30-03-2005, 07:49
It works. :)
Many thanks for your answer and your great firmware.

Markus

ja.ro
10-04-2005, 17:29
Hi there. As I'm not yet equipped with wl-hdd, I try some experimenting on wl500gx. However, having problems with disk space (and it's non-persistency in the case of reboot), so I tried to mount my nfs shares into /tmp/harddisk on wl500gx, but wasn't succesful yet.

commands/logs/configuration:

/etc/exports:

/home/jan/nfs/asus 192.168.10(rw,no_root_squash,no_auth_nlm,insecure_ locks,async,insecure)

- started with rw, no_root_squash options. Others were added while trying to get it working


commands on asus:

[admin@asus /tmp]$ mount 192.168.1.5:/home/jan/nfs/asus /tmp/harddisk

mount: Mounting 192.168.1.5:/home/jan/nfs/asus on /tmp/harddisk failed: No such device


/var/log/syslog (at 192.168.1.5):

Apr 10 18:25:26 cloudcolor rpc.mountd: authenticated mount request from 192.168.1.10:658 for /home/jan/nfs/asus (/home/jan/nfs/asus)
Apr 10 18:25:54 cloudcolor ypbind[16368]: broadcast: RPC: Timed out.
Apr 10 18:27:08 cloudcolor ypbind[16368]: broadcast: RPC: Timed out.



What's wrong?



Another question is - do you think I can force asus to act as an diskless station - I mean - create root filesystem on that nfs share and chroot to it?

ja.ro
10-04-2005, 17:38
Hi there. As I'm not yet equipped with wl-hdd, I try some experimenting on wl500gx. However, having problems with disk space (and it's non-persistency in the case of reboot), so I tried to mount my nfs shares into /tmp/harddisk on wl500gx, but wasn't succesful yet.

commands/logs/configuration:

/etc/exports:

/home/jan/nfs/asus 192.168.10(rw,no_root_squash,no_auth_nlm,insecure_ locks,async,insecure)

- started with rw, no_root_squash options. Others were added while trying to get it working


commands on asus:

[admin@asus /tmp]$ mount 192.168.1.5:/home/jan/nfs/asus /tmp/harddisk

mount: Mounting 192.168.1.5:/home/jan/nfs/asus on /tmp/harddisk failed: No such device


/var/log/syslog (at 192.168.1.5):

Apr 10 18:25:26 cloudcolor rpc.mountd: authenticated mount request from 192.168.1.10:658 for /home/jan/nfs/asus (/home/jan/nfs/asus)
Apr 10 18:25:54 cloudcolor ypbind[16368]: broadcast: RPC: Timed out.
Apr 10 18:27:08 cloudcolor ypbind[16368]: broadcast: RPC: Timed out.



What's wrong?



Another question is - do you think I can force asus to act as an diskless station - I mean - create root filesystem on that nfs share and chroot to it?

ja.ro
11-04-2005, 00:25
Problem resolved. Kernel modules sunrpc, lockd, nfs were not loaded ;)

ravn
05-05-2005, 20:37
A qualified guess would be that the NFS file system is not compiled in the kernel, but that the utilities know about it, allowing the mount call to succeede but the registration i nthe kernel failed.

Oleg
05-05-2005, 21:06
Try 1.9.2.7-5, it will probably fix your problems.

Jared
30-05-2005, 15:27
I'm using 1.9.2.7-5a firmware in my WL-500B. NFS server is enabled through web interface, and /etc/exports is:

/tmp *(rw,async,no_root_squash)

I insert nfs.o first, like this:
insmod nfs

Then:
mount 127.0.0.1:/tmp /mnt

error msg in dmesg:
nfs warning: mount version older than kernel
RPC: sendmsg returned error 22
nfs: RPC call returned error 22
nfs_get_root: getattr error = 22
nfs_read_super: get root inode failed

Does anyone know how to solve this? Thanks very much!

Oleg
30-05-2005, 15:33
most likely this is due to /tmp filesystem - tmpfs/ramfs seems to be unsupported by nfs server.

Jared
31-05-2005, 02:48
most likely this is due to /tmp filesystem - tmpfs/ramfs seems to be unsupported by nfs server.

I change /tmp to /tmp/harddisk, which is in ext3 format, and it works fine.
Thanks very much!

guch79
31-05-2005, 16:26
It would be nice with a guide to NFS, dosenīt look like enybody have made one yet.

I would like to try a play with that feature to... but don know how to get it working.

NTAdmin
17-07-2005, 09:38
Hi,
I get a connection refused, while trying to mount NFS shares. Here are my config files:

/etc/exports:
[root@asus etc]$ cat /etc/exports
/home/maxtor 192.168.0.53(rw,no_root_squash)

/usr/local/sbin/post-boot:

[root@asus etc]$ cat /usr/local/sbin/post-boot
#!/bin/sh
mount -o remount,rw,noatime / /
cp /usr/local/conf/smb.conf /etc/smb.conf
cp /usr/local/conf/exports /etc/exports
/usr/sbin/nmbd -D
/usr/sbin/smbd -D
/usr/sbin/mountd &
/usr/sbin/portmap &

And on my linux box I type the following:
darkstar:/media # mount 192.168.0.1:/home/maxtor asus/
mount: RPC: Remote system error - Connection refused

I also have a hosts.allow if it is relevant, here it is:
[root@asus etc]$ cat /etc/hosts.allow
portmap:192.168.0.53

Can anyone tell me what am I missing please.

Oleg
17-07-2005, 11:36
I'm wonder why did you launch this stuff manually and do not use web interface? It's not just launching a daemon, you should prepare config files as well... You've to start nfsd too.

NTAdmin
17-07-2005, 13:11
ok, I figured this out too, I thought nfs also had a poor configuration from the web, but it turned out much better then samba, so no probs now.

wl500grocks
02-08-2005, 02:48
I'm new to linux. I'm trying to nfs mount on asus and getting "no such device" error. Please help.

----
on my other linux box (192.169.1.110):

# cat /opt/etc/exports
/share/hdd/data 192.168.1.1(rw,sync,no_root_squash)

# exportfs
/share/hdd/data
192.168.1.1


on my asus router:

[admin@router root]$ mount -t nfs 192.168.1.110:/share/hdd/data /tmp/nfs
mount: Mounting 192.168.1.110:/share/hdd/data on /tmp/nfs failed: No such device
----

Thank you for the help.

wl500grocks
02-08-2005, 19:48
Anyone? Pls help. Short of a samba client (which is not supported in the firmware yet), using NFS is my only option to mount an external storage. Thanks for your help.

wl500grocks
05-08-2005, 07:22
I'm at my wits end. Tried many variantion but of no help. Googling for info reveals that the "No Such device" means that nfs client supprort is not in the client kernel. Is this true?

I'm trying to use NFS client on the Asus router. Please HELP!

Jean-Fabrice
05-08-2005, 11:31
did you give a look at this : http://wl500g.info/showthread.php?t=1855&highlight=insmod+nfs ?

wl500grocks
06-08-2005, 06:20
That was it! It now works like a charm. Thank you so much Jean-Fabrice.

Jean-Fabrice
06-08-2005, 08:47
That was it! It now works like a charm. Thank you so much Jean-Fabrice.

I used the search func.

Isidor
21-09-2005, 16:08
Hi

I try to see what to do to launch the NFS server without configuring it into the web server. I've not see any tutorial on the forum or post on this subject using only Oleg's FWare.

My Wl500gx works fine with teh web options but I was looking to see if I could setup the from the post-mount on manually NFS

I've created an /etc/exports
also mkdir -p /var/lib/nfs

and run nfsd but the process doesn't start

adding the files etab rmtab xtab in the /var/lib/nfs/ dosen't change anything

Did someone have an idea of what to do ?

Regards

jaaput
24-09-2005, 12:18
Hi Isidor,

to put you on the right track (i hope), here a piece of my post-boot:

#
# Enable NFS-client
insmod sunrpc
insmod lockd
insmod nfs
/usr/sbin/portmap

Chances are that if you insmod nfsd instead of (or along with) nfs,
and then start your nfsd-daemon, it will work.

I haven't tried to run nfs-server myself, but I really think it will help a
little in achieving this.

Good luck, and regards, Jaap
2'20/41

Condor
25-09-2005, 11:17
Hello on all sides

I would gladly have a nfs server on the WL500g somebody has a manual like one sowas does? or is, possibly, already in design? if there manuals in German is I do not last gladly because I English so well can.

greeting condor

Condor
25-09-2005, 11:39
sorry who can read is clear in vortei! if an image with nfs server has found from Oleg

greeting condor

Smart71
23-10-2005, 12:55
I am using a WL500G Deluxe with Olegs Firmware 1.9.2.7-6b
I have exported a nfs share over the webinterface /tmp/harddisk/part1 and then mounted ist on my suse 10 to /media/wlanusbhdd.

I can get access to it, but only in read only mode.
Is there no way to get write access to it?

WLAN ROUTER:
[admin@wl500gd var]$ 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/part1 on /tmp/harddisk type vfat (rw,sync)
/dev/discs/disc0/part2 on /tmp/harddisk/part1 type ext3 (rw,noatime)
[admin@wl500gd var]$

SUSE10:
gateway:/ # mount
/dev/hda3 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/fd0 on /media/floppy type subfs (rw,nosuid,nodev,sync,fs=floppyfss,procuid)
192.168.0.2:/tmp/harddisk/part1 on /media/wl500gd.hdd type nfs (rw,addr=192.168.0.2)
gateway:/ #

Oleg
24-10-2005, 09:54
Post your exports line. Perhaps you've not specified no_root_squash and trying to write it as root.

Smart71
24-10-2005, 18:58
WLAN ROUTER EXPORT:
[admin@wl500gd root]$ cat /etc/exports
# automagically generated from web settings
/tmp/harddisk/part1 192.168.0.1(rw)
[admin@wl500gd root]$

elektronaut
20-12-2005, 00:29
Hi everybody,

I spent the last hours trying to access a usb drive connected to the wl500gx. While I can mount and read, I don't get write permission, neither as root nor user. This happens at the wl500gx:


[root@TheSource root]$ cat /proc/fs/nfs/exports
# Version 1.1
# Path Client(Flags) # IPs
/tmp/harddisk 192.168.1.2(ro,root_squash,sync,wdelay) # 192.168.1.2
[root@TheSource root]$ cat /etc/exports
# automagically generated from web settings
/tmp/harddisk 192.168.1.2 (rw) //here I also tried (rw,no_root_squash)

It's strange, if you look at the difference between the two "exports". They should both be rw!
This is how I mounted (as root):


me@my-computer ~ $ cat /proc/mounts
...
192.168.1.1:/tmp/harddisk /mnt/theSource nfs rw,v3,rsize=8192,wsize=8192,soft,udp,lock,addr=192 .168.1.1 0 0


Do you know what's going on?

Oleg
20-12-2005, 09:18
You've to post /etc/exports or exports line from the web iface.

elektronaut
20-12-2005, 12:17
First, I tried


/tmp/harddisk 192.168.1.2 (rw,no_root_squash)

then


/tmp/harddisk 192.168.1.2 (rw)

In both cases it didn't work.

Oleg
20-12-2005, 18:58
There should not be space between hostname and rights. At the moment all hosts, except 192.168.1.2 are allowed to do whatever they want.

elektronaut
28-12-2005, 17:07
I know it's a bit late, but - thanks a lot! That solved the problem.

oleo
17-03-2006, 11:43
WL-500gx NFS server speed measurement:

# dd if=/dev/zero bs=1024 count=5000000 of=/mnt/nfs/trash.dat & pid=$!
# while true ;do kill -USR1 $pid; sleep 300; done
594025+0 records in
594024+0 records out
608280576 bytes transferred in 324.738316 seconds (1873141 bytes/sec)
1126025+0 records in
1126024+0 records out
1153048576 bytes transferred in 624.813577 seconds (1845428 bytes/sec)
1701481+0 records in
1701480+0 records out
1742315520 bytes transferred in 924.808289 seconds (1883975 bytes/sec)
2284621+0 records in
2284620+0 records out
2339450880 bytes transferred in 1225.116235 seconds (1909575 bytes/sec)
2874441+0 records in
2874440+0 records out
2943426560 bytes transferred in 1524.905024 seconds (1930236 bytes/sec)
3453377+0 records in
3453376+0 records out
3536257024 bytes transferred in 1825.169147 seconds (1937496 bytes/sec)
4046273+0 records in
4046272+0 records out
4143382528 bytes transferred in 2124.898666 seconds (1949920 bytes/sec)
4632513+0 records in
4632512+0 records out
4743692288 bytes transferred in 2424.825202 seconds (1956303 bytes/sec)
5000000+0 records in
5000000+0 records out
5120000000 bytes transferred in 2609.890137 seconds (1961768 bytes/sec)


So it looks like les than 2MB/s for NFS write op.

harakiri576
26-04-2006, 10:33
I've got like 1.8 MB/s for NFS (rsize=32k, wsize=32k). And that's with ext3 as underlying fs.

Is there a way to get more? 1.8MB is OK for mp3 or dvdrip, even a single-layered dvd, but its not enough for double-layered dvd, and is generally _very_ slow.

Strange thing is, I get like 5 MB/s if measure speen on the router. So it takes more cpu time to send the data over nfs than to read it from usb? Gosh.

How can I possibly increase nfs speed?

macsat
26-04-2006, 11:37
The WL-HDD might be your choice of hardware - since the USB 2.0 implementation is slow and quite bad in the 2.4x kernel.

harakiri576
26-04-2006, 14:00
The WL-HDD might be your choice of hardware - since the USB 2.0 implementation is slow and quite bad in the 2.4x kernel.

Too late :)
And the wl-hdd doesn't add wlan to my home network anyway.
What about 2.6 kernel series? Is it possible to put that on the wl500g?

macsat
26-04-2006, 19:35
The Developement branch of OpenWrt uses kernel 2.6.

Since Broadcom refuses to give away sources (or details) for their wireless drivers, the wireless implementation for the 2.6 kernel is pretty bad though.

If you want to use wireless, the 2.6-based series is not yet an option.

mundu
28-04-2006, 14:56
I wonder if transfers with nfs server are faster than samba transfer. Someone posted nfs speeds they sure looked ok to me...i have vsftp and samba working fine...but i would like to try nfs...the only problem is that theres no tutorial :).

thx
Nuno

Control
30-04-2006, 11:34
So I set my /tmp/harddisk/part1/ as an export in the 'usb application --> nfs server' page of the router (using Olegs 1.9.2.7-7c FW).
From my linux box, I can now do:

mount -t nfs 192.168.1.254:/tmp/harddisk/part1/ /home/ben/mnt/asus/

and it mounts the directory. If I try and write anything to there, I get an error message about 'read-only file system'
so I tried

mount -o remount,rw 192.168.1.254:/tmp/harddisk/part1/ /home/ben/mnt/asus/

which seemed to work, mount now shows the drive mounted as rw, but I still get the same error message when trying to write anything.
What am I doing wrong?

Control
30-04-2006, 14:52
Don't bother, I found the problem.

captain747480
04-05-2006, 10:47
Don't bother, I found the problem.I've got a similar problem. How did you fix yours?

Control
05-05-2006, 05:04
Well, in my case, it turned out that I hadn't declared the exports correctly. Can you maybe post what you've got written into the list of exports in the web interface USB--->NFS?

captain747480
05-05-2006, 10:18
Well, in my case, it turned out that I hadn't declared the exports correctly. Can you maybe post what you've got written into the list of exports in the web interface USB--->NFS?Actually, having read your reply, I think my problem is different and so I'll start a new thread. Thanks for trying to help.

leadbelly
11-09-2006, 16:52
Hi all!

This question might be a bit offtopic since it concerns more linux in general, but i'll give it a shot...

I'm running some computers in my homenetwork, some winxp and some linux (ubuntu), and my wl500g can share sambashares w/o any problems whatsoever, my winxp-comp's can "mount" the sambashares and all.

On the linuxmachines i can see the "windowsnetwork" and browse trough the sambashares, but i cannot mount them in a folder... (newbie!!!)

So, i decided to try to enable NFS so i can use a more "native" method of sharing folders from the usbdisk attached to my wl500g.

The setup was no problem, just to add the searchpath in webgui for NFS and i could see the share in linux, but, it showed up as a windowsnetwork-share?...

Strange i thought, and even stranger was the fact that my other real sambashares now was missing :-/

So, i disabled the NFS, and tadaa, the sambashares showed up again...

Anyway to conclude:
How do i share my "/opt/share/sambashare/" so that it's mountable on my linuxmachine (not using samba)?
And remember, i'm a newbie in linux :)

Tomik
04-10-2006, 09:57
Hello,
I have the following problem with my ASUS wl-500gP with Oleg's firmware. After several weeks of using the NFS the mounting on client machines stopped work, I get only message "mount: RPC: Timed Out". I was googling a lot (including this post: http://wl500g.info/archive/index.php/t-2652.html), but I wasn't able to solve the problem.

More precise decription of the problem:

Router model:ASUS wl-500gP (Premium)
Firmware version: the latest version from http://oleg.wl500g.info/gp/ (wl500g-1.9.2.7-7f-pre7.tar.bz2)
The router is "Home Gateway" mode
Client machines: 1 PC (wired), 1 notebook (wifi), both with Debian Sarge. Firewalls on both are configured to accept the packets in ESTABLISHED or RELATED states. I also tried to disable the firewall, but no change happened.
The USB disc (200G Maxtor) is plugged into the router. The disc is partitioned into 4 pieces (vfat, ext3, ext3, ext3). The partiotions seems to be mounted correctly.
NFS and FTP servers are enabled on the router


Lines in the file /etc/exports looks like (sorry, I forgot the file at home and I can't connect to the router from outside)
/tmp/harddisk/ *(rw,async,no_root_squash)
/tmp/harddisk/part1 *(rw,async,no_root_squash)
... (the same line for parts 2 and 3)

The /etc/fstab lines on the client stations look like:

router:/tmp/harddisk /mnt/maxtor1 nfs rw,soft,user,noauto,showexec,iocharset=iso8859-2,rsize=8192,wsize=8192 0 0
router:/tmp/harddisk/part1 /mnt/maxtor2 nfs rw,soft,user,noauto,exec,rsize=8192,wsize=8192 0 0
... etc.

(the name 'router' is defined properly in /etc/hosts on client stations)

When I try to mount some of the directories, i get only message:
mount: RPC: Timed Out

I tried to play with the mount options, but it didn't help. nfs-common and portmap are running on the client stations.
All the partitions are still available via the FTP server.

The NFS mounting did work several weeks, but then suddenly it stopped work. I don't remember any changes on the client stations. On the router, I have only added rules for manual assigned address for DHCP, which IMO can't affect NFS. I couldn't find any messages in router's log which would suggest where is the problem.

I tried to reset the the router to factory settings (via web interface) and configure the exports again, but it didn't solve the problem.

The only weird thing I have noticed, that after umounting the disc (the "Eject" button in the web interface) partitions 1 (vfat) and 2 (ext3) are still mounted. I tried to unmount it manually (umount /tmp/harddisk/part1), but it said something about "Invalid argument".

Thanks for answers.

JR-__-
18-10-2006, 17:33
Hallo all have anyone tryied to mount the NFS from other linux system to asus wl500g deluxe?

Thx for replay.