The Computer Oracle

How Do I Map a Drive Network Share Using the Linux Terminal?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Mysterious Puzzle

--

Chapters
00:00 How Do I Map A Drive Network Share Using The Linux Terminal?
01:07 Accepted Answer Score 24
01:28 Answer 2 Score 7
01:35 Thank you

--

Full question
https://superuser.com/questions/145191/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#linux #ubuntu #terminal #networkshares

#avk47



ACCEPTED ANSWER

Score 24


Create a directory on your machine to use as a mount point for the share:

sudo mkdir /media/yoursharename

Then use the mount command to map a Windows share to the mount point you just created:

sudo mount -t cifs -o username=nicorellius //server/sharename /media/yoursharename

You should now be to access the share from your /media/yoursharename mount point.




ANSWER 2

Score 7


gvfs-mount can be used to mount filesystems under ~/.gvfs in the same manner as Gnome applications.