Click to See Complete Forum and Search --> : Another samba question
Chris L.
10-06-2001, 11:14 AM
I can now see and browse my linux box from windows and I can print to my windows box from linux.
Is there anyway to see my windows files from linux? Or can you 'mount' it so it is easy to access from all programs?
Thanks,
Chris
SiCKB0Y
10-06-2001, 12:18 PM
OK, find a directory on your windows box you would like to share with linux (eg C:\share) and right click on that folder in windows. There should be some attribute in there relating to sharing. enable this and allow a password if you want to. reboot windows.
Then from a linux terminal type the following:
modprobe smbfs
(this loads the linux kernel driver to allow it to 'read' smb shares)
then...
mkdir /mnt/windows
(this will make the directory point at which you will access the windows drive in the linux filesyatem)
then...
mount -t smbfs //windowsbox/c/share /mnt/windows
(this will mount the windows folder. note the "//windowsbox/c/share needs to be altered to reflect your situation. the bit right after the "//" which denotes a network drive rather than a local drive "/", needs to be the ip or hostname of your windows computer. in my case, that section is //laptop/d/share or //192.168.0.1/d/share)
If you chose to make this share accessible only with a passwd, you will now be prompted for one. enter it and press return. If you dont get any errors then all should be good.
then simply..
cd /mnt/windows
ls
and you should see some files in the windows computer.
Some of this may be wrong and i welcome any corrections..its been a while since i samba'ed :)
jaygee432
10-06-2001, 01:18 PM
Another way: Linneighborhood.
Chris L.
10-06-2001, 01:25 PM
Thanks! Worked perfectly!