LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-04-2008, 04:04 PM   #1
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Rep: Reputation: 15
Exclamation NFS problems


Hello everyone.

I would appreciate an NFS networking between my Xubuntu and Ubuntu PCs.
I have followed this guide: http://mybeni.rootzilla.de/mybeNi/20..._ubuntu_linux/


But added my computer names and folders (nicolas-laptop (Ubuntu) as it is to browse, and nicolas-desktop (Xubuntu) as to be parts).

The only problem is that when I type the command "sudo mount nicolas-desktop:/home/nicolas/Music /media" as saying Ubuntu that it can not find the address.

nicolas-desktop is set to cable, nicolas-laptop is wireless. How do I get it to work after the wizard?
 
Old 12-04-2008, 04:15 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Can you ping the desktop from the laptop?
Code:
$ ping -c4 nicolas-desktop
 
Old 12-04-2008, 04:46 PM   #3
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
No. Ubuntu say: unknown host nicolas-desktop
 
Old 12-04-2008, 04:57 PM   #4
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
have you inserted nicolas-desktop in your /etc/hosts ?
 
Old 12-04-2008, 05:02 PM   #5
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
Where I should put it in /etc/hosts?
 
Old 12-04-2008, 05:05 PM   #6
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
Yes, nicolas-desktop is in the host file.
 
Old 12-04-2008, 05:06 PM   #7
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
like this
127.0.0.1 localhost.localdomain localhost
nicolas-ip nicolas-desktop
 
Old 12-04-2008, 05:13 PM   #8
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
Should I add nicolas-desktop on my laptop?

My hostfil in Xubuntu looks like this:

127.0.0.1 localhost
127.0.1.1 nicolas-desktop

# 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
 
Old 12-04-2008, 05:20 PM   #9
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
if you can explain me with more detail is your laptop nfs server or your desktop along with their ips. also post your /etc/exports
 
Old 12-04-2008, 05:29 PM   #10
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
My desktop have installed NFS-kernel-server, and my laptop have nfs-common.

My desktop /etc/exports looks like this:

# /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 nicolas-desktop(rw,sync) nicolas-laptop(rw,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#
/home/nicolas/Musiknumre nicolas(rw)
 
Old 12-04-2008, 05:36 PM   #11
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
ok here is what you need to do,
on server where your ip is 192.168.1.1
/etc/exports

/home/nicolas/Musiknumre 192.168.1.1/255.255.255.0(rw,sync)
then restart your nfs service.


on client where your ip is 192.168.1.2
mkdir /root/nfstesting
mount your nfs like
mount -t 192.168.1.1:/home/nicolas/Musiknumre /root/nfstesting
 
Old 12-04-2008, 05:38 PM   #12
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
One note is if there is a firewall up on the NFS server the needed ports need to be opened through it for access or for a quick test is turn the firewall off to eliminate one possible issue.

Brian
 
Old 12-04-2008, 05:52 PM   #13
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
Brian1: I don't have a firewall. Only on the router.

Geniushasan: I'm don't shure that I understand where i should put this in.
But I have added /home/nicolas/Musiknumre 192.168.1.1/255.255.255.0(rw,sync) in /etc/exports. And removed it was written before.

I tried to do what you say: mount -t 192.168.1.1:/home/nicolas/Musiknumre /media, i will create this in Media indstead.
Here i the shell:

_____________________

nicolas@nicolas-laptop:~$ sudo su
root@nicolas-laptop:/home/nicolas# mount -t 192.168.1.1:/home/nicolas/Musiknumre /media
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
root@nicolas-laptop:/home/nicolas#
 
Old 12-04-2008, 06:00 PM   #14
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
dang i am literally sorry for typing it in a hurry,
it should be mount -t nfs 192.168.1.1:/home/nicolas/Musiknumre /media


where as you need to set the following ips on your machine

for server 192.168.1.1
for client 192.168.1.2
although the ips i specify was just to make you understand. you can use the default ips which is given by your router. make sure if you use the ips given by your router then you need to edit /etc/exports and change 192.168.1.1 to your assigned ip.
 
Old 12-04-2008, 06:19 PM   #15
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
I writted ifconfig in Terminal.
Here is the output from Xubuntu
__________________
nicolas@nicolas-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:e2:55:c1:8c
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::200:e2ff:fe55:c18c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:841 errors:0 dropped:0 overruns:0 frame:0
TX packets:1043 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:430576 (430.5 KB) TX bytes:314695 (314.6 KB)
Interrupt:10 Base address:0x9000

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:956 errors:0 dropped:0 overruns:0 frame:0
TX packets:956 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:255059 (255.0 KB) TX bytes:255059 (255.0 KB)

nicolas@nicolas-desktop:~$
__________________________
How I get it to work? I'm know i'm helpless but I don't knopw Linux so well enough...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS and RH Cluster Suite; Problems relating services/resources to NFS l_long_island Linux - Server 5 08-30-2008 12:20 PM
Very Slow Exporting during NFS Start / Many NFS Problems VorlonInfoTech Linux - Networking 3 06-28-2006 07:48 PM
NFS problems graham Slackware 2 02-12-2004 06:59 PM
NFS problems Inexactitude Linux - Networking 1 11-29-2003 05:09 PM
NFS problems Syncrm Linux - Networking 6 03-02-2002 06:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration