You are not logged in.

#1 2009-10-28 23:53:45

ILoveJapaneseGirls
Banned
Registered: 2009-09-05
Posts: 72

"mount system call failed" what's wrong?

Hi I have a network between two computers here. NAT works okay, but I can't share files between them.

I followed the wiki so here goes some configuration files (server first):

NAT.sh

#!/bin/bash
ifconfig eth0 192.168.0.1
iptables -t nat -I POSTROUTING -s 192.168.0.2 -d 0/0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

/etc/hosts.allow

nfsd: 192.168.0.2/255.255.255.255
rpcbind: 192.168.0.2/255.255.255.255
mountd: 192.168.0.2/255.255.255.255

/etc/hosts.deny

ALL: ALL: DENY

connectNET.sh

/etc/rc.d/rpcbind start
/etc/rc.d/nfs-common start
/etc/rc.d/nfs-server start

Result....
:: Starting rpcbind                                                       [DONE] 
:: Starting rpc.statd daemon                                         [DONE] 
:: Mounting pipefs filesystem                                        [BUSY] 
:: Starting rpc.idmapd daemon                                     [DONE] 
:: Mounting nfsd filesystem                                           [DONE] 
:: Exporting all directories                                            [DONE] 
:: Starting rpc.nfsd daemon                                          [DONE] 
:: Starting rpc.mountd daemon                                     [DONE]

It's okay up to now, but when I type in the laptop:

mount 192.168.0.1:/root/Desktop/Teste /media/arquivos

it says: mount.nfs: mount system call failed.

I made a log with tcpdump of what happens in this mounting time. Here it goes:

the log of the desktop:

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
21:28:57.572384 IP 192.168.0.2.48562 > 192.168.0.1.sunrpc: Flags [S], seq 3081498172, win 5840, options [mss 1460,sackOK,TS val 179694 ecr 0,nop,wscale 6], length 0
21:28:57.572801 IP 192.168.0.1.sunrpc > 192.168.0.2.48562: Flags [S.], seq 3721592297, ack 3081498173, win 5792, options [mss 1460,sackOK,TS val 150520 ecr 179694,nop,wscale 6], length 0
21:28:57.572896 IP 192.168.0.2.48562 > 192.168.0.1.sunrpc: Flags [.], ack 1, win 92, options [nop,nop,TS val 179694 ecr 150520], length 0
21:28:57.572988 IP 192.168.0.2.48562 > 192.168.0.1.sunrpc: Flags [P.], ack 1, win 92, options [nop,nop,TS val 179694 ecr 150520], length 116
21:28:57.573005 IP 192.168.0.1.sunrpc > 192.168.0.2.48562: Flags [.], ack 117, win 91, options [nop,nop,TS val 150520 ecr 179694], length 0
21:28:57.573595 IP 192.168.0.1.sunrpc > 192.168.0.2.48562: Flags [P.], ack 117, win 91, options [nop,nop,TS val 150520 ecr 179694], length 32
21:28:57.573656 IP 192.168.0.2.48562 > 192.168.0.1.sunrpc: Flags [.], ack 33, win 92, options [nop,nop,TS val 179694 ecr 150520], length 0
21:28:57.573697 IP 192.168.0.2.48562 > 192.168.0.1.sunrpc: Flags [F.], seq 117, ack 33, win 92, options [nop,nop,TS val 179694 ecr 150520], length 0
21:28:57.573745 IP 192.168.0.2.814 > 192.168.0.1.57654: Flags [S], seq 3091877297, win 5840, options [mss 1460,sackOK,TS val 179694 ecr 0,nop,wscale 6], length 0
21:28:57.573769 IP 192.168.0.1.57654 > 192.168.0.2.814: Flags [S.], seq 3725333566, ack 3091877298, win 5792, options [mss 1460,sackOK,TS val 150520 ecr 179694,nop,wscale 6], length 0
21:28:57.573818 IP 192.168.0.1.sunrpc > 192.168.0.2.48562: Flags [F.], seq 33, ack 118, win 91, options [nop,nop,TS val 150520 ecr 179694], length 0
21:28:57.573826 IP 192.168.0.2.814 > 192.168.0.1.57654: Flags [.], ack 1, win 92, options [nop,nop,TS val 179694 ecr 150520], length 0
21:28:57.573864 IP 192.168.0.2.814 > 192.168.0.1.57654: Flags [P.], ack 1, win 92, options [nop,nop,TS val 179694 ecr 150520], length 44
21:28:57.573875 IP 192.168.0.1.57654 > 192.168.0.2.814: Flags [.], ack 45, win 91, options [nop,nop,TS val 150520 ecr 179694], length 0
21:28:57.573878 IP 192.168.0.2.48562 > 192.168.0.1.sunrpc: Flags [.], ack 34, win 92, options [nop,nop,TS val 179694 ecr 150520], length 0
21:28:57.573946 IP 192.168.0.1.57654 > 192.168.0.2.814: Flags [P.], ack 45, win 91, options [nop,nop,TS val 150520 ecr 179694], length 24
21:28:57.574000 IP 192.168.0.2.814 > 192.168.0.1.57654: Flags [.], ack 25, win 92, options [nop,nop,TS val 179694 ecr 150520], length 0
21:28:57.574031 IP 192.168.0.2.814 > 192.168.0.1.57654: Flags [F.], seq 45, ack 25, win 92, options [nop,nop,TS val 179694 ecr 150520], length 0
21:28:57.574101 IP 192.168.0.1.57654 > 192.168.0.2.814: Flags [F.], seq 25, ack 46, win 91, options [nop,nop,TS val 150520 ecr 179694], length 0
21:28:57.574162 IP 192.168.0.2.814 > 192.168.0.1.57654: Flags [.], ack 26, win 92, options [nop,nop,TS val 179694 ecr 150520], length 0

and the log of the laptop:

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
21:31:17.028990 IP 192.168.0.2.40571 > 192.168.0.1.sunrpc: Flags [S], seq 1631273214, win 5840, options [mss 1460,sackOK,TS val 233744 ecr 0,nop,wscale 6], length 0
21:31:17.029460 IP 192.168.0.1.sunrpc > 192.168.0.2.40571: Flags [S.], seq 2263960074, ack 1631273215, win 5792, options [mss 1460,sackOK,TS val 204571 ecr 233744,nop,wscale 6], length 0
21:31:17.029496 IP 192.168.0.2.40571 > 192.168.0.1.sunrpc: Flags [.], ack 1, win 92, options [nop,nop,TS val 233744 ecr 204571], length 0
21:31:17.029738 IP 192.168.0.2.40571 > 192.168.0.1.sunrpc: Flags [P.], ack 1, win 92, options [nop,nop,TS val 233744 ecr 204571], length 116
21:31:17.029825 IP 192.168.0.1.sunrpc > 192.168.0.2.40571: Flags [.], ack 117, win 91, options [nop,nop,TS val 204571 ecr 233744], length 0
21:31:17.029907 IP 192.168.0.1.sunrpc > 192.168.0.2.40571: Flags [P.], ack 117, win 91, options [nop,nop,TS val 204571 ecr 233744], length 32
21:31:17.029922 IP 192.168.0.2.40571 > 192.168.0.1.sunrpc: Flags [.], ack 33, win 92, options [nop,nop,TS val 233744 ecr 204571], length 0
21:31:17.029967 IP 192.168.0.2.40571 > 192.168.0.1.sunrpc: Flags [F.], seq 117, ack 33, win 92, options [nop,nop,TS val 233744 ecr 204571], length 0
21:31:17.030017 IP 192.168.0.2.ftps > 192.168.0.1.57654: Flags [S], seq 1616938438, win 5840, options [mss 1460,sackOK,TS val 233744 ecr 0,nop,wscale 6], length 0
21:31:17.030057 IP 192.168.0.1.sunrpc > 192.168.0.2.40571: Flags [F.], seq 33, ack 118, win 91, options [nop,nop,TS val 204571 ecr 233744], length 0
21:31:17.030068 IP 192.168.0.2.40571 > 192.168.0.1.sunrpc: Flags [.], ack 34, win 92, options [nop,nop,TS val 233744 ecr 204571], length 0
21:31:17.030094 IP 192.168.0.1.57654 > 192.168.0.2.ftps: Flags [S.], seq 2252792193, ack 1616938439, win 5792, options [mss 1460,sackOK,TS val 204571 ecr 233744,nop,wscale 6], length 0
21:31:17.030106 IP 192.168.0.2.ftps > 192.168.0.1.57654: Flags [.], ack 1, win 92, options [nop,nop,TS val 233744 ecr 204571], length 0
21:31:17.030242 IP 192.168.0.2.ftps > 192.168.0.1.57654: Flags [P.], ack 1, win 92, options [nop,nop,TS val 233744 ecr 204571], length 44
21:31:17.030312 IP 192.168.0.1.57654 > 192.168.0.2.ftps: Flags [.], ack 45, win 91, options [nop,nop,TS val 204571 ecr 233744], length 0
21:31:17.030402 IP 192.168.0.1.57654 > 192.168.0.2.ftps: Flags [P.], ack 45, win 91, options [nop,nop,TS val 204571 ecr 233744], length 24
21:31:17.030411 IP 192.168.0.2.ftps > 192.168.0.1.57654: Flags [.], ack 25, win 92, options [nop,nop,TS val 233744 ecr 204571], length 0
21:31:17.030469 IP 192.168.0.2.ftps > 192.168.0.1.57654: Flags [F.], seq 45, ack 25, win 92, options [nop,nop,TS val 233744 ecr 204571], length 0
21:31:17.030560 IP 192.168.0.1.57654 > 192.168.0.2.ftps: Flags [F.], seq 25, ack 46, win 91, options [nop,nop,TS val 204571 ecr 233744], length 0
21:31:17.030573 IP 192.168.0.2.ftps > 192.168.0.1.57654: Flags [.], ack 26, win 92, options [nop,nop,TS val 233744 ecr 204571], length 0
21:31:17.422459 IP 192.168.0.2.38930 > dns1.ctb.virtua.com.br.domain: 26889+ PTR? 1.0.168.192.in-addr.arpa. (42)
21:31:17.443879 IP dns1.ctb.virtua.com.br.domain > 192.168.0.2.38930: 26889 NXDomain* 0/1/0 (109)
21:31:17.444066 IP 192.168.0.2.44084 > dns1.ctb.virtua.com.br.domain: 61138+ PTR? 2.0.168.192.in-addr.arpa. (42)
21:31:17.455870 IP dns1.ctb.virtua.com.br.domain > 192.168.0.2.44084: 61138 NXDomain* 0/1/0 (109)
21:31:17.456295 IP 192.168.0.2.48348 > dns1.ctb.virtua.com.br.domain: 13686+ PTR? 87.77.250.200.in-addr.arpa. (44)
21:31:17.481928 IP dns1.ctb.virtua.com.br.domain > 192.168.0.2.48348: 13686 3/3/3[|domain]

I don't understand what's happening. Do you have any ideas??

Thanks in advance!!

Offline

#2 2009-11-19 16:12:54

IHateJapaneseDolphinKille
Member
Registered: 2009-11-19
Posts: 1

Re: "mount system call failed" what's wrong?

mount 192.168.0.1:/root/Desktop/Teste /media/arquivos

Try this instead:

mount -t nfs4 192.168.0.1:/ /media/arquivos

Offline

#3 2009-12-04 14:16:56

drostin77
Member
Registered: 2009-07-15
Posts: 45

Re: "mount system call failed" what's wrong?

Sorry for the useless post but:

1) Arch forums are amazing, I use arch exclusively now, but I always go t google first, find a few bad results, go to the arch forums and find a solution rapidly, here is another case of that.

2) The names of the users in this post are "ILoveJapaneseGirls" and "IHateJapaneseDolphinKille"... that is amazing.

Offline

Board footer

Powered by FluxBB