[Mageia-discuss] Setting up NFS shares with MCC -- fixing etc/fstab

KevinO kevin at kevino.org
Wed Oct 19 17:58:39 CEST 2011


On 10/19/2011 06:17 AM, Marc Paré wrote:
> Once in the fstab file, I find my shares and change the computer name to its ip
> address (you find the computer ip address by hovering your mouse cursor over the
> right-hand bottom taskbar computer connections icon), save the file and then the
> shares are properly mounted. You can then find them in the mnt/ folders.
> 
> Here is an example:
> 
> ORIGINAL
> -----------------------------------------
> 
> # Entry for /dev/sda1 :
> UUID=ceeb52d2-58e3-41d8-98ad-77bae3ac28bb / ext4 acl,noatime 1 1
> # Entry for /dev/sda6 :
> UUID=1ebcfab9-214a-4134-bbba-799f35396e5e /home ext4 acl,noatime 1 2
> /dev/cdrom /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
> linux-5:/home/marc/Documents/Marc/Famille/Photos /mnt/Photos nfs
> rsize=8192,wsize=8192,nosuid,soft 0 0
> linux-5:/home/marc/Telechargements /mnt/Telechargements nfs
> rsize=8192,wsize=8192,nosuid,soft 0 0
> linux-5:/home/marc/mp3 /mnt/mp3 nfs rsize=8192,wsize=8192,nosuid,soft 0 0
> none /proc proc defaults 0 0
> # Entry for /dev/sda5 :
> UUID=fe7e9195-d632-4a07-9e42-74ee3e7bccca swap swap defaults 0 0
> 
It looks like your computer can't resolve linux-5 into its IP address
(192.168.2.4). You can test by:

$ dig linux-5

If this is indeed the case, you would have a similar problem with any operating
system.

You can fix the solution by putting an entry into your /etc/hosts file on you
client machine. Another fix would be to run a local DNS server to serve IP
addresses of your computers to each other on your LAN. For a small network with
static IPs, using the hosts file is the easiest.

HTH

-- 
KevinO


More information about the Mageia-discuss mailing list