Pages : 1
#1 Le 03/03/2009, à 22:13
- guims78
Montage Disque Reseau WIFI
Bonjour a tous.
J'ai un Boitier serveur NSLU2 sur lequel est connecté un disque dur USB. Mon NSLU2 est relié à mon routeur WIFI.
Je partage ainsi mes fichiers sur mon réseau perso.
Mon soucis, je n'arrive pas à monter automatiquement mes partitions au démarrage (normal, mon PC est relié en wifi, donc tant que le wifi n'est pas actif, pas de connection au reseau reseau)
Je suis obligé de faire un :
sudo mount -a
à chaque redémarrage.
Voici mon Fstab (qui fonctionne) :
## montage NSLU2
//192.168.1.5/HDD_2_1_1/Music /media/Music cifs user,rw,uid=1000,gid=1000,file_mode=0640,dir_mode=0750,iocharset=utf8,user=xxxxx,pass=xxxxx 0 0
//192.168.1.5/HDD_2_1_1/Video /media/Video cifs user,rw,uid=1000,gid=1000,file_mode=0640,dir_mode=0750,iocharset=utf8,user=xxxxx,pass=xxxxx 0 0
J'ai essayé de faire un script pour executer ma commande.
Voici le script montage.sh (dans /home/user/.script) :
#!/bin/sh
sudo /bin/mount -a
exit 0
J'ai bien fait un
chmod +x /home/user/.script/montage.sh
Suivant certain post, j'ai mis dans /etc/rc.local :
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
bash /home/user/.script/montage.sh
exit 0
Mais ça ne donne rien.
Ensuite j'ai testé, suivant un autre post :
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
mount -a
exit 0
Mais ça ne donne rien non plus !
Quelqu'un aurait-il une solution, en evitant la commande
sudo visudo
Merci.
Ahtlon XP 2000+, 1 Go Ram, CM elite K7S5A pro, ReadyNas Duo.
Hors ligne
Pages : 1