How to Mount a Disk in Ubuntu



Question: How do you mount a NAS device to a Linux Computer?

Solution: See the code below:

  1. Make sure you create a folder on the root path called "Anything"
    - use: sudo mkdir FolderName
  2. Remember to use the FolderName in the command below
If you want to mount another disk space in Linux Ubuntu follow instruction below:
1. cd etc/
2. sudo apt-get install cifs-utils
2. sudo nano fstab
3. Under "/swap.img" type the following:
   //IPAddressOfYourDisk/FolderName /FolderYouWantToBindTheDiskTo cifs guest, uid=100, iocharset=utf8 0 0
- guest should be replaced with user credetials to log into the Disk Space.
4. sudo mount -a #To finally mount the settings pasted in fstab

[NB] If you have followed the code above and you get the error that says "mount: /etc/fstab: parse error at line 6 -- ignored"

Solution: Remove the spaces between guest,uid=100,inocharset=utf8 0 0

Mount NAS to Ubuntu Technology published
Was this page helpful?
Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful.. Leave ErnesTech Feedback.Feedback

Other users would like to know if this solution helped you.

Your Session is Ending
Login to Continue


© 2021 - ErnesTech - Privacy