LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-30-2003, 08:10 PM   #1
jsbush
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Rep: Reputation: 15
Powering down a harddrive when it's idle.


Is it possilbe to have your harddrive power down after x amount of time on idle?

I'm running RedHat 9.0
 
Old 10-30-2003, 10:23 PM   #2
ming0
Member
 
Registered: Jul 2003
Location: Boston
Distribution: Ubuntu: Warty & Hoary
Posts: 113

Rep: Reputation: 16
Yes, the util is called hdparm... I am sortof a newb, but I have screwed around with it--the man page is fairly thourough.

Here is a good tutorial from Oreilly.net on how to use hdparm.

Last edited by ming0; 10-30-2003 at 10:24 PM.
 
Old 10-30-2003, 10:49 PM   #3
jsbush
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
[root@dhcppc4 root]# hdparm -C /dev/sda

/dev/sda:
operation not supported on SCSI disks



I guess hdarm doesn't support SCSI drives. Any other idea's?


Thanks
 
Old 10-31-2003, 10:09 AM   #4
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Is it a SCSI disk or just a SCSI-emulated disk? If it's SCSI-emulated then point hdparm to the original ide device (/dev/hdc or whatever). If it's true SCSI then I don't know how to mess with that.
 
Old 10-31-2003, 12:33 PM   #5
jsbush
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
No it's a true scsi.

Thanks for your help though.
 
Old 11-03-2003, 08:31 AM   #6
jsbush
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Still looking for a program that will do this for SCSI drives.
 
Old 11-03-2003, 11:38 AM   #7
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
I've come across an app called scsitools. I don't know where to get an rpm. The deb package is available through the usual channels if you use debian. Have a look around www.rpm.org for it. It does these things:

scsiinfo: displays SCSI drive low-level information and modifies SCSI
drive settings,
scsidev: makes permanent SCSI LUN -> devicename connections,
scsifmt: low-level SCSI formatter,
sraw: benchmarks raw SCSI I/O rates bypassing the buffer cache,
scsistop: low-level SCSI drive start/stop program,
scsi-spin: program to manually spin up and down a SCSI device.

There's a related package that I've found. It seems to split this up into parts and not all the above is included. The link for it is: http://www.speakeasy.org/~xyzzy/scsi.html. I just typed in "hdparm scsi" into google and found it in minutes. Mind you it was a polish site that directed me to it but I'm sure there are mentions of it in english.

Btw, they seemed to mention the need for a kernel patch if you want your drive to automatically powerdown after a certain idle timeout. Not sure if this is still the case.

Last edited by adz; 11-03-2003 at 11:40 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Powering up Interface TMH Linux - Networking 3 02-26-2005 06:07 PM
Powering down SATA hard drives Dav Linux - Hardware 1 02-12-2005 09:17 AM
Powering off... daihard Linux - Software 1 12-22-2004 04:20 PM
Laptop powering down during install OldRod Fedora - Installation 1 10-06-2004 03:45 AM
How To Stop HDD Powering Down? Asificare Mandriva 7 07-05-2004 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration