Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

cifs

What does cifs_mount failed w/return code = -22 indicate

May 25, 2023 by Tarik

I ran into this problem when using a host name and solved it by using an IP address. E.g.: use mount -t cifs //192.168.1.15/share rather than mount -t cifs //servername/share Another possible solution is to install cifs-utils .

Categories mount Tags cifs, mount, samba Leave a comment

Mount SMB/CIFS share within a Docker container

February 20, 2023 by Tarik

Yes, Docker is preventing you from mounting a remote volume inside the container as a security measure. If you trust your images and the people who run them, then you can use the –privileged flag with docker run to disable these security measures. Further, you can combine –cap-add and –cap-drop to give the container only … Read more

Categories linux Tags cifs, docker, linux, mount, windows Leave a comment

How do you force a CIFS connection to unmount

November 14, 2022 by Tarik

I use lazy unmount: umount -l (that’s a lowercase L) Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later.)

Categories linux Tags cifs, linux, samba, smb Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa