Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
91
rated 0 times [  91] [ 0]  / answers: 1 / hits: 686762  / 3 Years ago, sun, june 13, 2021, 9:16:42

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.


More From » mount

 Answers
7

I think you need to also pass the windows share name as well as confirm that you've created /media/Data



sudo mkdir /media/Data


Use something like



smbclient -L //172.29.32.184 


to list the shares, then append the share name to your mount



sudo mount -t cifs -o username=raghu //172.29.32.184/sharename /media/Data/



  • 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.


[#44887] Tuesday, June 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
herriail

Total Points: 11
Total Questions: 122
Total Answers: 118

Location: Peru
Member since Tue, Mar 16, 2021
3 Years ago
herriail questions
Tue, May 18, 21, 02:11, 3 Years ago
Sun, Dec 12, 21, 06:06, 2 Years ago
Wed, May 24, 23, 01:42, 1 Year ago
Sun, Jan 29, 23, 00:48, 1 Year ago
;