Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Western Digital Passport USB Drive - Unmount - Spin Down
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
WildChild
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 171

PostPosted: Sun Nov 25, 2007 7:33 pm    Post subject: Western Digital Passport USB Drive - Unmount - Spin Down Reply with quote

I bought last week a WD Passport 250Gb USB hard drive. The problem I have is that when I unmount it, the drive still continues to spin... If I un plug it, I can hear a whine as the disk stop spinning fast and a violent head parking. Under Windows, if I use the "Remove hardware safely" function, the drive stop to spin and I can unplug it safely. I found that I can spin it down using "sdparm --command=stop /dev/uba1". Is there a way to automate this process when unmounting the drive with the "umount" command or with the Gnome "Unmount" function?

Thanks
_________________
Codito, Ergo Sum
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Sun Nov 25, 2007 7:46 pm    Post subject: Reply with quote

alias stopmydrive="sdparm --command=stop /dev/uba1; umount /dev/uba1"

or similar.

Also, try the "eject" command (commandline). If that works, you're golden. At least KDE auto-ejects stuff, I'm not sure if gnome does (or can...)

But remember that there's nothing wrong with a forced unplug, as long as the filesystem is synced. Remember that nowadays, all hard drives use voice coils rather than stepper motors. With a voice coil, the heads automatically instantly shoot back to sector 0 (the park position) as soon as the power is cut. Even more, the heads glide along quite a bit of air at all times while the drive is spinning - so while they're parking themselves, they are completely in midair, only touching down safely after the drive is at a halt. Any loud "clunking" noise you may hear is the heads hitting the "stop" point, which is totally safe.

AFAIK, the reason you don't hear the clunk when you "correctly" spin the drive down is that the onboard junk on the drive puts it at zero, rather than putting it as far back as it'll gos until it hits the stop.

poly-p man
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum