(2003 to 2005)

How to mount your Windows stuff on your Linux box

Sat May 22 07:04:00 UTC+1000 2004


Note: the recommendation I got was that it tends to be easier to mount your unix stuff on your windows box. But here're the instructions for Linux => Windows (from the command line).


- Use smbclient on the command line to use SMB shares like FTP servers:

[user@machine user]$ smbclient //server/share
added interface ip=xxx.xx.xx.xx bcast=xxx.xx.255.255 nmask=
Domain=[DOMAIN] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
smb: \> cd temp
smb: \temp\> dir
  .                                   D        0  Thu Apr 22 11:25:11 2004
  ..                                  D        0  Thu Apr 22 11:25:11 2004
                52602 blocks of size 1048576. 6443 blocks available
smb: \temp\>

- Mount the smb shares as local devices (as root):

mount -t smb //server/share /home/user/tmp -o username=domain\\user

/home/user/tmp is now the local filesystem mirror for \\server\share (changing the \ to / is just a convenience because \ is the escape character, you can't use the convenience in the options string though where I specified the user).

Copyright © 2003-2005 John Elliot