Questions tagged [mount-point]

A mount point is a location (a directory) in a directory structure to which a resource (a directory structure) from another file system (like a data carrier, for example a CD-ROM) is attached (integrated).

170 questions
156
votes
6 answers

docker mounting volumes on host

I have successfully been able to share folders between a docker container with volumes using docker run -v /host/path:/container/path ... But my question is what the difference between this and using the VOLUME command in the Dockerfile VOLUME…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
26
votes
2 answers

Linux du command without traversing mounted file systems

If the wording of the question is wrong, please let me know. It might explain why I can’t find an answer. I want to find the usage on my main disk using a command like: du -sh /* The problem is that I have a number of mount points at the root…
Manngo
  • 14,066
  • 10
  • 88
  • 110
16
votes
3 answers

Mount "named volume" as non-root in Docker

Is there any way to mount a named volume as a non-root user? I am trying to avoid having to run a chown in each Dockerfile but I need the mount to be writable by a non-root user to be able to write the artifacts created by a build in the image This…
Hilikus
  • 9,954
  • 14
  • 65
  • 118
15
votes
7 answers

adding an fstab option using Ansible

I am trying to add nodev to my /etc/fstab file. I am using the Ansible command below but with no luck. My issue lies with the regular expression, I'm not a pro at regex. - name: Add nodev to /etc/fstab lineinfile: dest=/etc/fstab …
Brian Putt
  • 1,288
  • 2
  • 15
  • 33
7
votes
1 answer

Difference between WNetAddConnection2() and NetUseAdd()

I'm mounting a remote drive locally (see User/password problems with GetVolumeNameForVolumeMountPoint() (Windows remote drive mount?)) QUESTION: What is the difference between WNetAddConnection2() and NetUseAdd()? It appears they each permit you…
charley
  • 5,913
  • 1
  • 33
  • 58
5
votes
3 answers

kubernetes secret items not mounted as file path

I have the following yaml: volumeMounts: - name: app-secret mountPath: /app readOnly: true volumes: - name: app-secret secret: secretName: app-secret items: - key:…
Kok How Teh
  • 3,298
  • 6
  • 47
  • 85
5
votes
1 answer

Where are all mount points stored in Linux

I want to know where all mount points are stored; i.e. under any specific directory? I want to be able to list all the existing mount points using a C Program. Which system call or function should I use?
HARISH B
  • 85
  • 2
  • 4
4
votes
1 answer

How to map a AWS S3 bucket as a mapped drive (Network Drive) in windows server 2016

I would like to use S3 bucket as a real-time file store and I wanted to upload/download large files to S3 from my Windows server 2016 frequently. Is there any option to mount an S3 bucket with windows EC2 instance without using third party paid…
3
votes
1 answer

How can I find mount point of a device in C/C++?

I am using libhal to detect device events. I am able to detect a device added or removed but I can not detect device's mount point. The function libhal_volume_get_mount_point(volume) does not work. I have a callback function to detect device add: …
Olcay Ertaş
  • 5,987
  • 8
  • 76
  • 112
3
votes
0 answers

I am trying to get newly attached disk (Pen Drive) MOUNT POINT in MAC OS with C code

I am new to MAC OS X. I want to get Mount Point of newly attached disk (Pen Drive). I already tried some code and got mount path from command diskutil info disk1S2 | grep \" Mount Point: \" | awk '{print $3}' where disk1S2 is Identifier of newly…
Omkar
  • 343
  • 3
  • 12
3
votes
3 answers

The Uniqueness of IOCTL_MOUNTDEV_QUERY_UNIQUE_ID

The documentation on IOCTL_MOUNTDEV_QUERY_UNIQUE_ID is a bit confusing... exactly what kind of ID should be returned in the MOUNTDEV_UNIQUE_ID structure? The documentation for typedef struct _MOUNTDEV_UNIQUE_ID { USHORT UniqueIdLength; UCHAR …
user541686
  • 205,094
  • 128
  • 528
  • 886
3
votes
1 answer

bindfs - Doesn't work for folder inside "/proc"

Bindfs doesn't work for folder inside "/proc"... [root@some_host some_folder]# bindfs --map=root/ "/proc//" "/home//" Failed to resolve source directory `/proc//': No such…
Eduardo Lucio
  • 1,771
  • 2
  • 25
  • 43
3
votes
1 answer

How to know how many Mount targets to create by Cloudformation

I create by cloudformation an EFS in a VPC, this VPC contains few EC2 instances. I need to create as well mount targets for each subnet. This cloudformation template can be executed in different AWS accounts. How to know how meny Mount targets…
Souad
  • 4,856
  • 15
  • 80
  • 140
3
votes
1 answer

Is the EBS volume mounted ? and where?

In my EC2 instance, that is attached to a volume EBS of 100GB, I run this command: [ec2-user ~]$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 0 100G 0 disk └─xvda1 202:1 0 8G 0 part / Here is the file…
Souad
  • 4,856
  • 15
  • 80
  • 140
3
votes
1 answer

Filter keys from a map in Puppet

I need the mount points in puppet that refer to /datadisks. I use mountpoints core facts to obtain the mount points. Within these mount points, I want to filter and get only the mount points whose names contain /datadisks in an array i.e I just want…
Sandeep Kanabar
  • 1,264
  • 17
  • 33
1
2 3
11 12