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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
12-04-2008, 04:04 PM
|
#1
|
Member
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98
Rep:
|
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?
|
|
|
12-04-2008, 04:15 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853
Rep:
|
Can you ping the desktop from the laptop?
Code:
$ ping -c4 nicolas-desktop
|
|
|
12-04-2008, 04:46 PM
|
#3
|
Member
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98
Original Poster
Rep:
|
No. Ubuntu say: unknown host nicolas-desktop
|
|
|
12-04-2008, 04:57 PM
|
#4
|
Member
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Rep:
|
have you inserted nicolas-desktop in your /etc/hosts ?
|
|
|
12-04-2008, 05:02 PM
|
#5
|
Member
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98
Original Poster
Rep:
|
Where I should put it in /etc/hosts?
|
|
|
12-04-2008, 05:05 PM
|
#6
|
Member
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98
Original Poster
Rep:
|
Yes, nicolas-desktop is in the host file.
|
|
|
12-04-2008, 05:06 PM
|
#7
|
Member
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Rep:
|
like this
127.0.0.1 localhost.localdomain localhost
nicolas-ip nicolas-desktop
|
|
|
12-04-2008, 05:13 PM
|
#8
|
Member
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98
Original Poster
Rep:
|
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
|
|
|
12-04-2008, 05:20 PM
|
#9
|
Member
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Rep:
|
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
|
|
|
12-04-2008, 05:29 PM
|
#10
|
Member
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98
Original Poster
Rep:
|
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)
|
|
|
12-04-2008, 05:36 PM
|
#11
|
Member
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Rep:
|
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
|
|
|
12-04-2008, 05:38 PM
|
#12
|
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:
|
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
|
|
|
12-04-2008, 05:52 PM
|
#13
|
Member
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98
Original Poster
Rep:
|
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#
|
|
|
12-04-2008, 06:00 PM
|
#14
|
Member
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Rep:
|
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.
|
|
|
12-04-2008, 06:19 PM
|
#15
|
Member
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98
Original Poster
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 01:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|