How to access shared folder on Windows from Ubuntu machine - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Networking (https://python-forum.io/forum-12.html) +--- Thread: How to access shared folder on Windows from Ubuntu machine (/thread-22343.html) |
How to access shared folder on Windows from Ubuntu machine - Pavel_47 - Nov-09-2019 Hello, How to access the conetnt of a shared folder on Windows from Ubuntu machine ? Transfer isn't need, only read acces and probably file rename. Thanks. RE: How to access shared folder on Windows from Ubuntu machine - Gribouillis - Nov-09-2019 I haven't done this for a long time but it seems to me that you install samba and there is a command to mount the folder. Looking in some very old notes, I have a command line to mount the shared C folder from host 192.168.2.4 You need to create the folder /mnt/foobar first.
RE: How to access shared folder on Windows from Ubuntu machine - Pavel_47 - Nov-09-2019 Yes, I installed it. What then ? I've tried to mount shared folder using IP address of windows machine, but it failed. RE: How to access shared folder on Windows from Ubuntu machine - Gribouillis - Nov-09-2019 see my edit above. You can have the ip address of host foobar by entering or perhaps from python>>> import socket >>> socket.gethostbyaddr('foobar')Also make sure package cifs-utils is installed and you can read
RE: How to access shared folder on Windows from Ubuntu machine - Pavel_47 - Nov-09-2019 (Nov-09-2019, 02:57 PM)Gribouillis Wrote: I haven't done this for a long time but it seems to me that you install samba and there is a command to mount the folder.Here is output when I execute the instruction above: mount.cifs: bad UNC (192.168.0.1:C) where 192.168.0.1 - is wired IP of Windows machine RE: How to access shared folder on Windows from Ubuntu machine - Gribouillis - Nov-09-2019 What is the path of the shared folder on the windows host? also you may need username="ham",password="eggs" after the -o
RE: How to access shared folder on Windows from Ubuntu machine - Pavel_47 - Nov-09-2019 \\SARATOGA\pdf2 Tried with password and username. The same. Probably I should also specify the path to shared folder, i.e. \\SARATOGA\pdf2 ? RE: How to access shared folder on Windows from Ubuntu machine - Gribouillis - Nov-09-2019 Then try 192.168.0.1:SARATOGA/pdf2 or something similar. There must be a correct syntax to name the volume.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. RE: How to access shared folder on Windows from Ubuntu machine - Pavel_47 - Nov-09-2019 Tried as you suggested with two version of slash, i.e. '\' and '/'. The same. I checked Windows machine from Ubuntu with ping and it's Ok. RE: How to access shared folder on Windows from Ubuntu machine - Gribouillis - Nov-09-2019 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. |