Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema em montar smb [Resolvido]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
Matheus
n00b
n00b


Joined: 03 Feb 2007
Posts: 12

PostPosted: Wed Apr 18, 2007 11:16 pm    Post subject: Problema em montar smb [Resolvido] Reply with quote

Bom dia!

To com problemas em montar um compartilhamento samba =]

Aqui vai meu comando:
Code:
# mount -t smbfs -o username=usuario,password=senha //192.168.0.1/ /mnt/destino
mount: wrong fs type, bad option, bad superblock on //192.168.0.1/,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


Ai lah no dmesg aparece:
Code:
smbfs: mount_data version 1919251317 is not supported


Gostaria de uma ajuda /o/

Grande abraço a todos!
_________________
==================
Matheus


Last edited by Matheus on Sat May 05, 2007 2:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
iuri_BR
n00b
n00b


Joined: 16 Dec 2005
Posts: 64
Location: DF, Brasil

PostPosted: Thu Apr 19, 2007 3:45 am    Post subject: Reply with quote

Você precisa colocar o nome da pasta compartilhada depois do ip. Por exemplo: mount -t smbfs -o username=usuario,password=senha //192.168.0.1/origem /mnt/destino
Para saber o que está sendo compartilhado use smbclient -L 192.168.0.1
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Fri Apr 20, 2007 5:08 am    Post subject: Reply with quote

Boas.

Normalmente também é boa ideia usar o nome da máquina e se necessário incluir o IP como opção:
Code:
# mount -t smbfs -o username=usuario,password=senha,ip=192.168.0.1 //server/share /mnt/destino

Duas pequenas notas: experimente usar o cifs em vez do smbfs e nunca inclua a senha numa linha do comando -> corra um ps ax ao mesmo tempo e veja como a senha aparece na lista de processos!
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
Matheus
n00b
n00b


Joined: 03 Feb 2007
Posts: 12

PostPosted: Tue Apr 24, 2007 12:07 am    Post subject: Reply with quote

Bom dia!

Deu certo! Muito obrigado!

Primeiro tentei assim:
mount -t smbfs -o username=matheus //weberserv/htdocs /mnt/wshtdocs

porém deu erro:
ERROR: smbfs filesystem not supported by the kernel
Please refer to the smbmnt(8) manual page
smbmnt failed: 255

então usei o cifs no lugar de smbfs e funcionou!
e vlw pela dica da senha, hehe

Grande abraço a todos!
_________________
==================
Matheus
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese All times are GMT
Page 1 of 1

 
Jump to:  
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