kann nfs share nicht mounten

cremi

cremi

Dude
Habe am Server eine nfs Freigabe, welche ich problemlos mounten konnte. Habe nun Kubuntu hardy neu aufgesetzt (vorher 7.04). Nun bekomme ich folgende Meldung wenn ich verusche zu mounten:
Code:
laurin@rincewind:~$ sudo mount /media/media@librarian/
[sudo] password for laurin:
mount.nfs: access denied by server while mounting librarian:/media/usb500

meine /etc/fstab
Code:
laurin@rincewind:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda1
UUID=7a4db7e8-6f07-4ca8-a94f-453959f031d7 /               ext3    relatime,errors=remount-ro 0       1
# /dev/sda5
UUID=ca348b1c-2f87-49e3-828b-36ef49f53175 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
#home@librarian
#librarian:/media/usb500        /media/media@librarian nfs rsize=8192,wsize=8192,timeo=14,intr  0       0
librarian:/media/usb500 /media/media@librarian nfs rw,hard,intr,noexec 0 0
laurin@rincewind:~$

Einstellungen am Server:

Code:
laurin@librarian:~$ cat /etc/hosts.allow 
# /etc/hosts.allow: list of hosts that are allowed to access the system.
#                   See the manual pages hosts_access(5), hosts_options(5)
#                   and /usr/doc/netbase/portmapper.txt.gz
#
# Example:    ALL: LOCAL @some_netgroup
#             ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and 
# /usr/share/doc/portmap/portmapper.txt.gz for further information.
#
#
ALL: 192.168.0.0/255.255.255.0
laurin@librarian:~$ cat /etc/hosts.deny 
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
#                  See the manual pages hosts_access(5), hosts_options(5)
#                  and /usr/doc/netbase/portmapper.txt.gz
#
# Example:    ALL: some.host.name, .some.domain
#             ALL EXCEPT in.fingerd: other.host.name, .other.domain
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper. See portmap(8)
# and /usr/doc/portmap/portmapper.txt.gz for further information.
#
# The PARANOID wildcard matches any host whose name does not match its
# address.

# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID
ALL: ALL
laurin@librarian:~$ cat /etc/exports 
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes  gss/krb5i(rw,sync)
#
/media/usb500 192.168.0.3/255.255.255.0(rw,root_squash,sync)
/home 192.168.0.3/255.255.255.0(rw,root_squash,sync)
laurin@librarian:~$ sudo ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:1a:4d:0c:ee:9c  
          inet addr:192.168.0.4  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21a:4dff:fe0c:ee9c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1206 (1.1 KiB)  TX bytes:4471 (4.3 KiB)
          Interrupt:16 Base address:0xd000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:138 errors:0 dropped:0 overruns:0 frame:0
          TX packets:138 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:10860 (10.6 KiB)  TX bytes:10860 (10.6 KiB)

laurin@librarian:~$ 
laurin@librarian:~$ sudo exportfs 
/media/usb500   192.168.0.3/255.255.255.0
/home           192.168.0.3/255.255.255.0
laurin@librarian:~$
habe am Server alle Dienste neu gestartet - hat nichts geholfen.
Da es ja vorher Funktioniert hat und ich am Server nichts verändert habe, muss ja am client irgendwas falsch laufen. Ich hab aber keine ahnung was.

Netzwerkconfig Client:

Code:
laurin@rincewind:~$ sudo ifconfig
eth0      Link encap:Ethernet  HWaddr 00:17:08:48:35:d2
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::217:8ff:fe48:35d2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:572 errors:0 dropped:0 overruns:0 frame:0
          TX packets:537 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:699438 (683.0 KB)  TX bytes:99541 (97.2 KB)
          Interrupt:16

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:84 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6588 (6.4 KB)  TX bytes:6588 (6.4 KB)

laurin@rincewind:~$ cat /etc/hosts
127.0.0.1       localhost
127.0.0.1       rincewind
192.168.0.3     librarian

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
laurin@rincewind:~$
 
- iptables oder andere firewall am client aktiv ?
- ipv6 aktiv ?
 
- iptables oder andere firewall am client aktiv ?
nein keine firewall

sollte nicht aktiv sein:
Code:
laurin@rincewind:~$  dmesg | grep -i v6
[   47.207774] eth0: no IPv6 routers present
laurin@rincewind:~$
laurin@rincewind:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:17:08:48:35:d2
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::217:8ff:fe48:35d2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11094 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8639 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14037478 (13.3 MB)  TX bytes:1079398 (1.0 MB)
          Interrupt:16

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:826 errors:0 dropped:0 overruns:0 frame:0
          TX packets:826 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:39688 (38.7 KB)  TX bytes:39688 (38.7 KB)

laurin@rincewind:~$
 
Habs jetzt hinbekommen. Der Fehler war natürlich eigene Blödheit:

in /etc/hosts am Client war folgender Eintrag für den Server:
192.168.0.3 librarian

der Server hat aber 192.168.0.4 und der Client selbst ist 192.168.0.3

Naja, trotzdem danke für eure Bemühungen.
 
Zuletzt bearbeitet:

Ähnliche Themen

Problem bei der installation einer Sun Netzwerkkarte

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Debian Routing Problem

Debian 7.6 kein lokales Netz

Openvpn will nicht

Zurück
Oben