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
3
votes
2 answers

Linux execute script based on usb port

Hello I am working on debian system installed on embedded system. The PC has 3 ports usb let's call it A, B, C. I want to execute different script based on the usb port. How can I achieve this? I found a lot of articles about the udev rules and I…
user1521944
  • 317
  • 1
  • 2
  • 14
3
votes
0 answers

Cloudera quickstart vm docker, how can I have hdfs data stored on a mount point?

Using Cloudera quickstart vm I would like to process more than a few gigs of data. However I need to take the Docker container down from time to time and change it (I'm playing with the configuration). I would like this 'large' amount of data to be…
user1942586
  • 153
  • 1
  • 3
  • 16
3
votes
1 answer

GNU Make rule that executes only if target exists?

In a fairly complex Makefile, I'd occasionally like to invoke certain rules only if a target does exist. For example, I may have created a local directory and used losetup to mount a file onto it. I'd like to leave the mountpoint and the directory…
Josh Sanford
  • 622
  • 5
  • 18
3
votes
0 answers

Waiting for the mount manager to create volume names

To mount vhds on windows, we can use OpenVirtualDisk then AttachVirtualDisk to attach a virtual disk, then GetVirtualDiskPhysicalPath can be used to obtain a physical path to the vhd, in the form of \\.\PhysicalDrive1. Next we can use…
simonzack
  • 19,729
  • 13
  • 73
  • 118
3
votes
1 answer

Map USB disk BSD Name to actual mounted drive(s) in OSX

I am trying to get from the USB device BSD Name to the actual mounted volume(s) for that device e.g. device has BSD name "disk2" and mounts a single volume with BSD name "disk2s1" at "/Volumes/USBSTICK". Here is what I have been doing so far.…
Tam Toucan
  • 137
  • 10
3
votes
3 answers

Find the device or mountpoint of arbitrary files on Linux using C

This question is Linux specific; the solution does not need to be portable. I am looking for a library function/syscall, or some combination thereof which will give me either the device (eg: /dev/sdb1) or mount point (eg: /home) for any arbitrary…
2
votes
1 answer

Moving files from sdCard to flash memory in android?

I am working on an app which needs to move the files from sdcard to the flash memory .The problem is that both the flash memory and sdcard is detected by : (Environment.getExternalStorageDirectory()) So I cant detect whether sdcard is…
Navdroid
  • 4,453
  • 7
  • 29
  • 47
2
votes
1 answer

mhddfs (or unionfs) + Apache = Permission denied

currently I am trying to set up a virtual machine for development for a client. Three SVN repositories with PHP code have to be combined in one folder (I know it's ugly, but that's how they roll). I Googled a little and found mhddfs. So I checked…
squidfunk
  • 391
  • 3
  • 17
2
votes
1 answer

How to mount a host directory with non-root ownership

I use build-arg to ensure my container runs with the same UID as my host user: --build-arg UID=$(UID) I am mounting a volume with: -v $(PWD)/packages:/mnt/packages Because I want my container to produce some output into that directory. The…
volingas
  • 1,023
  • 9
  • 21
2
votes
2 answers

User/password problems with GetVolumeNameForVolumeMountPoint() (Windows remote drive mount?)

From a Vista workstation, I have an attached XP Embedded computer on which I want to programmatically mount a volume locally (e.g., mount the XP Embedded \\MyXPEmbedded\C:\some\path\ to the Vista workstation (mounted to…
charley
  • 5,913
  • 1
  • 33
  • 58
2
votes
2 answers

Azure Databricks mount/unmount best practices

I was wondering as to what the best practices are around mounting and unmounting in Databricks using dbfs. More Details: We are using Azure Data Lake Storage. We have multiple notebooks and in each of the notebooks we have code that calls mount,…
Raj Rao
  • 8,872
  • 12
  • 69
  • 83
2
votes
1 answer

How to check if filesystem is already mounted using C/C++

Hi I am writing an application which mounts cgroup as shown below mount("cgroup", "/sys/fs/cgroup", "tmpfs",0,NULL); I am able to do this but I want to add a check to know if this is already mounted, how do I do that using C/C++? Is there any API…
Ali asgar
  • 33
  • 4
2
votes
1 answer

How to get mount point for a given path in custom linux kernel module

As the title says I have a problem with my custom kernel module. My goal is to retrieve the root mount point of a given path. Just like using df: df "/tmp/some_dir/some_file" vvvvvvvv out vvvvvvvv Filesystem 1K-blocks Used Available Use%…
Radoj11
  • 31
  • 4
2
votes
1 answer

Azure File Share Owner/Group Permissions Revert On VM Reboot

I am mounting an Azure File Share to /elasticdata/azshare on my Ubuntu 16.04 LTS virtual machine. I mount the drive using the following script: sudo mkdir /elasticdata/fileshare if [ ! -d "/etc/smbcredentials" ]; then sudo mkdir…
Joe Berg
  • 774
  • 2
  • 8
  • 21
2
votes
2 answers

What happened when I use a host volume(bind mounts) and named volume(one type of docker managed volume) at the same time?

I have read the some documents before asking this question: https://docs.docker.com/glossary/?term=volume https://docs.docker.com/storage/ https://docs.docker.com/storage/volumes/ https://docs.docker.com/storage/bind-mounts/ And I am confused…
ChiuCheng
  • 31
  • 1
  • 6
1
2
3
11 12