format-udf icon indicating copy to clipboard operation
format-udf copied to clipboard

Find a way to auto-mount (instead of asking user to disconnect/reconnect)

Open JElchison opened this issue 9 years ago • 4 comments

sudo mount -a doesn't work

JElchison avatar Aug 27 '14 21:08 JElchison

Some tool like partprobe that can work without an actual partition table?..

IvanAnishchuk avatar Feb 09 '15 06:02 IvanAnishchuk

You could try kpartx (from multipath-tools).

marcinfalkiewicz avatar Apr 27 '15 08:04 marcinfalkiewicz

Sadly, partprobe falls short, in that it only causes the kernel to re-inspect the partition table. It does not, however, go a step further and tell the OS to reattempt auto-mounting. This may be a pipe dream, especially in a POSIX-compliant fashion.

I don't mind using separate tools for Linux vs. OS X, but I have yet to find a tool that accomplishes what I'm looking for one on OS, let alone two.

@dwe11er: If i understand kpartx correctly, it's a manual mounting tool. Doesn't refresh the kernel's view of the partition table, also doesn't tell the OS to auto-mount again.

JElchison avatar Feb 06 '16 04:02 JElchison

diskutil mount diskX works fine on Mac OS...

biblicabeebli avatar Dec 14 '16 19:12 biblicabeebli