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
885
votes
27 answers
How to mount a host directory in a Docker container
I am trying to mount a host directory into a Docker container so that any updates done on the host is reflected into the Docker containers.
Where am I doing something wrong. Here is what I did:
kishore$ cat Dockerfile
FROM ubuntu:trusty
RUN apt-get…

Kishore
- 9,146
- 3
- 13
- 11
403
votes
11 answers
Permission denied on accessing host directory in Docker
I am trying to mount a host directory in Docker, but then I cannot access it from within the container, even if the access permissions look good.
I am doing
sudo docker run -i -v /data1/Downloads:/Downloads ubuntu bash
and then
ls -al
It gives…

user3753011
- 4,131
- 3
- 12
- 3
346
votes
14 answers
How to mount host volumes into docker containers in Dockerfile during build
Since 2014 when this question has been asked, many situations had happened and many things has changed. I'm revisiting the topic again today, and I'm editing this question for the 12th time to reflect the latest changes. The question may seem long…

xpt
- 20,363
- 37
- 127
- 216
177
votes
1 answer
How to find out mount/partition a directory or file is on? (Linux Server)
Is there a Linux command to easily find out which partition/mount a directory or file is on?
(This is probably a RTM question, and I feel guilty for asking it, but somehow, I can't find a good answer on google just yet..)

ina
- 19,167
- 39
- 122
- 201
164
votes
8 answers
Transport endpoint is not connected
FUSE is constantly(every 2 - 3 days) giving me this Transport endpoint is not connected error on my mount point and the only thing that seems to fix it is rebooting.
I currently have my mount points setup like this, I'm not sure what other details…

Alexis Tyler
- 1,394
- 6
- 30
- 48
163
votes
6 answers
Force unmount of NFS-mounted directory
I have an NFS-mounted directory on a Linux machine that has hung. I've tried to force an unmount, but it doesn't seem to work:
$ umount -f /mnt/data
$ umount2: Device or resource busy
$ umount: /mnt/data: device is busy
If I type "mount", it…

Lorin Hochstein
- 57,372
- 31
- 105
- 141
144
votes
6 answers
Manually put files to Android emulator SD card
I'm just having trouble with getting my emulator SD card work...
I created a new AVD device with a new SD card.
So how to put data onto it? I found the "correct" file to be mounted on Daemon tools, but is corrupt or simply not readable...
It would…

poeschlorn
- 12,230
- 17
- 54
- 65
129
votes
15 answers
VMware Workstation and Device/Credential Guard are not compatible
I have been running VMware for the last year no problems, today I opened it up to start one of my VM and get an error message, see screen shot.
I did follow the link and went through the steps, on step 4 I need to mount a volume using "mountvol".…

Gman
- 2,433
- 3
- 26
- 36
112
votes
8 answers
Check if directory mounted with bash
I am using
mount -o bind /some/directory/here /foo/bar
I want to check /foo/bar though with a bash script, and see if its been mounted? If not, then call the above mount command, else do something else. How can I do this?
CentOS is the operating…

Justin
- 42,716
- 77
- 201
- 296
104
votes
12 answers
Linux: Which process is causing "device busy" when doing umount?
Linux: Which process is causing "device busy" when doing umount?

flybywire
- 261,858
- 191
- 397
- 503
82
votes
6 answers
FUSE error: Transport endpoint is not connected
I'm trying to implement the FUSE filesystem. I am receiving this error:
cannot access MountDir: Transport endpoint is not connected
This the relevant parts of the program. There are two directories, MirrorDir and MountDir, that exist withing the…

AndroidDev
- 20,466
- 42
- 148
- 239
76
votes
5 answers
Mount SMB/CIFS share within a Docker container
I have a web application running in a Docker container. This application needs to access some files on our corporate file server (Windows Server with an Active Directory domain controller). The files I'm trying to access are image files created for…

Kryten
- 15,230
- 6
- 45
- 68
74
votes
1 answer
How do I specify a label/path with spaces in /etc/fstab?
I am having trouble trying to get theh permissions for some of my external drives set up.
I believe the probem is due to how I am dealing with spaces in the text such that the commands can be interpreted by the terminal.
I have found this, which…

chase
- 3,592
- 8
- 37
- 58
57
votes
7 answers
How to mount one partition from an image file that contains multiple partitions on Linux?
The image file has a partition table, and it contains multiple partitions.
loopback devices might be a possibility.
Related…

Atlas1j
- 2,442
- 3
- 27
- 35
50
votes
1 answer
Docker mount to folder overriding content
I have a .net Core web Api having configurations files under a folder called Config.
I created the image and a container from it, and I correctly see using the terminal, that the container contains the folder and the configuration files inside.
My…

Norcino
- 5,850
- 6
- 25
- 42