Salut Marc,
I was just reviewing my old Mandriva posts and here is a problem with setting up NFS shares that still exists in Mageia.

It would be nice if someone else could confirm and really nice if this were fixed in Mageia. It would be a lot easier for newbies to set up shares on their home machines.

==============

(below copied from Mandriva post [http://forum.mandriva.com/en/viewtopic.php?t=113793&highlight=]

==============

I thought I would update this thread as it still applies to Mdv 2010.1

I had hoped that the Mandriva team would have fixed this to make it more "user friendly" but here is the work-around but with more details. (I submitted and updated the bugzilla here: https://qa.mandriva.com/show_bug.cgi?id=52252

-------------------------

I use one of my computers to serve up my mp3's to the rest of the house computers. When I do a fresh install of Mandriva and then use MCC (Mandriva Control Centre) to find/mount the NFS shares it always fails to complete the mount procedure. I then choose the "End" or "Complete" button (sorry my systems are in French -> "Terminé"), MCC writes the information to etc/fstab (however the shares still do not work).

I then boot up Konsole and do the following:

$su -
$ (admin password)
#cd ..
#cd etc
#kwrite fstab

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

-----------------------------------------

MODIFIED (I substituted "linux-5" with the computer ip address)
-----------------------------------------

# 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 192.168.2.4:/home/marc/Documents/Marc/Famille/Photos /mnt/Photos nfs rsize=8192,wsize=8192,nosuid,soft 0 0 192.168.2.4:/home/marc/Telechargements /mnt/Telechargements nfs rsize=8192,wsize=8192,nosuid,soft 0 0 192.168.2.4:/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

-----------------------------------------

I use my shares to serve up my mp3 collection to the other 4 Mandriva boxes in the house as well as family photos.

This has been a recurring problem for the last 2-3 versions of Mandriva.
I don't have a solution for your problem, but a way to avoid it, together with getting the service you require.

For sharing partitions, I use the automounter (autofs). I uncomment the "/net -hosts" in /etc/autofs/auto.master. Assume that you also do that and have the line "192.168.2.4 linux-5" in /etc/hosts.
Then to access a remote file on linux-5, you just have to do something like:
"ls /net/linux-5/home/marc/Documents/Marc/Famille/Photos" to get it mounted and accessible. In fact, any access to a file or directory named like this causes the mount to occur.
You can also have links to such names to make your access simpler.
For example (avoid the use /mnt for such things, it's confusing with system mounts):
ln -s /net/linux-5/home/marc/Documents/Marc/Famille/Photos /Shares/Photos
Accessing /Shares/Photos causes the remote mount to occur.

The advantage of using the automounter is mainly that mounts are only done when required, and disappear when no longer in use. This highly reduces the risk of having stale NFS handles. As it is used by many people, it also works ;-)

Automounting work also with local partitions, I use it also for the local Windows ones to avoid to have them mounted when they are not used, while having a transparent mount when I need to access them.

Hope this helps.

Bernard


Reply via email to