Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I map a drive in Xandros?

Status
Not open for further replies.

IFRs

Programmer
Mar 28, 2003
327
US
I want S: to be mapped to a folder on the server. My desktop is Xandros, ther server is Xandros. In windows, I would right-click MyComputer and click Map Drive. How is it done in Linux?
 
Usually something like this...

smbmount //unc/path/to/server /local/mount/point -o username=username%password,fmask-644,dmask=755,uid=userid,gid=groupid,ip=server_ip,debug=0

I don't think you need the uid or gid for the mount. You may need to qualify the username i.e. domain/username.

My daughter's computer came with Xandros 2.0, I couldn't get a good feel for it. I ended up switching it to Mandrake.

Mark

SELECT * FROM management WHERE clue > 1
> 0 rows returned

--ThinkGeek T-Shrit
 
smbmount //unc/path/to/server /local/mount/point -o username=username%password,fmask-644,dmask=755,uid=userid,gid=groupid,ip=server_ip,debug=0

Kozusnik - this is pretty much gibberish to me. Where does the "S" for S-Drvie (S:) go? Can you briefly explain the unc path vs the local path?

I want the user to be able to type S: in a file open or save dialog when saving a document and have the document go to \\Server\Kozusnik\MYDocuments.
 
I haven't used Xandros much. Maybe I'll have to load it on a drive and check it out.

The unc path (universal naming convention) is the network path to the server/share. It looks like this...
//server name or IP address/shared folder

On most Linux distributions, you can mount the share to something like /home/mark/shares.

So to break the command down...
smbmount = samba mounting program
//unc/path/to/server = the network path to the share even for windows shares it would be //windows mahcine name/folder share
/local/mount/point = where you want the share to be locally. Usually /home/mark/shares/windows_share or /mnt/winshare whatever you have the local folder name.
-o = here come the command line options
username = the username and password separated by a percent sign. If this is a windows share you may need to qualify the username to the network domain or computer name. i.e. machine/username.
fmask = what permissions you will have on the share.
644 - rw-r--r--
6 - the owner can read and write to the files in the folder.
4 - anyone in the owner's group can read only.
4 - everyone on the machine can read the files.
dmask = same a fmask, but for directories.
755 - drwxr-x-r-x (d = directory. add the digits in sets of 3 - r=4, w=2, and x=1)
7 - owner can read, write, and execute. execute allows for directory changes.
5 - group can read and execute.
5 - anyone can read and execute.
uid = user id. a number assigned to you when your username is created.
gid - same as uid, but for your group.
ip - ip address of the machine with the shared folder.
debug = I believe this will show any errors.

You may have a program like Lineighborhood to search and mount shares. Or it may be integrated within the Home (Explorer), or whatever it's called.

If I install it, I'll let you know if I can find it.

Mark

SELECT * FROM management WHERE clue > 1
> 0 rows returned

--ThinkGeek T-Shrit
 
I see now how this works, but it does not map the share to a drive letter. Is it possible to map a folder (shared or not) to a drive letter?
 
Linux does not use drive letters like DOS or Windows does.
 
I'm in Xandros now...

Double click Home.
DC Windows Network.
DC the machine name.
Log in.
Click Mount this share...
Under Shared directories, go through and get to the chare again. Or type \\machine name\share in the top line.
Where it says mount point, use /home/username. It will ask you if you want to create the folder for the mount.
Check the box for Disconnect at logout and reconnect at logon.
Click OK.

The share will be under My Linux, My Home, then the share name. Once you get used to Linux, the drive share by letter thing will be confusing.

Mark

SELECT * FROM management WHERE clue > 1
> 0 rows returned

--ThinkGeek T-Shrit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top