LinuxQuestions.org
Help answer threads with 0 replies.
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 11-26-2006, 07:03 PM   #1
PGriffin
LQ Newbie
 
Registered: Nov 2006
Location: Can.
Distribution: FC6
Posts: 5

Rep: Reputation: 0
How to power down the HDD a la Mac OSX


Can anybody tell me if it is possible to power down an inactive HDD until.I am using Ubuntu. This is a feature that is part of the Mac OSX power management App.

thanks in advance.
 
Old 11-27-2006, 12:14 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Take a look at the man page for the hdparm command, specifically the '-S' and '-y' options.
 
Old 11-28-2006, 07:46 AM   #3
PGriffin
LQ Newbie
 
Registered: Nov 2006
Location: Can.
Distribution: FC6
Posts: 5

Original Poster
Rep: Reputation: 0
Took your suggestion, '-s' seems like the correct parameter to set. With my limited knowledge of unix I am not quite sure how to implement the command, Is there a configuration file or .... that should include this command.

Thanks for your help.

Peter
 
Old 11-28-2006, 09:26 AM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The place you want to put it is in /etc/rc.local. This file will be executed after all the services are started, but before X is started. You'll need to full qualify the path, since the environment is not setup at that point. For example:

/sbin/hdparm -S24 /dev/hda

Also, keep in mind that the parameter is '-S', not '-s'; case is important.
 
Old 12-01-2006, 07:48 AM   #5
PGriffin
LQ Newbie
 
Registered: Nov 2006
Location: Can.
Distribution: FC6
Posts: 5

Original Poster
Rep: Reputation: 0
Worked as advertised, with thanks.

P
 
  


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
Mac OSX-Like Linux? Launchpad_72 Linux - Newbie 30 02-12-2018 08:32 AM
MAC OSX on intel blackzone General 10 07-31-2006 10:21 PM
Mac OSX Server craterburnsyou Linux - Networking 5 05-24-2005 12:00 AM
Mac OSX friekman Linux - Newbie 2 08-14-2003 08:56 PM
Mac OSX 10.2 jpc82 Linux - General 14 12-03-2002 10:22 AM

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

All times are GMT -5. The time now is 02:58 AM.

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