Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mount SMB or windows share
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
joshdr77
Apprentice
Apprentice


Joined: 03 Jan 2003
Posts: 180

PostPosted: Sat Jan 04, 2003 8:06 am    Post subject: Mount SMB or windows share Reply with quote

i have no idea howto mount a windows share or smb.

looked everywhere.....everything i found didnt work...thanks
Back to top
View user's profile Send private message
abhishek
Retired Dev
Retired Dev


Joined: 28 Jun 2002
Posts: 393
Location: Los Angeles, CA

PostPosted: Sat Jan 04, 2003 9:00 am    Post subject: Reply with quote

You have two options. One is to put samba in your kernel( builtin or as module) and that will allow you to mount smb shares(just secify smbfs as the type). Or you could emerge samba and then use smbclient to navigate the samba shares, similarily to ftp.
Back to top
View user's profile Send private message
joshdr77
Apprentice
Apprentice


Joined: 03 Jan 2003
Posts: 180

PostPosted: Sat Jan 04, 2003 9:40 am    Post subject: Reply with quote

thanks i give it a go
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Sat Jan 04, 2003 12:47 pm    Post subject: Reply with quote

i would suggest you to activate 'smbfs' in your kernel and then emerge samba.

then the only thing you need to do is:
Code:
mount -t smbfs //xxx.xxx.xxx.xxx/sharepoint /mnt/mywinshare -o username=myshareusername


or

Code:
mount -t smbfs //xxx.xxx.xxx.xxx/sharepoint /mnt/mywinshare -o username=myshareusername,password=mysharepassword


or add it directly to your /etc/fstab:
Code:
# <fs>             <mountpoint>    <type>     <opts>            <dump/pass>
//192.168.0.1/somedir   /mnt/somedir   smbfs      noauto,username=root   0 0
//192.168.0.1/somedir2   /mnt/somedir2   smbfs      noauto,username=root   0 0


and then you just need to mount /mnt/somedir or /mnt/somedir2.
if you want, you could add as well the password to the /mnt/fstab file, but i would not suggest you that.

cheers

SteveB
Back to top
View user's profile Send private message
Qubax
Guru
Guru


Joined: 19 Jul 2002
Posts: 451
Location: Tirol, Austria

PostPosted: Sat Jan 04, 2003 5:45 pm    Post subject: Reply with quote

maybe you want to have a look at the different shares

have a search for xsmbrowser, the browser i prefer for windowshares, cause it allows me to have a look into the dirs without mounting them before, a think i couldn't find else where
Back to top
View user's profile Send private message
abhishek
Retired Dev
Retired Dev


Joined: 28 Jun 2002
Posts: 393
Location: Los Angeles, CA

PostPosted: Sat Jan 04, 2003 11:26 pm    Post subject: Reply with quote

steveb wrote:
i would suggest you to activate 'smbfs' in your kernel and then emerge samba.

then the only thing you need to do is:
Code:
mount -t smbfs //xxx.xxx.xxx.xxx/sharepoint /mnt/mywinshare -o username=myshareusername


or

Code:
mount -t smbfs //xxx.xxx.xxx.xxx/sharepoint /mnt/mywinshare -o username=myshareusername,password=mysharepassword


or add it directly to your /etc/fstab:
Code:
# <fs>             <mountpoint>    <type>     <opts>            <dump/pass>
//192.168.0.1/somedir   /mnt/somedir   smbfs      noauto,username=root   0 0
//192.168.0.1/somedir2   /mnt/somedir2   smbfs      noauto,username=root   0 0


and then you just need to mount /mnt/somedir or /mnt/somedir2.
if you want, you could add as well the password to the /mnt/fstab file, but i would not suggest you that.

cheers

SteveB

If you do add it to your fstab, I would suggest that you add noauto as an option, unless the sahres you're mounting are on a stable server.
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Sat Jan 04, 2003 11:29 pm    Post subject: Reply with quote

data_the_android wrote:
steveb wrote:
i would suggest you to activate 'smbfs' in your kernel and then emerge samba.

then the only thing you need to do is:
Code:
mount -t smbfs //xxx.xxx.xxx.xxx/sharepoint /mnt/mywinshare -o username=myshareusername


or

Code:
mount -t smbfs //xxx.xxx.xxx.xxx/sharepoint /mnt/mywinshare -o username=myshareusername,password=mysharepassword


or add it directly to your /etc/fstab:
Code:
# <fs>             <mountpoint>    <type>     <opts>            <dump/pass>
//192.168.0.1/somedir   /mnt/somedir   smbfs      noauto,username=root   0 0
//192.168.0.1/somedir2   /mnt/somedir2   smbfs      noauto,username=root   0 0


and then you just need to mount /mnt/somedir or /mnt/somedir2.
if you want, you could add as well the password to the /mnt/fstab file, but i would not suggest you that.

cheers

SteveB

If you do add it to your fstab, I would suggest that you add noauto as an option, unless the sahres you're mounting are on a stable server.


as you see, i added the noauto option. but hey! if you runing samba as your smb server, then i don't see a reason to be affraid of 'unstable' servers :)

cheers

SteveB
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