Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Prevent iPhone from mounting as camera

  1. #1
    Join Date
    May 2007
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Prevent iPhone from mounting as camera

    I have an iPhone 3G that I connect to my computer and then sync via VirtualBox. Every time I plug the phone it Ubuntu sees it as a camera and mounts it also asking if I want to import photos. This prevents VirtualBox from being able to lock the device and I have to go and unmount it before the virtual machine can use it properly.

    I believe I need to blacklist the iPhone however my searching has not yielded a solution. Can anyone point me in the right direction?

    Thanks!

  2. #2
    Join Date
    May 2007
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Prevent iPhone from mounting as camera

    Any ideas?

    Thanks!

  3. #3
    Join Date
    Oct 2007
    Beans
    12
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Prevent iPhone from mounting as camera

    bump -- i am experiencing the same problem. I use my iPhone through VMware, and would like to prevent my Ubuntu host from mounting it as a camera. I have already done:


    1. Click Places > Home Folder
    3. Click Edit > Preferences
    6. Click the Preview tab
    1. Set Show thumbnails = Never
    2. Set Preview sound files = Never
    7. Click the Media tab
    1. Check Never prompt or start programs on media insertion
    2. Uncheck Browse media when inserted
    8. Click Close to save the preferences


    this prevents any other usb storage devices from being opened or polled, but not mounted. is there a way to keep ubuntu from mounting the iphone (or any other digicam) as a camera?

  4. #4
    Join Date
    Feb 2009
    Beans
    1

    Re: Prevent iPhone from mounting as camera

    I had this same issue. I'm running a Windows VM and didn't want the host OS grabbing the device.

    From what I can tell, there seem to be two devices for the iphone:
    Code:
    hal-device | less
    • piped to less because the output is rather long
    • search for "Apple"
    • I used the value of "info.udi"
      • make sure to grab for both devices


    Then create a file like /etc/hal/fdi/policy/10-noiphone.fdi ("noiphone" is arbitrary...you can name it whatever you like) with the following:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    
    <deviceinfo version="0.2">
      <device>
        <match key="info.udi" string="$info.udi1">
           <merge key="info.ignore" type="bool">true</merge>
        </match>
      </device>
      <device>
        <match key="info.udi" string="$info.udi2">
           <merge key="info.ignore" type="bool">true</merge>
        </match>
      </device>
    </deviceinfo>
    • where $info.udi1 = first info.udi value from hal-device search
    • where $info.udi2 = second info.udi value from hal-device search


    You can really use a combination of match keys, but I used info.udi because it was the most specific (I think you could do it by using just usb_device.serial to set info.ignore on both devices).

    Hope that helps.

    Cheers,
    Philip

  5. #5
    Join Date
    Oct 2007
    Beans
    12
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Prevent iPhone from mounting as camera

    Philip-

    This is exactly what I was looking for. Worked perfectly... Thank you!

    -ben

  6. #6
    Join Date
    May 2007
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Prevent iPhone from mounting as camera

    That solution does indeed work perfectly! Thanks for your help!

  7. #7
    Join Date
    Mar 2009
    Beans
    3

    Re: Prevent iPhone from mounting as camera

    I did this however now virtualbox does not seem to be able to access the phone. Any ideas?

  8. #8
    Join Date
    May 2007
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Prevent iPhone from mounting as camera

    Do you have the version of VirtualBox installed that supports USB devices? Does it show up in the list when you click on the usb icon at the bottom of the Virtualbox window?

  9. #9
    Join Date
    Mar 2009
    Beans
    3

    Re: Prevent iPhone from mounting as camera

    It does show up but its greyed out and does not let me choose it.

  10. #10
    Join Date
    May 2007
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Prevent iPhone from mounting as camera

    Are all the devices disabled? Do you have the latest version of Virtualbox (2.1.4)?

    I found this thread that has instructions on how to get USB devices working in Virtualbox, however they suggest these steps are no longer needed in the new version.

    http://ubuntuforums.org/showthread.p...virtualbox+usb

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •