Re: Mounting SMB shares...
- From: Don Raboud <don.raboud@xxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 11:24:08 -0600
Steve Norton wrote:
Noob here...
One thing I can't figure out is how to mount the several shares I have
on a couple of SMB servers (WinXP and a NAT drive).
For example (excuse the Windowology...)
//nat/drive2/archive - How to mount to /archive ?
//nat/drive1/downloads - How to mount to /downloads ?
//mce/media/music
- How to mount to /music ?
Some dweeb here will tell you to type man smb.
That will get you nowhere.
Ya... I figured that out before posting. :)
If the shares are not in a domain, simply type:
smb:\\mce\media\music
That should work for you. If you need authentication, you add the user
before an @ sign.
smb:JoeCool@mce\media\music
This I knew. What I'd like is simply a /music folder in root... (or usr,
or all users home directory, or wherever the logical location would be
for user data)
...also want it mounted automagically at boot.
Steve, This is what I am doing in SuSE 9.3, but I think it should work.
This is based on
<http://www.justlinux.com/nhf/Filesystems/Mounting_smbfs_Shares_Permanently.html>
which you should look at.
First create the mount point (the /music directory) as above. Then edit
the /etc/fstab file as root (make a back up first as always) and add a line
something like (all on one line)
//mce/media/music /music smbfs
rw,file_mode=0640,credentials=/home/<username>/smbpasswd,uid=user,gid=users
0 0
This is assuming that the SMB servers require some form of authentication
which is what the credentials option above is for. The file
/home/<username>/smbpasswd (or whatever you call it) is simply a text file
containing
username=<username>
password=<password>
for the smb share.
Hope this helps.
.
- Follow-Ups:
- Re: Mounting SMB shares...
- From: Noozer
- Re: Mounting SMB shares...
- References:
- Mounting SMB shares...
- From: Noozer
- Re: Mounting SMB shares...
- From: Perfect Reign
- Re: Mounting SMB shares...
- From: Steve Norton
- Mounting SMB shares...
- Prev by Date: OT: houghi loves pizza
- Next by Date: Re: Ubuntu seems better than SuSE... still want to go back, though
- Previous by thread: Re: Mounting SMB shares...
- Next by thread: Re: Mounting SMB shares...
- Index(es):