Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mount -t smbfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mvbv-linux
n00b
n00b


Joined: 15 Dec 2003
Posts: 50
Location: Belgium

PostPosted: Tue Jan 27, 2004 12:24 pm    Post subject: mount -t smbfs Reply with quote

Hi,

When I try to mount windows shares from my gentoo box with mount -t smbfs, I always get the following error : wrong fs type or bad superblock...
I've compiled the kernel with the smbfs support. I haven't done an emerge of samba yet.
Do I absolutely need to have samba installed on it or does this nothing have to do with the problem ?
Back to top
View user's profile Send private message
savage
Apprentice
Apprentice


Joined: 01 Jan 2003
Posts: 161

PostPosted: Tue Jan 27, 2004 12:36 pm    Post subject: I am pretty sure that you need samba to mount a winders shar Reply with quote

once again - repeat of the title :-)

I am pretty sure that you need samba to mount a winders share. Also, if you have samba emerged, and still can't mount it, you can use smbclient to troubleshoot.

savage
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Tue Jan 27, 2004 12:38 pm    Post subject: Reply with quote

I'm not sure, but I think it is indeed needed to have samba installed...

what is the full command you give to mount?
Back to top
View user's profile Send private message
vdboor
Guru
Guru


Joined: 03 Dec 2003
Posts: 592
Location: The Netherlands

PostPosted: Tue Jan 27, 2004 12:38 pm    Post subject: Reply with quote

yes.

The samba suite contains some useful tools. You've enabled the kernel support only. To mount a smb share, the mount command calls mount.smbfs somewhere... and this doesn't exist until you install samba.

You try to communicate with a Windows-host, but as long as your computer can't be accessed with SMB-networking you can't communicate with other SMB hosts.. (meaning, it has a netbios-name in your windows networking, is part of a workgroup, etc..) If you configured samba correctly, a new computer icon should show up in your network neighbourhood, just like every other Windows system does.

samba can be configured in /etc/samba/smb.conf
_________________
The best way to accelerate a windows server is by 9.81M/S²
Linux user #311670 and Yet Another Perl Programmer

[ screenies | Coding on KMess ]
Back to top
View user's profile Send private message
mvbv-linux
n00b
n00b


Joined: 15 Dec 2003
Posts: 50
Location: Belgium

PostPosted: Tue Jan 27, 2004 12:47 pm    Post subject: Reply with quote

ok, thanks for the answer...I was ready to launch the emerge command yesterday, but finally didn't have enough time...that would have made this post useless...but as I have to wait until this evening :evil: , I couldn't let my question without an answer :-) I hope it'll work...
Back to top
View user's profile Send private message
savage
Apprentice
Apprentice


Joined: 01 Jan 2003
Posts: 161

PostPosted: Tue Jan 27, 2004 10:57 pm    Post subject: mount command Reply with quote

from memory - been a while since we have run Winders here....

mount -t smbfs //computer/share /tmp/noWindowsHere

I think you can use -o username=foo,password=bar also thus,

mount -t smbfs -o username=foo,password=bar //computer/share /tmp/noWindowsHere

ymmv.

savage
Back to top
View user's profile Send private message
vdboor
Guru
Guru


Joined: 03 Dec 2003
Posts: 592
Location: The Netherlands

PostPosted: Wed Jan 28, 2004 1:02 pm    Post subject: Reply with quote

something like smb4k can be very useful in you run KDE. It's a gui to mount your shares. LinNeightbourhood (I don't recall how it's spelled, because everyone seams to spell it different) is a gtk program which does basically the same.

From your file manager (nautilus/konqueror) you can browse shares without mounting them. I think that both filemanagers just call smbclient internally. (smbclient is a ftp like program to browse shares)

Quote:
I was ready to launch the emerge command yesterday, but finally didn't have enough time...that would have made this post useless...

but as I have to wait until this evening


I have a few suggestions for you: ssh, screen and halt. :) If you start the sshd service, you can access your machine remotely over a secure connection with an ssh-client. (PuTTY for Windows). Run a 'screen'. a screen can be used to keep commands running when you logout.

When you're logged in, run these commands:
- screen
- emerge samba -pv (check the flags, and remove -p when you're satisfied)
- run "emerge samba; halt" to automatically shut down your computer if the emerge command completes :)
- Ctrl+A+D ...this detaches the screen
- logout from your session. You can use "ps auxf", and notice that the screen is running :)

Login again, and
- use 'screen -r' to resume the screen.
_________________
The best way to accelerate a windows server is by 9.81M/S²
Linux user #311670 and Yet Another Perl Programmer

[ screenies | Coding on KMess ]
Back to top
View user's profile Send private message
mvbv-linux
n00b
n00b


Joined: 15 Dec 2003
Posts: 50
Location: Belgium

PostPosted: Wed Jan 28, 2004 6:40 pm    Post subject: Reply with quote

Thanks for these tips...they'll be useful soon !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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