• Sous-forumsNAS
  • Partage Samba avec NAS Retrying with upper case share name

Salut,

Comme posté hier, je n'arrive pas pour le moment à faire fonctionner NFS avec mon Nas Synology. Alors je me tourne vers Samba.

Dans le fstab j'ai rajouté cette ligne :
//192.168.1.86/volume2/Vdc /mnt/diskstation cifs _netdev,credentials=/root/.nfscredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Message d'erreur :
$ mount -a                                                                          
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Je ne vois pas bien où j'aurais pu commettre une erreur de casse. Ça doit venir d'autre chose je suppose, mais quoi ?

Merci de votre aide.
Salut,

Essaie d'abord un montage manuel, voir un accès avec smbclient, pour valider (ou non) le fonctionnement des credentials, etc.

Tu trouveras aussi des traces dans les messages du noyau avec la commandes suivante (à exécuter immédiatement après un essai de montage) :
dmesg | tail -n 20
Salut,

J'ai ça comme résultat :
$ sudo mount.cifs //192.168.1.86/volume2/Vdc /mnt/diskstation -o username=admin 
Password: 
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
$ dmesg | tail -n 20
[93368.527908] CIFS VFS: cifs_mount failed w/return code = -6
[93368.528011] CIFS: the value of the unc= mount option does not match the device string. Using the unc= option for now. In 3.10, that option will be ignored and the contents of the device string will be used instead. (\\192.168.1.86\volume2 != \\192.168.1.86\VOLUME2)
[93368.528030] CIFS: the value of the prefixpath= mount option does not match the device string. Using the prefixpath= option for now. In 3.10, that option will be ignored and the contents of the device string will be used instead.(Vdc/ != VDC/)
[93368.583257] CIFS VFS: cifs_mount failed w/return code = -6
[93403.466623] CIFS VFS: cifs_mount failed w/return code = -6
[93403.466708] CIFS: the value of the unc= mount option does not match the device string. Using the unc= option for now. In 3.10, that option will be ignored and the contents of the device string will be used instead. (\\192.168.1.86\volume2 != \\192.168.1.86\VOLUME2)
[93403.466727] CIFS: the value of the prefixpath= mount option does not match the device string. Using the prefixpath= option for now. In 3.10, that option will be ignored and the contents of the device string will be used instead.(Vdc != VDC)
[93403.523999] CIFS VFS: cifs_mount failed w/return code = -6
[94478.832065] CIFS VFS: cifs_mount failed w/return code = -6
[94478.832145] CIFS: the value of the unc= mount option does not match the device string. Using the unc= option for now. In 3.10, that option will be ignored and the contents of the device string will be used instead. (\\192.168.1.86\volume2 != \\192.168.1.86\VOLUME2)
[94478.832164] CIFS: the value of the prefixpath= mount option does not match the device string. Using the prefixpath= option for now. In 3.10, that option will be ignored and the contents of the device string will be used instead.(Vdc != VDC)
[94478.886428] CIFS VFS: cifs_mount failed w/return code = -6
[96766.171311] CIFS VFS: cifs_mount failed w/return code = -6
[96766.171401] CIFS: the value of the unc= mount option does not match the device string. Using the unc= option for now. In 3.10, that option will be ignored and the contents of the device string will be used instead. (\\192.168.1.86\volume2 != \\192.168.1.86\VOLUME2)
[96766.171419] CIFS: the value of the prefixpath= mount option does not match the device string. Using the prefixpath= option for now. In 3.10, that option will be ignored and the contents of the device string will be used instead.(Vdc != VDC)
[96766.230771] CIFS VFS: cifs_mount failed w/return code = -6
[100732.868427] CIFS VFS: cifs_mount failed w/return code = -6
[100732.868508] CIFS: the value of the unc= mount option does not match the device string. Using the unc= option for now. In 3.10, that option will be ignored and the contents of the device string will be used instead. (\\192.168.1.86\volume2 != \\192.168.1.86\VOLUME2)
[100732.868517] CIFS: the value of the prefixpath= mount option does not match the device string. Using the prefixpath= option for now. In 3.10, that option will be ignored and the contents of the device string will be used instead.(Vdc != VDC)
[100732.921502] CIFS VFS: cifs_mount failed w/return code = -6
Houla je viens de percuter...
sudo mount.cifs //192.168.1.86/volume2/Vdc
Tu peux monter "//192.168.1.86/volume2", mais tu ne peux pas monter "//192.168.1.86/volume2/Vdc"...

=> la syntaxe de cet argument c'est « //<nom de serveur>/<nom de partage> »
volume2 existe car c'est un NAS deux baies que je n'utilise pas en RAID mais comme deux disques séparés.

Le message d'erreur est le même :
sudo mount.cifs //192.168.1.86/volume2 /mnt/diskstation -o username=admin  
Password: 
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Que donnent les commandes suivantes ?
smbclient -L //192.168.1.86 -N
smbclient -L //192.168.1.86 -U admin
smbclient -L //192.168.1.86 -U admin 
Enter admin's password: 
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9]

        Sharename       Type      Comment
        ---------       ----      -------
        home            Disk      home
        homes           Disk      user home
        Musique         Disk      
        Vdc             Disk      
        IPC$            IPC       IPC Service ()
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9]

        Server               Comment
        ---------            -------
        DISKSTATION          

        Workgroup            Master
        ---------            -------
        WORKGROUP            

smbclient -L //192.168.1.86 -N
session setup failed: NT_STATUS_ACCOUNT_DISABLED
Comme l'indique la commande, le partage s'appelle "Vdc", donc :
sudo mount.cifs //192.168.1.86/Vdc /mnt/diskstation -o username=admin
//192.168.1.86/Vdc /mnt/diskstation cifs _netdev,credentials=/root/.nfscredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0