Python Forum
How to access shared folder on Windows from Ubuntu machine
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to access shared folder on Windows from Ubuntu machine
#11
(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
Reply
#12
Try this perhaps (without the second colon) 192.168.0.1:C/Users/.../pdf2.
Reply
#13
Tried. Unfortunately the same.
Reply
#14
Does nmblookup SARATOGA print the IP address ?
Reply
#15
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.
Reply
#16
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.
Reply
#17
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>
Reply
#18
Instead of the ip address, you can perhaps try //SARATOGA/User/... Also make sure the username and password are correct.
Reply
#19
(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 ?
Reply
#20
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Python3.X] [Windows] Remote Registry Access (like WMI or other) ManuHry 1 3,816 Jun-19-2018, 03:27 PM
Last Post: Larz60+
  Copy data from 1 blk device in machine A to another blk device in machine B AbhishekV 2 3,421 Feb-01-2018, 11:40 AM
Last Post: DeaD_EyE
  paramiko/ssh-matic not working from Windows Server 2012 R2 machine having Python34. pythonuser14 1 3,272 Oct-15-2017, 06:53 AM
Last Post: pythonuser14

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020