Skip to content
Fr Simon's Secondhand Bookstall

Fr Simon's Secondhand Bookstall

Selling my books to make space (for more books)

  • Home
  • Bookstall
    • Books and other Stuff
    • Basket
    • Checkout
  • Refund and Returns Policy
  • Other things
    • Dance
    • Technology & Geekery
      • Fr Simon’s Unofficial Remote Controller
      • Easyworship Remote Control
      • get_iPlayer GUI Version 2
      • Electric Ordo (Calendar) 2023
      • jWorship
      • Development and Testing
      • NAS Drives Mapper
      • Development Privacy Policy
    • Liturgy & Worship
      • Funeral Materials
      • Common Worship RTF Files
      • Spiritual Materials
    • Blog
  • My Publications
    • MA Dissertation: Sacraments in Digital Space
  • About
  • Toggle search form

Mounting Samba / CIFS Shares from an NAS successfully in Linux

Posted on October 9, 2014 By spr 1 Comment on Mounting Samba / CIFS Shares from an NAS successfully in Linux

Please excuse this necessarily techy post – there’ll be something about the Church along in a minute…

I have  all my key data on a number of Network Attached Storage devices: hard disks which are directly wired to the network rather than another PC. This all gets backed up on the cloud and so (hopefully) data loss is kept to a minimum. They are available across the network (both wired and wifi) as CIFS (Common Internet Filing System) aka Samba shares.

On windows you simply link to these things by opening up the “My Computer” and selecting “Map Network Drive”

[caption id=”attachment_5231″ align=”aligncenter” width=”784″My PC You can see 5 mapped drives in Windows 8 from 3 different servers here.[/caption

On a linux machine, you can map each drive as you need them, but they tend to get lost each time you restart, so you need to add the correct configuration.

I use the Debian branch of linux (a mix of Debian, Ubuntu and Mint), so all my commands are prefixed with the sudo command. You could also do this as root.

cd /mnt
sudo mkdir X [the name of the mount you want to call this. I match the Windows drive letters
cd /etc
sudo nano fstab

Screen Capture (1)

I then add the following to this configuration table at the bottom

//192.168.0.77/X /mnt/X cifs username=guest,password=,sec=ntlm 0 0

ie

//<server ip>/<sharename> /<location of mount> cifs username=guest,password=,sec=ntlm 0 0

The key command appears to be the security option

sec=ntlm

(I’m assuming NT Lan Manager), it has taken ages to figure out that this is the key command. I have found that using the IP address of the server to be much more reliable than the Server name. NAS devices should have static IP addresses anyway.

I hope this is useful to someone.

geek, tech

Post navigation

Previous Post: Recording your Sermons or Homilies for posterity or for the housebound
Next Post: Simple Plainchant Our Father

Related Posts

Offering (to the tune of Jerusalem) geek
2017 Electric Ordo released FREE – all I ask for is your prayers (PRAYERWARE) geek
Tweetcloud geek
That elusive magic ROBOCOPY spell for backing up a drive geek
Recording your Sermons or Homilies for posterity or for the housebound geek
Electric Ordo – Liturgical Calendar 2009 – Problem fixed for older versions of Outlook parish

Comment (1) on “Mounting Samba / CIFS Shares from an NAS successfully in Linux”

  1. James says:
    October 9, 2014 at 10:11 am

    I’d recommend either putting all your server names and IP addresses in /etc/hosts, and then using the server names everywhere, or seeing if one of your always-on boxes can do DNS. Name lookup shouldn’t be unreliable.

    I’d also recommend using the credentials= option to keep username and password out of the world-readable /etc/fstab.

    Finally, I’d recommend you test without the sec=ntlm option on each new NAS: it certainly doesn’t seem to be required on up-to-date Synology boxes.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright © 2023 Fr Simon's Secondhand Bookstall.

Powered by PressBook Grid Dark theme

FREE SHIPPING | CHEAPER THAN ABEBOOKS Dismiss