mount is a command used to attach the file data structure of a device as a branch of the root tree.
Questions tagged [mount]
1753 questions
30
votes
4 answers
Kubernetes mount volume on existing directory with files inside the container
I am using k8s with version 1.11 and CephFS as storage.
I am trying to mount the directory created on the CephFS in the pod. To achieve the same I have written the following volume and volume mount config
in the deployment configuration
Volume
{
…

Yudi
- 831
- 4
- 10
- 19
28
votes
2 answers
PHP file_exists sometimes returns false for a file on CIFS share
I have a CIFS share from Windows Server 2012 R2 mounted on Ubuntu 14.04.2 LTS (kernel 3.13.0-61-generic) like this
/etc/fstab
//10.1.2.3/Share /Share cifs…

Adam Michalik
- 9,678
- 13
- 71
- 102
27
votes
7 answers
Amazon S3 with s3fs and fuse, transport endpoint is not connected
Redhat with Fuse 2.4.8
S3FS version 1.59
From the AWS online management console i can browse the files on the S3 bucket.
When i log-in (ssh) to my /s3 folder, i cannot access it.
also the command: "/usr/bin/s3fs -o allow_other bucket /s3"
return:…

ilansch
- 4,784
- 7
- 47
- 96
26
votes
1 answer
Mount disk image on WSL (Windows subsystem for Linux)?
I'm using Ubuntu and I have created a full copy of my system SSD hard drive with the following command:
dd if=/dev/sda of=ubuntu.iso
and saved it on a backup HDD which is an NTFS drive.
I'm now on Windows 10 PRO and want to mount this image using…

userQWERTY
- 501
- 1
- 5
- 12
26
votes
2 answers
Linux - understanding the mount namespace & clone CLONE_NEWNS flag
I am reading the mount & clone man page. I want to clarify how CLONE_NEWNS effects the view of file system for the child process.
(File hierarchy)
Lets consider this tree to be the directory hierarchy. Lets says 5 & 6 are mount points in the…

Jake
- 16,329
- 50
- 126
- 202
24
votes
9 answers
mount.nfs: requested NFS version or transport protocol is not supported
NFS Mount is not working in my RHEL 7 AWS instance.
When I do a
mount -o nfsvers=3 10.10.11.10:/ndvp2 /root/mountme2/
I get the error:
mount.nfs: requested NFS version or transport protocol is not supported
Can anyone point me where I am…

Akki
- 2,179
- 8
- 21
- 37
24
votes
3 answers
How do I mount --bind inside a Docker container?
I have this container based on debian:jessie (but this is not very relevant as I had the same issue with alpine:3.3). I get to the point where I need to
mount --bind /htdocs/www /home/user/example.com/www
and I get
mount: permission denied
I can't…

Morpheu5
- 2,610
- 6
- 39
- 72
24
votes
5 answers
How to list Docker mounted volumes from within the container
I want to list all container directories that are mounted volumes.
I.e. to be able to get similar info I get from
docker inspect --format "{{ .Volumes }}"
But from within the container and without having docker installed in there.
I tried…

Leo Gallucci
- 16,355
- 12
- 77
- 110
24
votes
5 answers
How to Mount a Linux directory from a different PC to your local Linux PC?
Is there a way to mount a Linux directory from a different PC to your local Linux PC? How?

ksuralta
- 16,276
- 16
- 38
- 36
24
votes
2 answers
List all mounts in Linux
I know mount and df lists all mounts. But I would like to list the mounts which failed to establish on boot, too. How do I get them?

user2693017
- 1,750
- 6
- 24
- 50
23
votes
5 answers
ValueError: Mountpoint must not contain a space. (Colab)
Here is my code in google colab:
from google.colab import drive
drive.mount('content/drive/My Drive/ML')
I have a path which contains space symbol and I get this error:
/usr/local/lib/python3.6/dist-packages/google/colab/drive.py in…

Jonah Geladze
- 373
- 1
- 2
- 9
23
votes
4 answers
Check if the feature gate is enabled /disabled in kubernetes
In Kubernetes , is there a particular way I can check if a specific feature-gate is enabled/disabled. Say, I want to check if MountPropagation feature is enabled in my cluster. How do I do that.

ambikanair
- 4,004
- 11
- 43
- 83
23
votes
4 answers
Where is a file mounted?
Given a path to a file or directory, how can I determine the mount point for that file? For example, if /tmp is mounted as a tmpfs filesystem then given the file name /tmp/foo/bar I want to know that it's stored on a tmpfs rooted at /tmp.
This will…

John Kugelman
- 349,597
- 67
- 533
- 578
23
votes
5 answers
OS X mount local directory
Is it possible to mount a local directory into another one? Using Perforce, I want to do something equivalent to symlinking a directory, but in a way that fools it into thinking it's really just another directory in the project.
I would like to do…
user79854
22
votes
3 answers
Podman mount host volume return 'Error: statfs: no such file or directory' in Mac OS
Recently switched from Docker Desktop to Podman, everything work smoothly except when I want to mount host volume into container. e.g.
➜ ~ podman run --name nginx -v ~/bin/nginx/nginx.conf:/etc/nginx/nginx.conf:ro -d -p 8080:80 nginx
Error: statfs…

mainframer
- 20,411
- 12
- 49
- 68