LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-24-2004, 01:58 AM   #1
Henning_1
LQ Newbie
 
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
hd spin down


hy,

i have a problem with spinning down my harddisk. I entered hdparm -s 1 /dev/hda. After five seconds the hd spins down. i takes 30 sec up to 2 minutes the hd starts again. Why doesn't the harddisk stay in suspend mode?

to reduce the tasks linux entered the runlevel 1. After that i entered ps -A and get the following tasks:

PID TTY TIME CMD
1 ? 00:00:04 init
2 ? 00:00:00 migration/0
3 ? 00:00:00 ksoftirqd/0
4 ? 00:00:00 events/0
5 ? 00:00:00 khelper
6 ? 00:00:00 kacpid
34 ? 00:00:00 kblockd/0
46 ? 00:00:00 pdflush
47 ? 00:00:00 pdflush
49 ? 00:00:00 aio/0
48 ? 00:00:00 kswapd0
141 ? 00:00:00 ata/0
144 ? 00:00:00 kseriod
200 ? 00:00:00 kjournald
388 ? 00:00:00 khubd
524 ? 00:00:00 khpsbpkt
958 ? 00:00:00 automount
1427 tty1 00:00:00 getty
1672 ? 00:00:00 sshd
1675 pts/0 00:00:00 bash
1846 pts/0 00:00:00 ps

what should i do to let the harddisk stay in suspend mode?

bye
Henning
 
Old 09-24-2004, 03:51 AM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Hard drives are designed for full on or full off. Putting them in suspend mode or sleep mode reduces their lifetime. You can put CD-ROM, ZIP, JAZ, Superdisk (LS-120), floppy dirves, sound cards, NICS, modems, video cards, capture card in sleep or suspend mode if you need to save power.

Probably your flush interval is waking up the drives. You can run sync before putting your drives in suspend or sleep mode. Next turn off automount.
 
Old 09-24-2004, 09:00 AM   #3
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
everytime the kernel flushes the buffers or some program likes to update something on the filesystem the drive will wake up. there are various tools to stop that. have a look at noflushd for ide and scsi-idle (needs a kernel-patch) for scsi-drives.
have a look into your /proc/sys/vm/ too. there (maybe) is a file called laptop_mode. if its there, write "1" to it to enable this mode. another file there is bdflush. there nr5 an nr6 are timings for writing "dirty" data to disk. they are seconds*100(Hz on i386). so raising these values will allow to delay writes too.

as electro allready mentioned your disk lifetime may get shorted by spinning the drive up and down all the time.
i like it on my servers to spin down the scsidrives and they are down for the night. on a laptop it's also quite handy to save some batterie. else i wouldn't recommend to use it.

sl mritch.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Enabling HD spin down seriesx4 Linux - Laptop and Netbook 1 11-11-2005 03:01 AM
How to spin down drives? Ook Slackware 3 06-13-2005 11:28 PM
to spin down or not to spin down, that is the question maenho Linux - Software 2 02-05-2005 08:41 AM
A new spin on Reality. bored_with_win LinuxQuestions.org Member Intro 3 01-09-2005 07:20 PM
[SOLVED] CD spin down for knoppix bucovaina78 Linux - Hardware 5 11-03-2004 09:09 AM

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

All times are GMT -5. The time now is 09:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration