Re: [opensuse] auto spin-down of unplugged USB drive
hdparm didn't work for my external drive, but maybe try sdparm? I needed to install the sg3 utilites to get sg_map, and then can run this command from my backup shell script ("sdc" being my backup drive) : echo Spinning down the hard drive HD=`/usr/bin/sg_map | /bin/grep sdc | /bin/awk '{print $1}'` /sbin/sdparm -C stop $HD Chris
David Haller 09/16/13 12:54 AM >>> Hello,
On Fri, 13 Sep 2013, Peter wrote:
Is there any simple policy that I can adjust somewhere to change this, without delving into tedious configs?
Try 'hdparm -y /dev/sdX' after sync and umount. -dnh -- Top 100 things you don't want the sysadmin to say: 51. YEEEHA!!! What a CRASH!!! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
Christopher Myers