• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
USB device prevented from mounting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

USB device prevented from mounting


  • Subject: USB device prevented from mounting
  • From: Nick Rogers <email@hidden>
  • Date: Wed, 20 Feb 2008 20:15:55 +0530

Hi,
In my app I'm using:
kernResult =  IOServiceAddMatchingNotification( 
   notificationObject, 
   kIOFirstMatchNotification, 
   IOServiceMatching(kIOUSBDeviceClassName),
   callback, 
   handler, 
   &mediaIteratorAdded ); 
while (IOIteratorNext(mediaIteratorAdded));
CFRunLoopAddSource(CFRunLoopGetCurrent(), IONotificationPortGetRunLoopSource(notificationObject), kCFRunLoopDefaultMode);

CFRunLoopRun();


and running it in a separated POSIX thread.
Whenever I insert a USB pen drive, my callback() is called, but somehow this prevents the USB drive from mounting as /dev/rdisk2 etc.
I not only need the notification, which I'm getting but also need the device to be mounted.
Subsequently even if I quit the program and then reinsert, it doesn't get mounted.
I then have to restart  the computer (with device inserted) to get it mounted.
If I restart the computer and then insert the device, it doesn't get mounted.
I'm using Leopard.

What gets wrong with the device?
Please help.

Wishes,
Nick









 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: USB device prevented from mounting
      • From: Terry Lambert <email@hidden>
  • Prev by Date: Re: shm_open and EMFILE
  • Next by Date: problem with sysctlbyname on 10.4 or ppc
  • Previous by thread: Re: Ascertaining dirty pages
  • Next by thread: Re: USB device prevented from mounting
  • Index(es):
    • Date
    • Thread