View previous topic :: View next topic |
Author |
Message |
joshdr77 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 03 Jan 2003 Posts: 180
|
Posted: Sat Jan 04, 2003 8:06 am Post subject: Mount SMB or windows share |
|
|
i have no idea howto mount a windows share or smb.
looked everywhere.....everything i found didnt work...thanks |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abhishek Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/424b4a923d1ffa403fe2a.jpg)
Joined: 28 Jun 2002 Posts: 393 Location: Los Angeles, CA
|
Posted: Sat Jan 04, 2003 9:00 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
joshdr77 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 03 Jan 2003 Posts: 180
|
Posted: Sat Jan 04, 2003 9:40 am Post subject: |
|
|
thanks i give it a go |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
steveb Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1198140199438f3db8ee800.gif)
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Sat Jan 04, 2003 12:47 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Qubax Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/3e9b860a3d713cdcd7f55.gif)
Joined: 19 Jul 2002 Posts: 451 Location: Tirol, Austria
|
Posted: Sat Jan 04, 2003 5:45 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
abhishek Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/424b4a923d1ffa403fe2a.jpg)
Joined: 28 Jun 2002 Posts: 393 Location: Los Angeles, CA
|
Posted: Sat Jan 04, 2003 11:26 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
steveb Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1198140199438f3db8ee800.gif)
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Sat Jan 04, 2003 11:29 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|