1

whenever I plug in an ext4 partition type external USB drive, this message will pop up. and then I need to press "Ignore" to ignore it. This is very annoying. How can I auto ignore it?

I did google this for hours and can not find a proper solution. I don't want to install any non open source apps for doing such a simple task. I think it should be doable by changing some config files.

PS: If you are curious why I want to plug in ext4 drive, because I will later use it with a linux VM (virtualbox+vagrant).

Thanks a lot for your help.

Edited: I don't want to disable automount for all types of drives. I just want to ignore ext4 popup or that specific drive. Cheers.

6
  • You can mount them with Fuse; which I know isn't the same as ignoring, but might be worth a look at - apple.stackexchange.com/q/210198/85275
    – Tetsujin
    Commented Aug 4, 2018 at 10:27
  • @Tetsujin thanks for the reply. but I really don't want to mount it at all. Because if I mount it, I won't be able to use it in my VM. All I want is to auto ignore this pop up. cheers.
    – sgon00
    Commented Aug 4, 2018 at 10:34
  • Since you want to use it with VirtualBox, why not just create a USB filter in VB and let it grab the USB device?
    – Allan
    Commented Aug 4, 2018 at 12:04
  • @Allan first, I am not sure what USB filter means here, but I don't think that is a proper solution. What if the VM reboots/shutdown? The popup window appears again and again when my VM reboots and shutdown. If USB filter works even when there is no VM running and no virtualbox app running, that will be the solution. cheers.
    – sgon00
    Commented Aug 4, 2018 at 12:26
  • I gotta ask... You don't know what USB filter means but you're sure it won't work? See this question/answer: apple.stackexchange.com/q/183003/119271
    – Allan
    Commented Aug 4, 2018 at 12:50

1 Answer 1

2

Due to no answer yet, I did find a workaround and want to share here.

(1) Resize the external drive and create a small 100MB Apple_HFS typed partition on it. (label the partition with the name dummy).

Explanation: Since there is a recognized readable partition in the external drive now, there will be no warning popup at all and will auto mount it as /Volumes/dummy/.

(2) Create a shell script in the PATH with the name vagrant-up.sh which has the following content:

diskutil umount /Volumes/dummy/ && cd ~/vagrant/myVM/ && vagrant up

So to run my vm, simply execute vagrant-up.sh.

That's all. It works well so far.

You must log in to answer this question.

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