View previous topic :: View next topic |
Author |
Message |
BENJI Guru
Joined: 10 Sep 2003 Posts: 543
|
Posted: Fri Jan 16, 2009 9:25 am Post subject: [mount] paramètrer /etc/fstab avec smbfs/cifs |
|
|
Bonjour,
Je viens d'acquérir un mybookworld edition de chez WD (c'est un disque externe réseaux pour faire simple)
Il propose un partage samba sur mon LAN (on verra plus tard pour mettre du NFS)
J'ai donc écris /ect/fstab en conséquence !
Code: | //MYBOOKWORLD/PUBLIC /mnt/MonBouc cifs 0 0 |
Code: | ben@ataualpa ~ $ sudo mount -a
mount: wrong fs type, bad option, bad superblock on //MYBOOKWORLD/PUBLIC,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so |
Code: | ben@ataualpa ~ $ mount
/dev/hdb2 on / type ext3 (rw,noatime)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,gid=5,mode=620)
/dev/hdb1 on /boot type ext2 (rw,noatime)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
//mybookworld/PUBLIC on /mnt/MonBouc type smbfs (0)
/dev/hdb4 on /mnt/oasis type ext3 (rw) |
Pour modifier mon fstab j'ai voulu d'abord démonter MonBouc mais !
Code: | ben@ataualpa ~ $ smbumount /mnt/MonBouc
Could not open /mnt/MonBouc: Input/output error |
Code: | ben@ataualpa ~ $ umount /mnt/MonBouc
umount: /mnt/MonBouc mount disagrees with the fstab |
Je fais comment alors ? Et pourtant je suis certain que le MyBookWorld est en CIFS (c'est écrit dans l'interface d'administration du disque, toutefois le mount renvoie bien qu'il s'agit d'un type smbfs)
Code: | ben@ataualpa ~ $ dmesg | tail
smb_add_request: request [d66b1ee0, mid=407] timed out!
smb_lookup: find //.Trash-1000 failed, error=-5
kjournald starting. Commit interval 5 seconds
EXT3 FS on hdb4, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
CIFS: Unknown mount option 0
CIFS VFS: No username specified
CIFS VFS: cifs_mount failed w/return code = -22
smb_add_request: request [e427de80, mid=409] timed out!
smb_add_request: request [e427de80, mid=410] timed out! |
Code: | ben@ataualpa ~ $ ls -rtl /sbin/mount.*
lrwxrwxrwx 1 root root 19 Jan 15 03:34 /sbin/mount.smbfs -> ../usr/bin/smbmount |
|
|
Back to top |
|
|
gregool Guru
Joined: 26 Nov 2007 Posts: 336 Location: Lille
|
Posted: Fri Jan 16, 2009 10:01 am Post subject: |
|
|
Salut,
une idée simple, tu as essayé d'acceder a ce partage avec smbclient?
peut etre qu'il te manque le support smbfs/cifs dans ton noyau... |
|
Back to top |
|
|
BENJI Guru
Joined: 10 Sep 2003 Posts: 543
|
Posted: Fri Jan 16, 2009 10:18 am Post subject: |
|
|
smbclient oui je crois regarde plus haut dans les commandes que j'ai lancé, j'ai essayé un smbumount !
Sinon smbtree me donne :
Code: | ben@ataualpa /mnt/MonBouc $ smbtree
Password:
WORKGROUP
\\MYBOOKWORLD MyBookWorld
\\MYBOOKWORLD\IPC$ IPC Service (MyBookWorld)
\\MYBOOKWORLD\PUBLIC
MSHOME
\\ATAUALPA Samba Server 3.0.33
\\ATAUALPA\IPC$ IPC Service (Samba Server 3.0.33)
\\ATAUALPA\print$
\\ATAUALPA\oasis Oasis |
Par contre c'est vrai qu'il me demande un mot de passe alors que le partage n'est pas sécurisé (d'ailleurs n'importe quel saisie fonctionne : vide ou n'importe quoi d'autre)
De plus autre soucis pour vérifier si cifs est dans mon noyau :
Code: | ben@ataualpa ~ $ cd /usr/src/linux
ben@ataualpa /usr/src/linux $ make menuconfig
make: *** No rule to make target `menuconfig'. Stop. |
Un emerge --depclean qui m'aurait encore dégommé les sources du noyau peut-être ?
Code: | 1232035651: === Unmerging... (sys-kernel/gentoo-sources-2.6.25-r8)
1232035693: >>> unmerge success: sys-kernel/gentoo-sources-2.6.25-r8 |
Bingo |
|
Back to top |
|
|
BENJI Guru
Joined: 10 Sep 2003 Posts: 543
|
Posted: Fri Jan 16, 2009 2:13 pm Post subject: |
|
|
je confirme j'ai bien le support cifs dans le noyau.
Code: | ben@ataualpa /usr/src/linux-2.6.25-gentoo-r8 $ grep CIFS .config
CONFIG_CIFS=y
# CONFIG_CIFS_STATS is not set
# CONFIG_CIFS_WEAK_PW_HASH is not set
# CONFIG_CIFS_XATTR is not set
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_EXPERIMENTAL is not set |
euh !
et accessoirement ça pourrait pas m'aider ça ou ça n'a rien à voir ?
Code: | ben@ataualpa /usr/src/linux-2.6.25-gentoo-r8 $ emerge -s cifs
* net-fs/mount-cifs
Latest version available: 3.0.28
Latest version installed: [ Not Installed ]
Size of files: 21 kB
Homepage: http://linux-cifs.samba.org/cifs/cifs_download.html
Description: cifs filesystem mount helper split from Samba
License: GPL-2 |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|