Pmount & safe removal of USB device

I am new to Linux (still discovering Arch inside a VM for now) and lately I've been looking into working with USB devices. I found out about pmount, great tool, but I wanted a little more. So also as part of me trying to learn C as well, I decided to make some changes.
First of all, as the title indicates, I added something to safely remove devices. After searching, it seemed that a lot of people simply unmount whatever file system they have mounted before unplugging their USB devices. That just didn't seem like completely enough to me, and I eventually found this post where it seems that there are, indeed, a few more steps to do before one can safely unplug an USB device.
So I did put those into a new option (-D) of pumount, which will try also try to unmount all partitions of a given device before. Similarly, the same option can be used with pmount to mount all partitions of a device at once.
Additionally, I also added support for a configuration file (/etc/pmount.conf) where one can predefined, for some devices, a few options. Some are new, others will overwrite any command-line options:
- fs to define the file system (overwrites option -t)
- charset to define the I/O character set (overwrites option -c)
- passphrase to define the file to read passphrase from (overwrites options -p/--passphrase)
- mntpt to define the mount point. Overwrites the usual way (e.g. specified label), can be anywhere (not restricted to /media/)
- options to defines the mounting options. That is, this allows you to overwrite the defaut options, as defined in fs.c No checks are done here, so make sure not to include non-existing options, as well as not to include any options auto-added by pmount (that is, things based on command-line options, such as atime/noatime, exec/noexec, etc)
In the end, with a simple call to pmount I can now have my LUKS encrypted partitions mounted automatically; and when I’m done one call to pumount will have them all unmounted, and the device be prepared for safe removal. I think I now have everything I was looking for.
The modified source code is available on this BitBucket repository. You can also find a PKGBUILD in the AUR, which uses the official source code and a patch to get there, simply because I figured it would allow people to check the changes more easily.
I've also made a blog post where I described changes I made a little more, if anyone's interested.
Maybe that might be useful to others; And any bug reports, suggestions or any other form of constructive criticism is very much welcome.
-jacky

[donnie@arch ~]$ sudo sdparm --command=sync /dev/sdb1
    /dev/sdb1: WD        15EADS External   1.75
[donnie@arch ~]$ sudo sdparm --command=stop /dev/sdb1
    /dev/sdb1: WD        15EADS External   1.75
[donnie@arch ~]$ sudo umount /dev/sdb1
umount: /run/media/donnie/wd: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
I tried to pumount an ext4 external usb western digital 1.5TB drive. It is umounted/safely removed without error but it keeps spinning indefinitely. I am not sure if the drive is being 'safely removed'.
Thanks you so much for your work.
UPDATE-1 pumount won't work because default location is now set to /run/media/$HOME/$LABEL by udisks2
Error: mount point /run/media/donnie/wd is not below /media/
Failed to umount device /dev/sdb1 : error 4
I am trying to remove the drive safely using following method without luck.
[donnie@arch ~]$ sudo sdparm --command=sync /dev/sdb1
/dev/sdb1: WD 15EADS External 1.75
[donnie@arch ~]$ sudo sdparm --command=stop /dev/sdb1
/dev/sdb1: WD 15EADS External 1.75
[donnie@arch ~]$ sudo umount /dev/sdb1
umount: /run/media/donnie/wd: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
Last edited by donniezazen (2012-05-25 09:55:20)

Similar Messages

  • When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with pr

    When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with process id 6620 stopped the removal or ejection for the device USB\VID_05DC&PID_C75C\20131215015821328FC8.
    I am running on Windows Server 2012 R2 in Desktop Experience mode.
    Any ideas?
    Roger

    In addition to that symptom, I discovered that even though I had closed all Adobe Reader sessions, the processes kept running and used up 90%+ of my CPU.

  • My hp photosmart premium all in one keeps telling me randomly to remove my usb device.

    My HP 309 all in one Photo smart Premium Wireless Printer,gives me a remove your usb device reading .None is attached.
    I can reboot it and it goes away ; but returns later.I even connected one and removed it but it did not help.
    I also can"t get my auto feeder to work.I took it to Best Buy and he didn't know what to do either.

    Hello there! Welcome to the forums @mrsddavis ,
    I read your post about the troubles you're having with the printer telling you to "remove a USB device", when you do not have a USB device plugged into the unit. I have a couple suggestions that I hope will help you. You may have tried all of the steps to my first idea, if so move on to the second one. Also, the second step will be in a private message to you, as it cannot be posted publicly.  In regards to the ADF not working, let me know what the problem is, for example, will it pull in paper and then jam, or will it not pull paper in at all? Let me know so I can research that problem for you.
    If you are not sure how to check your forum messages this post, has instructions.
    Power reset:
    Press the Power button to turn on the product.
    With the product turned on, disconnect the power cord from the rear of the product.
    Unplug the power cord from the wall outlet.
    Wait at least 30 seconds.
    Plug the power cord back into the wall outlet.
    Reconnect the power cord to the rear of the product.
    If the product does not turn on by itself, press the Power button to turn it on.
    Ensure the printer is plugged in directly to the wall outlet, avoiding power bars and surge protectors. This ensures the printer is receiving full power and may help greatly.
    Good luck, I hope this helps
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Vista message appears - USB Device not recognized

    Hi,
    I have been getting the error messages "USB device not recognized" from Windows Vista.
    It keeps on repeating itself sporadically.
    The problem is that I do not have any USB device attach or plug to my computer.
    It happens to sometimes plugged my USB Flash key device to drop some documents on my hard drive but I immediately unplugged the device after the task is done.
    I used to have a Lexmark 1290 printer plug to my computer but since it was not working fine on Vista I have decided to unplug it and delete the peripheral in my printer manager.
    I have installed the latest Windows Vista Update, BIOS update, and all possible drivers but I still having the messages.
    Does anyone have a idea of what could be my problem?
    Thanks

    hi aladino00,
    try this:
    - connect all of your usb-devices to the notebook (printer, usb-storage)
    - use this devices once (print and copy some files)
    - then use the "safe remove of hardware" in your system tray and use the dialog to remove the usb-devices
    restart notebook (cold reboot) and test it...
    maybe there is a registry key been written that causes this behaviour...
    therefor the described routine should eliminate it and make your notebook akt correctly again...

  • Error message on ejecting USB device even when ejecting properly

    I always click on the eject symbol in Finder before removing a usb device but I usually still get the message that the device was not removed correctly and damage may occur.  I have also gotten the message when using Eject from the Menu.  Anyone else have this issue?  This has happened in 3 different OS versions, not just the new one.

    You're writing of the Sidebar on a Finder window, right? If so then, yes, that should unmount the drive. But if you have your Finder preferences set up to display drives on your Desktop, try dragging the HD icon to the Trash. It may stall for a few seconds but the drive should be properly unmounted. If you still get the 'drive was not properly ejected...' errors, I don't know what to tell you....
    Clinton

  • Internal web cam does not work and unknown usb device pops up

          I have had my Pavillion DV6 1230us laptop now for about 7 years now and it was working great untill last year. When the lap top comes out of sleep mode or I restart the computer the " unkown device" balloon pops up. I have tried the following fixes, un-installing all the usb devices and did a reboot, I removed the main battery and held the power button for 2 minutes and re-installed it , I have re-installed the webcam drivers from HP and even removed and installed  the small mother board battery with no sucess. When the " unknown device " balloon pops up I can hear an audio prompt like I am plugging and un-plugging a usb device in one of the ports but I am just watching and hearing the problem happening.

    Hey Scotman,
    The Webcam would not be listed as USB device as it is built into the Notebook. Do you have anything connected USB? What do you see in device manager for your Image devices? Here is a video on Webcam. I am not sure if anything will help you in it or not. If you remove all USB devices in the device manager and remove all USB cords from the computer the balloon should not appear on restart.
    Hope this helps.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • USB devices not recognized

    Hi!
    Recently my Satellite P105-S6147 stopped recognizing all USB devices. When a  USB device is connected, I got a popup error message saying " one of the USB devices has malfunctioned....."  I tried all the USB ports with the same result.  Then I checked the device(s) (for example Western digital external USB drive)   by connecting to a different computer and it worked without any problem.  
    I tried everything mentioned.
     Removed the battery and turned power off for a long time. Removing the USB device drives and rebooting the computer so that windows will reinstall the drivers, editing the registry etc.  nothing worked.  Then for no particular reason, I disabled the USB2 Enhanced controller-27CC in the device manager.  All of a sudden the computer recognized the WD drive and a message popped up saying "this device can perform faster...."  The computer now recognizes all the USB devices, but the problem is that they all operate at USB1 speeds.    This is real problem when transferring large files. 
    The situation now is as follows.  If I reboot the computer with enhanced controller 27cc disabled, it does not do anything when a USB device is plugged in.  Not even an error message.  I then enable the enhanced controller 27CC.  If a USB device is already connected then the device not recognized pop up message appears.  I then disable the enhanced controller 27cc and the USB device is recognized with the "device can perform faster" pop up message.
    I think the problem may be with the USB driver but I can't be sure.  The OS is Vista home premium.  Where do I get the correct USB driver?  Help with this problem is much appreciated.
    Jayantha

    If it were Windows 7, just for giggles I would try downloading and reinstalling the chipset driver
    "Intel Chipset SW Installation Utility for Windows 7 (32/64)"
    But you have Vista, and I don't see anything similar for Vista.  Back up your stuff and do a complete restore to out-of-box or upgrade it to Win7 is what I recommend.   Vista seems to be good at corrupting system files.  Plus, if you've never done a Restore, you're probably past due.  I had all kind of weirdness going on with the L505D-S6947 Win Vista after running it 3 years without wiping and reinstalling.  Doing a Restore straightend it out.
    You could also try searching the Windows Vista forum.  http://www.vistax64.com/  or wherever the 32bit one is.
    I found this w/ Google:
    http://answers.microsoft.com/en-us/windows/forum/windows_vista-hardware/windows-vista-usb-device-not...
    USB is not only data, it's power.  Back in the LX and 440BX chipset days, the first USB ports couldn't supply enough power for high-draw devices like document scanners.  The solution was to buy a powered USB hub, one that has an AC power supply.  You'd plug the USB hub into the PC, and then plug your USB devices into that.  And the AC power supply would supply the power that the motherboard couldn't.   That might be a pach, if the problem does turn out to be the motherboard itself.

  • USB devices fail to mount

    After installing 10.4.6 my USB devices fail to mount. No icons on desktop.
    If I go to Apple menu/ Apple system Profiler/ more info/ USB, they show up OK with all correct information.
    If I go to applications/ utilities/ disk utility, they do not show up so I can mount them. In fact, disk utility spins forever. Removing the USB devices, disk utlity works OK.
    Another post suggested to reset-nvram, then reset-all. Things happened, but it did not help.
    These worked fine before the update.
    I have tried each device through a hub and directly to the computer. Still no good.
    The devices are a Dazzle compact flash reader and a Nikon camera.
    Any help would be appriciated.
    G4   Mac OS X (10.4.6)  
    G4   Mac OS X (10.4.6)  
    G4   Mac OS X (10.4.6)  

    Have you tried plugging in the devices one at a time to see if the problem is with just one of them?
    If so, you may need to contact the manufacturer & see if they say it is compatible with 10.4.6 as is, or may need a firmware update, which hopefully they can provide.
    Note: when I Googled "Dazzle compact flash reader OS X" I got several hits suggesting at least one model with this description isn't very compatible with OS X, like this one.

  • Error message: "Remove USB Device from printer."

    I have an HP Photosmart 309 a All-In-One.  It is attached to my desktop computer, which utilizes the Windows XP system. I've owned the All-In-One for about three years. I do not use the All-In-One -- or this computer -- very much. (I mostly use my laptop.)
    I have not made any changes to this computer and/or All-In-One in quite some time. This error message is new. I do not have a USB device attached to the printer.  Even with the error message displayed, the All-In-One allows me to print, but it will not allow me to make a copy or scan.  How do I make this error message go away?  What's wrong with my All-In-One?  Thank you for your help!

    Hi DuckLakeSue,
    I understand that you are getting an error message to 'Remove USB Device from printer'. Follow the steps provided in this link by the PrintDoc to determine if your wireless radio has failed.
    I hope this helped, let me know.
    Thank you,
    I worked on behalf of HP.

  • Detecting removal of uninstalled usb device

    Hello,
    I have an application where I am setting a serial number in a USB device. I then remove the device from the Registry using Devcon (Devcon will not uninstall the device if it isn't plugged in). At this point I want the operator to unplug the device from the cable. My problem is that with the device uninstalled Devcon doesn't report the unplug event.
    However, Device Manager will refresh upon unplugging the device, even with it uninstalled. So something tells it to refresh. How do I tap into that?
    And I did look at this link, but couldn't get it to help me. Did I miss something there?
    http://forums.ni.com/ni/board/message?board.id=170&message.id=249567&requireLogin=False
    Tay
    Solved!
    Go to Solution.

    One of the annoying bits about URLs is that they're static, so if the target no longer exists, or has been moved, the links are no longer valid. I know the two links that I had provided in my response in that other thread are no longer valid. The first one pointed to a LAVA thread that no longer exists. LAVA had a major server failure a while back. The other link points to a project that was moved to a new location. Don't know about George's site.
    As for what to do now, one thing that you can do is to use the Windows Message Queue Library.  The example that ships with the library is pretty self-explanatory. In your case you would want to listen to the WM_DEVICECHANGE message. The readme contained within the archive lists the values for the various messages. 
    Message Edited by smercurio_fc on 04-01-2010 09:36 AM

  • Continuous USB Device Removal Messages on certain Flash Sticks since 10.5.2

    I have run into a problem with both my MacBook Air and Mac Pro since running 10.5.2, and this was not fixed in 10.5.3:
    Most Flashsticks appear to be continuously removed and replugged over 5 sec intervals. I continuously get the "Device Removal Warning." These worked before, and do not have the problem running under BootCamp on the same machine, or being assigned to VMWare. An example is an Emprex 4GB stick, which was not cheap, when bought. They also do not have issues on Dells, or Macs running tiger!
    These are plugged directly into the system, no hubs or cables in between.
    There are other brands that do not have the issue.
    Has anybody run into this? This is very annoying.
    -- Harald
    Message was edited by: HaraldS

    I'm seeing that issue with an Adata 8GB stick (www.adata.com.tw).
    That same stick works fine on my MacMini (ppc), Dell 700m, and Lenovo T60p.
    In all cases, I'm always connecting the stick directly to the systems.
    The failure happens at various times after insertion. Sometimes Finder doesn't event display the contents, sometimes I'm able to copy 20MB before the copy hangs. In all cases (dozen times) on the MacBook Air, it never worked reliably.
    The MacBook Air USB port is not (completely?) busted, as it works fine with my Maxtor OneTouch USB2.0 external disk.
    Applications -> Console shows the following messages, starting from device insertion to "Device removal" error message:
    (the rest of this post is only the console log)
    +2008-08-17 4:54:09 PM fseventsd\[26] log dir: /Volumes/JPAUSB8GB/.fseventsd getting new uuid: 5FA60CFC-8EA9-46D5-A0D5-7D20C36C64A0+
    +2008-08-17 4:54:57 PM kernel USBF: 6841.387 AppleUSBEHCI\[0x3c4e000]::Found a transaction past the completion deadline on bus 0xfd, timing out! (Addr: 3, EP: 1)+
    +2008-08-17 4:55:28 PM kernel USBF: 6872.390 AppleUSBEHCI\[0x3c4e000]::Found a transaction past the completion deadline on bus 0xfd, timing out! (Addr: 3, EP: 1)+
    +2008-08-17 4:55:34 PM kernel USBF: 6878.390 AppleUSBEHCI\[0x3c4e000]::Found a transaction which hasn't moved in 5 seconds on bus 0xfd, timing out! (Addr: 0, EP: 0)+
    +2008-08-17 4:55:37 PM kernel disk1s1: device/channel is not attached.+
    +2008-08-17 4:55:37 PM kernel 1-1D1A-4E07-90A9-34CCE9A7FD8F/tmp.0.cmpt.indexDirectory] \[FSLogMsgID 1230162260] \[FSLogMsgOrder Last]+
    +2008-08-17 4:55:37 PM kernel disk1s1: device/channel is not attached.+
    \[repeated 9 times]
    +2008-08-17 4:55:37 PM kernel disk1s1: device/channel is not attached.+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in ci_ftruncate:ftruncate(47 /Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F/tmp.0.c mpt.indexPostings, 1531) error:13+
    +2008-08-17 4:55:37 PM kernel disk1s1: device/channel is not attached.+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in ci_ftruncate:ftruncate(55 /Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F/tmp.0.c mpt.indexPositions, 4) error:13+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in ci_ftruncate:ftruncate(59 /Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F/tmp.0.c mpt.indexArrays, 70640) error:13+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in storageTruncate:ftruncate error 13+
    +2008-08-17 4:55:37 PM kernel disk1s1: device/channel is not attached.+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in ci_ftruncate:ftruncate(60 /Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F/tmp.0.c mpt.indexCompactDirectory, 8) error:13+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in ci_ftruncate:ftruncate(57 /Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F/tmp.0.c mpt.indexDirectory, 2056) error:13+
    +2008-08-17 4:55:37 PM kernel disk1s1: device/channel is not attached.+
    \[repated 6 times]
    +2008-08-17 4:55:37 PM kernel disk1s1: device/channel is not attached.+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in indexShadowFiles:open err: 13, 0.shadowIndexHead+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexGeneral in notify_lowspace:low space for device 234881028 (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)+
    +2008-08-17 4:55:37 PM kernel disk1s1: device/channel is not attached.+
    +2008-08-17 4:55:37 PM mds\[20] (Error) Volume: LOW DISK SPACE device:234881028+
    +2008-08-17 4:55:37 PM kernel ] \[ErrType IO] \[ErrNo 13] \[IOType Read] \[PBlkNum 31824] \[LBlkNum 31824] \[FSLogMsgID 368749274] \[FSLogMsgOrder First]+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in index_compact:open err: 13, tmp.0.cmpt.indexHead+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in ci_ftruncate:ftruncate(57 /Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F/tmp.0.c mpt.indexDirectory, 0) error:13+
    +2008-08-17 4:55:37 PM kernel kNum 31040] \[FSLogMsgID 454989150] \[FSLogMsgOrder First]+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in ci_ftruncate:ftruncate(60 /Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F/tmp.0.c mpt.indexCompactDirectory, 0) error:13+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in ci_ftruncate:ftruncate(59 /Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F/tmp.0.c mpt.indexArrays, 0) error:13+
    +2008-08-17 4:55:37 PM kernel disk1s1: device/channel is not attached.+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in ci_ftruncate:ftruncate(47 /Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F/tmp.0.c mpt.indexPostings, 0) error:13+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in ci_ftruncate:ftruncate(55 /Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F/tmp.0.c mpt.indexPositions, 0) error:13+
    +2008-08-17 4:55:37 PM mds\[20] (/Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F)(Error) IndexCI in ci_ftruncate:ftruncate(64 /Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F/tmp.0.c mpt.newTermIDMap, 0) error:13+
    +2008-08-17 4:55:37 PM kernel disk1s1: device/channel is not attached.+
    +2008-08-17 4:55:37 PM mds\[20] (/)(Error) IndexGeneral in SIPersistentIDStoreCreate:Couldn't make psid store at /Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F+
    +2008-08-17 4:55:37 PM kernel disk1s1: device/channel is not attached.+
    +2008-08-17 4:55:37 PM mds\[20] (/)(Error) IndexGeneral in SIPersistentIDStoreCreate:Couldn't make psid store at /Volumes/JPAUSB8GB/.Spotlight-V100/Store-V1/Stores/BAA51F71-1D1A-4E07-90A9-34CCE9A7FD8F+
    +2008-08-17 4:55:37 PM kernel disk1s1: device/channel is not attached.+
    \[repeated 6 times]
    +2008-08-17 4:55:37 PM kernel disk1s1: device/channel is not attached.+
    +2008-08-17 4:55:40 PM kernel USBF: 6884.390 AppleUSBEHCI\[0x3c4e000]::Found a transaction which hasn't moved in 5 seconds on bus 0xfd, timing out! (Addr: 0, EP: 0)+
    \[repeated 4 times at 6sec interval]
    +2008-08-17 4:56:07 PM kernel USBF: 6911.911 \[0x3dad300] The IOUSBFamily is having trouble enumerating a USB device that has been plugged in. It will keep retrying. (Port 1 of hub @ location: 0xfd000000)+
    +2008-08-17 4:56:07 PM kernel disk1s1: media is not present.+
    \[repeated 4 times]
    +2008-08-17 4:56:07 PM kernel disk1s1: media is not present.+
    +2008-08-17 4:56:14 PM kernel USBF: 6918.393 AppleUSBEHCI\[0x3c4e000]::Found a transaction which hasn't moved in 5 seconds on bus 0xfd, timing out! (Addr: 0, EP: 0)+

  • IMac says usb device removed insecurely?

    my iMac keeps saying a usb device was removed insecurely but I'm not adding or removing anything at the time - the spurious message comes up randomly every 5 minutes or so

    Try resetting both the SMC and PRAM.
    SMC RESET
    Shut down the computer.
    Unplug the computer's power cord and all peripherals.
    Wait 15 seconds.
    Attach the computers power cable.
    Wait another 5 seconds and press the power button to turn on the computer.
    PRAM RESET
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • LAN disconnects when removing USB device.

    Hi. So I have a concern about my fairly new MSI board. Model: Z97 Guard-Pro. Sometimes when I plug/unplug a USB device from the backpanel 3.0 ports (lowest down set), my LAN will disconnect. My router connects to the mobo via an Ethernet cable which becomes disconnected. However the LAN does not disconnect when I INSERT a USB device, only SOMETIMES when disconnecting. Nevermind, it disconnects when insert and disconnect.
    I then have to remove the Ethernet cable and plug it back in for it to recognise the Ethernet device. Sometimes it wont even recognise when doing that. I have to disable the adapter in Windows 7 and the re-enable for it to recognise. What can cause this issue?

    Quote from: flobelix on 01-March-15, 19:05:06
    Does the same happen when you just just touch the lan connector?
    Just tried it now. Jiggled it left and right with some play in movement and it disconnected in Windows but that seems to be because the contacts aren't touching. Pushed it back in and it reconnected. However with the USB issue when I take the cable out and put it back in, sometimes the LAN adapter will still say disconnected. The LAN cable is not touched in any way and it will DC.

  • Detecting USB Device insertion/​removal

    Hi All,
    With reference the an earlier post by softengr (here), I'm trying to detect the USB devices while being connected.
    I'm trying to compile the same code posted by softengr, but getting some compilation error even after adding windows.h.
    I think I'm missing some header file here.
    The following are the errors during compilation;
      Undeclared identifier 'DEV_BROADCAST_DEVICEINTERFACE'.
      Undeclared identifier 'NotificationFilter'.
      Undeclared identifier 'GUID_DEVINTERFACE_USB_DEVICE'.
      Undeclared identifier 'GUID_CLASS_USB_DEVICE'.
    I'm using LabWindows/CVI 2012 with Windows7 64bit.
    Can anybody suggest waht am i doing wrong here.
    Thankyou,
    Dosth

    A search of the NI forums for "USB Event notification" returned an entry that may help you:
    Windows device event notification
    Message Edited by Phillip Brooks on 12-01-2008 06:49 AM
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Using a mtech hiface usb device with macbook air is producing a lot of static. when i touch the mac air it stops then starts when i remove my hand. Help?

    Im using a mtech hiface usb device for audio on my Mac Air. If i disconnect it from its ac and disconnect the hiface from the usb then take the Mac Air to a new location to work then return it I have an awful lot of static. im assuming its static electricity from the move or something. ive tried to ground it with my body by touching the mac air while touching something grounded. The static stops at that point but starts all over when i move my hand away from the computer. Any suggestions, could it be a setting in the USB? Thanks.

    how long have you had your ipod? mine did the same but after a while you need to get a new one because of the battery...

Maybe you are looking for