I am unable to map a Windows network drive in Ubuntu. I executed the following command in the terminal:
karthick@karthick:~$ sudo mount -t cifs -o username=raghu //172.29.32.184 /media/Data/
Password:
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
But it returned an error. I hope someone can sort this out.
I think you need to also pass the windows share name as well as confirm that you've created /media/Data
Use something like
to list the shares, then append the share name to your mount
Note- If you receive the error:
wrong fs type, bad option, bad superblock on...
make sure you have cifs-utils installed, it may not be installed on your distro by default.sudo apt-get install cifs-utils
If you need to mount your windows share permanently then there is an excellent HowTo by dmizer UbuntuForums Staff (scroll to the permanent mount section)- I wont reproduce the advice here because its got some excellent debugging hints and tips and other workarounds that you may encounter.
I use @fossfreedom's answer in one line command use this :
Download VisiPics and install it with Wine.
Mount the shared folder if it exists:
Then go to VisiPics and open
Z:
drive and folder/mnt
. Inside you will find the network data.Geeqie does great job too and has an Ubuntu version.
As of 2020 this is what works for me on Ubuntu 18.04:
Now you will be asked for the log-in user name and password. That's it, you should now have a graphical connection in Nautilus to the drive
Another way is to use the file browser to connect to a network location. Then it is mounted under
~/.gvfs
From there, you can
mkdir ~/winbox
and thenln -s ~/.gvfs/blahblahblah ~/winbox
.I recall there being some permanence to this, but I forget the details. :P I was developing php/odbc app for Quickbooks which needs to be run on the Quickbooks computer.
Edit for 2018 and beyond: After 14.04, ubuntu seems to no longer use
.gvfs
, so the above might not work for you. Some folks got really mad that something changed and my old answer didn't work.Check out this comment:
~/.gvfs
moved to/run/user/[UID]/gvfs/blahblah
. After using Nautilus to make a location usingsftp://host:port
, the remote server's file system showed up there.