View Single Post
Old May 30th, 2007   #9
clem-vangelis
5 Cups of Ubuntu
 
Join Date: Nov 2005
Beans: 16
Re: Unmount VS Eject [USB Harddrive] ?

hi guys , i have the same harddrive ( WD passport 160 gb ) i notice the sound too and my solution is to use sdparm to stop the hardrive heads , here is my script :

you'll need sdparm ( sudo aptitude install sdparm )

#!/bin/bash
WD=/dev/sdb1
sudo umount $WD
if [ $? -eq 0 ]
then
echo Stopping heads
sdparm --command=stop $WD
else
echo Unmount Failed !
fi

just replace /dev/sdb1 by your WD passport name and then your WD will shutdown silently ( like in windows
clem-vangelis is offline   Reply With Quote