Python Forum

Full Version: How to access shared folder on Windows from Ubuntu machine
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(Nov-09-2019, 03:27 PM)Gribouillis Wrote: [ -> ]It is essential that you specify the path of the shared folder. In my example the shared folder was the whole C drive, hence the C.
The path I specified is that, suggested by windows when I open properties of shared folder.
Should I specify "real" path instead ?

(Nov-09-2019, 03:33 PM)Gribouillis Wrote: [ -> ]Isn't SARATOGA a subfolder of a windows volume such as C: or E: ? You probably need to include the name of the volume in the path.
SARATOGA is the name of the Windows machine.

Tried also with full-path option, i.e. 192.168.0.1:C:/Users/.../pdf2.
The same error - bad UNC
Try this perhaps (without the second colon) 192.168.0.1:C/Users/.../pdf2.
Tried. Unfortunately the same.
Does nmblookup SARATOGA print the IP address ?
Yes, even two:
192.168.0.1
192.168.1.186

Concerning 2nd one I'm not aware what is, as when I configured wired connection, I used the 1st one.
The issue goes further from what I know or remember from samba shares. You could try the second IP address to see if it works better. I think you're very close to mounting the shared folder but I can't tell you more. Good luck.
Sorry, the order I dsisplayed two IPs was flipped.
Actuall it is as follows:
192.168.1.186 SARATOGA<00>
192.168.0.1 SARATOGA<00>
Instead of the ip address, you can perhaps try //SARATOGA/User/... Also make sure the username and password are correct.
(Nov-09-2019, 03:55 PM)Pavel_47 Wrote: [ -> ]The issue goes further from what I know or remember from samba shares. You could try the second IP address to see if it works better. I think you're very close to mounting the shared folder but I can't tell you more. Good luck.
Well I'll probably ask on Ubuntu forum.
Once it mounted should I use ordinary file access operations like open ?
Once it is mounted you can use it like any other linux directory, even see it in the file browser, etc. You can unmount it with the command
Output:
sudo umount CORRECT_PATH
with the same path that succeded with mount.
Pages: 1 2 3