Approve the Cookies
This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and our Privacy Policy.
OK
Index  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear  •   • Reviews
Guest
New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear  •   • Reviews
Register to forums    Log in

 
FORUMS General Gear Talk Computers 
Thread started 09 Nov 2014 (Sunday) 22:00
Search threadPrev/next
sponsored links
(this ad will go away when you log in as a registered member)

External hard drive won't eject

 
Socal82
Member
142 posts
Joined Apr 2012
     
Nov 09, 2014 22:00 |  #1

I have a mac book pro and I bought a external drive (WD My Passport) and when I go to eject it, it won't eject allow me. saying one or more programs maybe using it, however I don't have any programs that is using it.

Any ideas?




  
  LOG IN TO REPLY
Photo123abc
Member
236 posts
Likes: 13
Joined Dec 2012
Location: Finland
     
Nov 10, 2014 01:48 |  #2

Shut it down and unplug your power suply for 10s. Then restart and before doing anything try to eject it. That worked for me.


You are what you eat - I dont remember eating a photographer.

  
  LOG IN TO REPLY
c_henry
Member
124 posts
Gallery: 2 photos
Joined Jul 2011
Location: London, UK
     
Nov 10, 2014 14:42 |  #3

It's almost certainly because Mac OS hasn't written all the data to disk. It will buffer writes to the disk and after either a set period, or when it has enough data, it will write it to disk. It does it on all disk, but it's more noticeable on removable media, such as USB HDD's and USB keys (this can be tuned, but out of the box it's pretty good). So even if you've closed the application you were using down, there may still be data waiting to be written in the buffer. This is the reason why you shouldn't pull out USB data devices, you should eject them first. I know you probably know you have to eject first, but probably not why.

In the terminal run lsof on the volume, like this:

mac-mini-2:~ henryc$ lsof /Volumes/WD\ 3TB\ 1/
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Adobe\x20 1422 henryc 22u REG 1,15 1032122368 274370 /Volumes/WD 3TB 1/Lightroom/Master/Mas​ter-2-2.lrcat
Adobe\x20 1422 henryc 23u REG 1,15 5737904 389839 /Volumes/WD 3TB 1/Lightroom/Master/Mas​ter-2-2.lrcat-journal
Adobe\x20 1422 henryc 24u REG 1,15 391839744 264015 /Volumes/WD 3TB 1/Lightroom/Master/Mas​ter-2-2 Previews.lrdata/root-pixels.db
Adobe\x20 1422 henryc 25u REG 1,15 128958464 264014 /Volumes/WD 3TB 1/Lightroom/Master/Mas​ter-2-2 Previews.lrdata/previe​ws.db
Adobe\x20 1422 henryc 29r REG 1,15 107508126 393094 /Volumes/WD 3TB 1/Lightroom/2014/2014-11-08/AS2P4169-Edit.tif
Adobe\x20 1422 henryc 52r REG 1,15 107535452 393106 /Volumes/WD 3TB 1/Lightroom/2014/2014-11-08/AS2P4169-Edit-Edit.tif
Adobe\x20 1422 henryc 53r REG 1,15 107508126 393130 /Volumes/WD 3TB 1/Lightroom/2014/2014-11-08/AS2P4254-Edit.tif
Adobe\x20 1422 henryc 55r REG 1,15 107521442 393079 /Volumes/WD 3TB 1/.Trashes/501/AS2P416​9-Edit.tif
Adobe\x20 1422 henryc 57r REG 1,15 107535594 394533 /Volumes/WD 3TB 1/Lightroom/2014/2014-11-08/AS2P4296-Edit.tif
Adobe\x20 1422 henryc 58r REG 1,15 107508126 394544 /Volumes/WD 3TB 1/Lightroom/2014/2014-11-08/AS2P4296-Edit-Edit.tif
Adobe\x20 1422 henryc 59r REG 1,15 87926346 394150 /Volumes/WD 3TB 1/.Trashes/501/_106493​1-Edit.tif
Adobe\x20 1422 henryc 60r REG 1,15 107523050 394513 /Volumes/WD 3TB 1/.Trashes/501/AS2P429​6-Edit.tif
Adobe\x20 1422 henryc 61r REG 1,15 107523050 394519 /Volumes/WD 3TB 1/.Trashes/501/AS2P429​6-Edit-2.tif
Adobe\x20 1422 henryc 62r REG 1,15 87926346 394883 /Volumes/WD 3TB 1/Lightroom/2014/2014-11-06/_1064931-Edit.tif
Adobe\x20 1422 henryc 77r REG 1,15 16255264 383833 /Volumes/WD 3TB 1/Lightroom/2014/2014-11-06/_1064913.ORF
mac-mini-2:~ henryc$

Use the number in the PID column to show what program is using the file/volume, at the time I ran the command I was converting RAW/JPEG on the above device:

mac-mini-2:~ henryc$ ps -ef | grep 1422
501 1422 1 0 Fri07pm ?? 327:10.80 /Applications/Adobe Photoshop Lightroom 5.app/Contents/MacOS/A​dobe Photoshop Lightroom 5
501 1424 1422 0 Fri07pm ?? 12:25.59 /Applications/Adobe Photoshop Lightroom 5.app/Contents/Framewo​rks/AdobeCrashReporter​.framework/Required/Ad​obeCrashDaemon.app/Con​tents/MacOS/AdobeCrash​Daemon 1422 Adobe Photoshop Lightroom 5 5.6 /Applications/Adobe Photoshop Lightroom 5.app/Contents/Resourc​es/App.icns /Applications/Adobe Photoshop Lightroom 5.app/Contents/Framewo​rks/AdobeCrashReporter​.framework/Required/Ad​obe Crash Reporter.app/Contents/​MacOS/Adobe Crash Reporter 0 5.6 [974614]
501 90416 89706 0 8:30pm ttys000 0:00.00 grep 1422
mac-mini-2:~ henryc$

If you've finished with the volume and want to remove it you can run the sync command:

mac-mini-2:~ henryc$ sync
mac-mini-2:~ henryc$

I usually run it three times like (once should work, but when I was learning UNIX I read someone doing it three times so it stuck with me):

mac-mini-2:~ henryc$ sync; sync; sync
mac-mini-2:~ henryc$

I usually find doing this is enough.

Hope this helps,

Colin



  
  LOG IN TO REPLY
MalVeauX
"Looks rough and well used"
Avatar
13,343 posts
Gallery: 1716 photos
Best ofs: 4
Likes: 10809
Joined Feb 2013
Location: Florida
     
Nov 10, 2014 16:40 |  #4

Socal82 wrote in post #17262155 (external link)
I have a mac book pro and I bought a external drive (WD My Passport) and when I go to eject it, it won't eject allow me. saying one or more programs maybe using it, however I don't have any programs that is using it.

Any ideas?

Indexing, thumbnails, who knows. Just shut down and unplug it. It will be fine.

Very best,


My Flickr (external link) :: My Astrobin (external link)

  
  LOG IN TO REPLY
sponsored links
(this ad will go away when you log in as a registered member)

1,500 views & 0 likes for this thread
External hard drive won't eject
FORUMS General Gear Talk Computers 
AAA
x 1600
y 1600

Jump to forum...   •  Rules   •  Index   •  New posts   •  RTAT   •  'Best of'   •  Gallery   •  Gear   •  Reviews   •  Member list   •  Polls   •  Image rules   •  Search   •  Password reset

Not a member yet?
Register to forums
Registered members may log in to forums and access all the features: full search, image upload, follow forums, own gear list and ratings, likes, more forums, private messaging, thread follow, notifications, own gallery, all settings, view hosted photos, own reviews, see more and do more... and all is free. Don't be a stranger - register now and start posting!


COOKIES DISCLAIMER: This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and to our privacy policy.
Privacy policy and cookie usage info.


POWERED BY AMASS forum software 2.1forum software
version 2.1 /
code and design
by Pekka Saarinen ©
for photography-on-the.net

Latest registered member is amaz0nacc0untssales
1141 guests, 215 members online
Simultaneous users record so far is 15144, that happened on Nov 22, 2018

Photography-on-the.net Digital Photography Forums is the website for photographers and all who love great photos, camera and post processing techniques, gear talk, discussion and sharing. Professionals, hobbyists, newbies and those who don't even own a camera -- all are welcome regardless of skill, favourite brand, gear, gender or age. Registering and usage is free.