Skip to content

Instantly share code, notes, and snippets.

@TomTasche
Last active June 20, 2017 13:30
Show Gist options
  • Save TomTasche/fe42207c3c851bc46b3e1f1c09e0faa3 to your computer and use it in GitHub Desktop.
Save TomTasche/fe42207c3c851bc46b3e1f1c09e0faa3 to your computer and use it in GitHub Desktop.
do not automatically mount apple devices in ubuntu (fix for mounting iphone in mac-guest in vmware)
# if you're running mac osx inside a vmware virtual machine, mounting an iphone into it can be cumbersome because ubuntu always claims the device for itself.
# sometimes it still works to mount it into the vm, but most of the time it doesn't.
# to fix that we simply never mount apple-devices on our ubuntu host, so that vmware is able to claim them for the guest.
# this ignores all apple usb-devices on your ubuntu host!
echo 'ATTRS{idVendor}=="05ac", ENV{UDISKS_IGNORE}="1"' | sudo tee /etc/udev/rules.d/100-local.rules
sudo udevadm control --reload-rules && sudo udevadm trigger
@TomTasche
Copy link
Author

i don't know why, but you have to run that last command again every time you reboot your host

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment