Author Topic: NFS in pdaxrom?  (Read 3645 times)

Xumbi

  • Full Member
  • ***
  • Posts: 178
    • View Profile
NFS in pdaxrom?
« on: October 12, 2004, 10:02:10 pm »
I have two boxes running Debian that I would like to connect my Z to with NFS, but I've never actually used NFS before.  Can someone point me to some good documentation?

blakeyez

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
NFS in pdaxrom?
« Reply #1 on: October 12, 2004, 10:06:02 pm »
NFS is pretty easy to setup...  Easy to leave very insecure, too, so unless you really want to read a lot, my suggestion is to run it behind a firewall.

Anyway, the NFS HowTo should do you for good documentation about NFS usage in Linux in general.  The implementation in pdaXrom shouldn't be too different from the norm.

Dave

Xumbi

  • Full Member
  • ***
  • Posts: 178
    • View Profile
NFS in pdaxrom?
« Reply #2 on: October 12, 2004, 10:21:22 pm »
Thanks for the reply.  I have read that howto, but unfortunately it seems like Debian does things differently (I couldn't find some of the rpc.* commands for example).  So I guess I need to find documentation specific to Debian, but google searches so far haven't turned up anything.

wizzro

  • Newbie
  • *
  • Posts: 2
    • View Profile
NFS in pdaxrom?
« Reply #3 on: October 13, 2004, 06:07:13 am »
First you need a kernel with NFS filesystem support (or modules) and some packages installed :
dpkg -l nfs-\* | grep ii
ii  nfs-common     1.0.6-3        NFS support files common to client and serve
ii  nfs-kernel-ser 1.0.6-3        Kernel NFS server support

Next you add a line like this and you replace with your own sttings :
/data           192.168.10.2(rw,no_root_squash,sync)

And finally you restart nfs (with root) with the command /etc/init.d/nfs-kernel-server restart

On the zaurus
mount -t nfs -o hard,intr,nolock,nfsvers=2 192.168.10.1:/data /tmp/p

I hope this help you

Xumbi

  • Full Member
  • ***
  • Posts: 178
    • View Profile
NFS in pdaxrom?
« Reply #4 on: October 13, 2004, 08:47:59 am »
Quote
First you need a kernel with NFS filesystem support (or modules) and some packages installed :
dpkg -l nfs-\* | grep ii
ii  nfs-common     1.0.6-3        NFS support files common to client and serve
ii  nfs-kernel-ser 1.0.6-3        Kernel NFS server support

Next you add a line like this and you replace with your own sttings :
/data           192.168.10.2(rw,no_root_squash,sync)

And finally you restart nfs (with root) with the command /etc/init.d/nfs-kernel-server restart

On the zaurus
mount -t nfs -o hard,intr,nolock,nfsvers=2 192.168.10.1:/data /tmp/p

I hope this help you
Thanks for the thorough reply.  From your instructions, and from google searches, I eventually figured it out.  I pretty much did everything you said, except I couldn't get it to work with nfs-kernel-server, so I removed that and installed nfs-user-server instead, and that worked.

This is great, now I can get to my entire music collection on my Z!  Wirelessly!!

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
NFS in pdaxrom?
« Reply #5 on: November 30, 2004, 03:39:12 am »
Quote
This is great, now I can get to my entire music collection on my Z! Wirelessly!!

   lucky you are, dear Xumbi...

on the Zaurus side, i keep stuck in

Code: [Select]
# mount /mnt/cdrom
mount: RPC: Port mapper failure - RPC: Unable to recieve

I don't understand...  

by the way, i can ssh from the Z to my linux box, but i can't ssh from the pc to the zaurus. Dunno if it's related,but maybe...
« Last Edit: November 30, 2004, 03:39:37 am by alan »

wizzro

  • Newbie
  • *
  • Posts: 2
    • View Profile
NFS in pdaxrom?
« Reply #6 on: November 30, 2004, 01:34:25 pm »
Quote
on the Zaurus side, i keep stuck in

Code: [Select]
# mount /mnt/cdrom
mount: RPC: Port mapper failure - RPC: Unable to recieve

I don't understand... 

Can you try with all the options :
mount -t nfs -o hard,intr,nolock,nfsvers=2

and especially nolock

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
NFS in pdaxrom?
« Reply #7 on: December 01, 2004, 05:57:10 am »
Quote
Can you try with all the options :
mount -t nfs -o hard,intr,nolock,nfsvers=2

i did
Code: [Select]
mount -t nfs -o hard,intr,nolock,nfsvers=2 192.168.129.200:/mnt/cdrom /mnt/cdrombut i have the same error

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
NFS in pdaxrom?
« Reply #8 on: December 01, 2004, 08:42:18 am »
Quote
# mount /mnt/cdrom
mount: RPC: Port mapper failure - RPC: Unable to recieve

for me it looks like something is wrong with the server not started for example.

how do you start the nfs server?

About your ssh problems what happens when you ssh to your Z?
« Last Edit: December 01, 2004, 08:47:04 am by pgas »
SLC-860 cacko / senao wifi

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
NFS in pdaxrom?
« Reply #9 on: December 01, 2004, 10:38:14 am »
hi !

i have a mandrake 10.0 and nfs is launched at boot.

i think it may be related to my firewall but i am not sure. what port should i leave open ?

Code: [Select]
#  rpcinfo -p
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp    992  status
    100024    1   tcp    995  status
    391002    2   tcp  32768  sgi_fam
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100021    1   udp  32771  nlockmgr
    100021    3   udp  32771  nlockmgr
    100021    4   udp  32771  nlockmgr
    100021    1   tcp  32769  nlockmgr
    100021    3   tcp  32769  nlockmgr
    100021    4   tcp  32769  nlockmgr
    100005    1   udp    720  mountd
    100005    1   tcp    723  mountd
    100005    2   udp    720  mountd
    100005    2   tcp    723  mountd
    100005    3   udp    720  mountd
    100005    3   tcp    723  mountd


and about this ssh trouble:

Code: [Select]
# ssh root@192.168.129.201
ssh: connect to host 192.168.129.201 port 22: Connection refused

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
NFS in pdaxrom?
« Reply #10 on: December 01, 2004, 11:27:32 am »
hmm, it seems you use the usb cable for ip connection to the zaurus.

It can also be a routing problem, like packets for 192.168.129.201 are sent through eth0 and not through usb0. Can you ping 192.168.129.201?

For the firewall you can try to open everything, just to see if it is the pb.
« Last Edit: December 01, 2004, 11:28:22 am by pgas »
SLC-860 cacko / senao wifi

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
NFS in pdaxrom?
« Reply #11 on: December 01, 2004, 12:53:54 pm »
Quote
It can also be a routing problem, like packets for 192.168.129.201 are sent through eth0 and not through usb0. Can you ping 192.168.129.201?
you're right ! i can't ping the zaurus... but the strange thing if that i can access the net via my usb connection    I thought every kind of connection would follow the same route... Do you know what i shoul do ?

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
NFS in pdaxrom?
« Reply #12 on: December 01, 2004, 01:27:21 pm »
do an ifconfig and check the mask for eth0.
it the mask is 255.0.0.0 or 255.255.0.0 then this might be the cause of the problem because then
linux will route all packet targeted 192.*.*.* or 192.168.*.* to eth0.

you could try

ifconfig eth0 netmask 255.255.255.0

(if I remember well)

otherwise you need to check the routing with route

Not I am no network admin so....
SLC-860 cacko / senao wifi