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

Marc Paré marc at marcpare.com
Wed Oct 19 15:17:35 CEST 2011


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.

Marc

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



More information about the Mageia-discuss mailing list