4

I have formatted a flash drive and thus needed to unmount the device. Is there a way to trigger automount via command line after formatting was finished ?

(I know I can just reinsert a USB flash drive, but that seems like a cheap shot ;) And manually mounting seems a bit cumbersome as one needs to mkdir the mount directory manually.)

0

3 Answers 3

4
/usr/bin/udisks --mount /dev/sdc1

worked for me. This seems to be what is invoked by gnome according to https://help.ubuntu.com/community/AutomaticallyMountPartitions.

2

Here my solution on Ubuntu 18.04:

udisksctl mount -b {device}
1

I think you need to run

sudo partprobe

to re-scan all devices for partitions and filesystems. On my Xubuntu 12.04 (debian-based), this also triggers automount.

2
  • Did not work on my Ubuntu 12.04. But I have to admit that for the test I skipped the formatting. (I just unmounted the drive.)
    – tssch
    Sep 2, 2013 at 9:31
  • I'm not 100% sure but this could make a difference.
    – Markus N.
    Sep 2, 2013 at 11:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .