I'm aiming to get a command line mount sorted out first,
then an (autofs?) fstab mount.

My HP printer (it's surely *nix inside), and my win computer both can use the drive,
but not my linux box.
[eg: I set up the printer - just through its gui - to write scans to it]

I can see the drive with smbclient but I can't mount it.

A few of the mount commands I've tried:

# mount -t cifs -o //      /mnt/netstore
# mount -t cifs -o // /mnt/netstore credentials=/root/.smbcredentials

The most common result is:

# mount error(13): Permission denied
# Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

# echo $?

My goal is to connect to it and back it up on the linux box.

samba-client installed
cifs-utils installed

# smbclient -L

prompts for "root's password" and - as expected for the "no password" setting below - returns:

Domain=[CONSENSUS] OS=[Unix] Server=[Samba 3.0.13]
      Sharename       Type      Comment
      ---------       ----      -------
      USB_Storage     Disk      read:all-no password;write:all-no password
      IPC$            IPC       IPC Service (DocBak)
      ADMIN$          IPC       IPC Service (DocBak)

Domain=[CONSENSUS] OS=[Unix] Server=[Samba 3.0.13]
      Server               Comment
      ---------            -------
      DOCBAK               DocBak
      SONY7                My Laptop

      Workgroup            Master
      ---------            -------
      CONSENSUS            DOCBAK

Router GUI says:

Network/Device Name :   DocBak
Workgroup :             Consensus

Enable   Access Method       Link      Port
checked  Network Connection  \\DocBak  -

Available Network Folders
                       Read    Write
 Share Name            Access  Access  Folder Name  Volume Name
 \\DocBak\USB_Storage  All     All     U:\          USB_Storage

Server OS = CentOS 7.3
Client OS = Win10
Router = WNDR4000 (firmware:
SELinux = enforcing

(main) http://www.tldp.org/HOWTO/SMB-HOWTO-8.html
(many others) ... still digging


mount succeeded after I put sec=ntlm in the empty -o (options) section

So from this one that wouldn't work:

# mount -t cifs -o          // /mnt/netstore

To this one that does:

# mount -t cifs -o sec=ntlm // /mnt/netstore


| improve this answer | |
  • 1
    The REF link appears dead... – Jens May 2 '19 at 8:00
  • replaced the dead link – iletras May 23 '19 at 6:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.