* Does Linux support powering down SATA drives? @ 2005-11-19 17:41 Marc Perkel 2005-11-19 19:01 ` Alan Cox 2005-11-20 0:57 ` James Courtier-Dutton 0 siblings, 2 replies; 32+ messages in thread From: Marc Perkel @ 2005-11-19 17:41 UTC (permalink / raw) To: linux-kernel Trying to save power consumption. I have a backup drive that is used only once a day to back up the main drive. So - why should I run it more that 10 minutes a day? What I'd like to do is keep it in an off state and then at night power it on, mount it up, do the backup, unmount it, and shut it down. Can I do that? ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 17:41 Does Linux support powering down SATA drives? Marc Perkel @ 2005-11-19 19:01 ` Alan Cox 2005-11-19 19:00 ` Alistair John Strachan 2005-11-20 1:54 ` Rogério Brito 2005-11-20 0:57 ` James Courtier-Dutton 1 sibling, 2 replies; 32+ messages in thread From: Alan Cox @ 2005-11-19 19:01 UTC (permalink / raw) To: Marc Perkel; +Cc: linux-kernel On Sad, 2005-11-19 at 09:41 -0800, Marc Perkel wrote: > Trying to save power consumption. I have a backup drive that is used > only once a day to back up the main drive. So - why should I run it more > that 10 minutes a day? What I'd like to do is keep it in an off state > and then at night power it on, mount it up, do the backup, unmount it, > and shut it down. Can I do that? SATA not yet, USB you could however. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 19:01 ` Alan Cox @ 2005-11-19 19:00 ` Alistair John Strachan 2005-11-19 19:14 ` Marc Perkel 2005-11-19 20:25 ` Alan Cox 2005-11-20 1:54 ` Rogério Brito 1 sibling, 2 replies; 32+ messages in thread From: Alistair John Strachan @ 2005-11-19 19:00 UTC (permalink / raw) To: Alan Cox; +Cc: Marc Perkel, linux-kernel On Saturday 19 November 2005 19:01, Alan Cox wrote: > On Sad, 2005-11-19 at 09:41 -0800, Marc Perkel wrote: > > Trying to save power consumption. I have a backup drive that is used > > only once a day to back up the main drive. So - why should I run it more > > that 10 minutes a day? What I'd like to do is keep it in an off state > > and then at night power it on, mount it up, do the backup, unmount it, > > and shut it down. Can I do that? > > SATA not yet, USB you could however. Or PATA, of course. I switch off two of my HDs 4 minutes after last use with the commands: hdparm -S 48 /dev/hde hdparm -S 48 /dev/hdg Isn't there a passthru patch in the works to let commands, such as the one required for suspend, through to a SATA device? -- Cheers, Alistair. 'No sense being pessimistic, it probably wouldn't work anyway.' Third year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 19:00 ` Alistair John Strachan @ 2005-11-19 19:14 ` Marc Perkel 2005-11-19 19:20 ` USB storage -> Oops (2.6.14.2) JaniD++ 2005-11-19 19:43 ` Does Linux support powering down SATA drives? Jeff Woods 2005-11-19 20:25 ` Alan Cox 1 sibling, 2 replies; 32+ messages in thread From: Marc Perkel @ 2005-11-19 19:14 UTC (permalink / raw) To: Alistair John Strachan; +Cc: Alan Cox, linux-kernel Alistair John Strachan wrote: >On Saturday 19 November 2005 19:01, Alan Cox wrote: > > >>On Sad, 2005-11-19 at 09:41 -0800, Marc Perkel wrote: >> >> >>>Trying to save power consumption. I have a backup drive that is used >>>only once a day to back up the main drive. So - why should I run it more >>>that 10 minutes a day? What I'd like to do is keep it in an off state >>>and then at night power it on, mount it up, do the backup, unmount it, >>>and shut it down. Can I do that? >>> >>> >>SATA not yet, USB you could however. >> >> > >Or PATA, of course. I switch off two of my HDs 4 minutes after last use with >the commands: > >hdparm -S 48 /dev/hde >hdparm -S 48 /dev/hdg > >Isn't there a passthru patch in the works to let commands, such as the one >required for suspend, through to a SATA device? > > > So - why isn't there more SATA support. Seems like this and SMART aren't supported. What's up with that? Why is SATA harder than IDE? -- Marc Perkel - marc@perkel.com Spam Filter: http://www.junkemailfilter.com My Blog: http://marc.perkel.com ^ permalink raw reply [flat|nested] 32+ messages in thread
* USB storage -> Oops (2.6.14.2) 2005-11-19 19:14 ` Marc Perkel @ 2005-11-19 19:20 ` JaniD++ 2005-11-19 19:43 ` Does Linux support powering down SATA drives? Jeff Woods 1 sibling, 0 replies; 32+ messages in thread From: JaniD++ @ 2005-11-19 19:20 UTC (permalink / raw) To: linux-kernel Hello list, I have pugged in two USB storage. 1. WD 200GB Nov 19 19:23:57 192.168.2.50 SCSI device sda: 268435455 512-byte hdwr sectors (137439 MB) (128GB???) 2. Maxtor 40GB Nov 19 19:24:02 192.168.2.50 SCSI device sdb: 80293248 512-byte hdwr sectors (41110 MB) The full log is here: (Syslog+netconsole) Nov 19 19:23:51 192.168.2.50 kernel: usb 1-3: new high speed USB device using ehci_hcd and address 2 Nov 19 19:23:51 192.168.2.50 kernel: scsi0 : SCSI emulation for USB Mass Storage devices Nov 19 19:23:56 192.168.2.50 Vendor: Nov 19 19:23:56 192.168.2.50 U Nov 19 19:23:56 192.168.2.50 S Nov 19 19:23:56 192.168.2.50 B Nov 19 19:23:56 192.168.2.50 Nov 19 19:23:56 192.168.2.50 2 Nov 19 19:23:56 192.168.2.50 . Nov 19 19:23:56 192.168.2.50 0 Nov 19 19:23:56 192.168.2.50 Nov 19 19:23:56 192.168.2.50 Model: Nov 19 19:23:56 192.168.2.50 S Nov 19 19:23:56 192.168.2.50 t Nov 19 19:23:56 192.168.2.50 o Nov 19 19:23:56 192.168.2.50 r Nov 19 19:23:56 192.168.2.50 a Nov 19 19:23:56 192.168.2.50 g Nov 19 19:23:56 192.168.2.50 e Nov 19 19:23:56 192.168.2.50 Nov 19 19:23:56 192.168.2.50 D Nov 19 19:23:56 192.168.2.50 e Nov 19 19:23:56 192.168.2.50 v Nov 19 19:23:56 192.168.2.50 i Nov 19 19:23:56 192.168.2.50 c Nov 19 19:23:56 192.168.2.50 e Nov 19 19:23:56 192.168.2.50 Nov 19 19:23:56 192.168.2.50 Nov 19 19:23:56 192.168.2.50 Rev: Nov 19 19:23:56 192.168.2.50 0 Nov 19 19:23:56 192.168.2.50 1 Nov 19 19:23:56 192.168.2.50 0 Nov 19 19:23:56 192.168.2.50 0 Nov 19 19:23:56 192.168.2.50 Nov 19 19:23:56 192.168.2.50 Type: Direct-Access Nov 19 19:23:57 192.168.2.50 ANSI SCSI revision: 00 Nov 19 19:23:57 192.168.2.50 Nov 19 19:23:57 192.168.2.50 kernel: Vendor: USB 2.0 Model: Storage Device Rev: 0100 Nov 19 19:23:57 192.168.2.50 kernel: Type: Direct-Access ANSI SCSI revision: 00 Nov 19 19:23:57 192.168.2.50 SCSI device sda: 268435455 512-byte hdwr sectors (137439 MB) Nov 19 19:23:57 192.168.2.50 sda: assuming drive cache: write through Nov 19 19:23:57 192.168.2.50 kernel: SCSI device sda: 268435455 512-byte hdwr sectors (137439 MB) Nov 19 19:23:57 192.168.2.50 kernel: sda: assuming drive cache: write through Nov 19 19:23:57 192.168.2.50 SCSI device sda: 268435455 512-byte hdwr sectors (137439 MB) Nov 19 19:23:57 192.168.2.50 sda: assuming drive cache: write through Nov 19 19:23:57 192.168.2.50 kernel: SCSI device sda: 268435455 512-byte hdwr sectors (137439 MB) Nov 19 19:23:57 192.168.2.50 kernel: sda: assuming drive cache: write through Nov 19 19:23:57 192.168.2.50 kernel: sda: sda1 sda2 Nov 19 19:23:57 192.168.2.50 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Nov 19 19:23:57 192.168.2.50 kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Nov 19 19:23:57 192.168.2.50 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 Nov 19 19:23:57 192.168.2.50 kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 Nov 19 19:23:57 192.168.2.50 kernel: usb 1-1: new high speed USB device using ehci_hcd and address 3 Nov 19 19:23:57 192.168.2.50 kernel: scsi1 : SCSI emulation for USB Mass Storage devices Nov 19 19:24:02 192.168.2.50 Vendor: Nov 19 19:24:02 192.168.2.50 U Nov 19 19:24:02 192.168.2.50 S Nov 19 19:24:02 192.168.2.50 B Nov 19 19:24:02 192.168.2.50 Nov 19 19:24:02 192.168.2.50 2 Nov 19 19:24:02 192.168.2.50 . Nov 19 19:24:02 192.168.2.50 0 Nov 19 19:24:02 192.168.2.50 Nov 19 19:24:02 192.168.2.50 Model: Nov 19 19:24:02 192.168.2.50 S Nov 19 19:24:02 192.168.2.50 t Nov 19 19:24:02 192.168.2.50 o Nov 19 19:24:02 192.168.2.50 r Nov 19 19:24:02 192.168.2.50 a Nov 19 19:24:02 192.168.2.50 g Nov 19 19:24:02 192.168.2.50 e Nov 19 19:24:02 192.168.2.50 Nov 19 19:24:02 192.168.2.50 D Nov 19 19:24:02 192.168.2.50 e Nov 19 19:24:02 192.168.2.50 v Nov 19 19:24:02 192.168.2.50 i Nov 19 19:24:02 192.168.2.50 c Nov 19 19:24:02 192.168.2.50 e Nov 19 19:24:02 192.168.2.50 Nov 19 19:24:02 192.168.2.50 Nov 19 19:24:02 192.168.2.50 Rev: Nov 19 19:24:02 192.168.2.50 0 Nov 19 19:24:02 192.168.2.50 1 Nov 19 19:24:02 192.168.2.50 last message repeated 2 times Nov 19 19:24:02 192.168.2.50 Nov 19 19:24:02 192.168.2.50 Type: Direct-Access Nov 19 19:24:02 192.168.2.50 ANSI SCSI revision: 00 Nov 19 19:24:02 192.168.2.50 Nov 19 19:24:02 192.168.2.50 SCSI device sdb: 80293248 512-byte hdwr sectors (41110 MB) Nov 19 19:24:02 192.168.2.50 sdb: assuming drive cache: write through Nov 19 19:24:02 192.168.2.50 SCSI device sdb: 80293247 512-byte hdwr sectors (41110 MB) Nov 19 19:24:02 192.168.2.50 sdb: assuming drive cache: write through Nov 19 19:24:02 192.168.2.50 kernel: Vendor: USB 2.0 Model: Storage Device Rev: 0111 Nov 19 19:24:02 192.168.2.50 kernel: Type: Direct-Access ANSI SCSI revision: 00 Nov 19 19:24:02 192.168.2.50 kernel: SCSI device sdb: 80293248 512-byte hdwr sectors (41110 MB) Nov 19 19:24:02 192.168.2.50 kernel: sdb: assuming drive cache: write through Nov 19 19:24:02 192.168.2.50 kernel: SCSI device sdb: 80293247 512-byte hdwr sectors (41110 MB) Nov 19 19:24:02 192.168.2.50 kernel: sdb: assuming drive cache: write through Nov 19 19:24:02 192.168.2.50 kernel: sdb: sdb1 Nov 19 19:24:02 192.168.2.50 Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0 Nov 19 19:24:02 192.168.2.50 kernel: Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0 Nov 19 19:24:02 192.168.2.50 Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0, type 0 Nov 19 19:24:02 192.168.2.50 kernel: Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0, type 0 Nov 19 19:24:02 192.168.2.50 Unable to handle kernel NULL pointer dereference Nov 19 19:24:02 192.168.2.50 at virtual address 00000000 Nov 19 19:24:02 192.168.2.50 printing eip: Nov 19 19:24:02 192.168.2.50 c03df86c Nov 19 19:24:02 192.168.2.50 *pde = 006d1001 Nov 19 19:24:02 192.168.2.50 Oops: 0000 [#1] Nov 19 19:24:02 192.168.2.50 SMP Nov 19 19:24:02 192.168.2.50 Nov 19 19:24:02 192.168.2.50 Modules linked in: Nov 19 19:24:02 192.168.2.50 netconsole Nov 19 19:24:02 192.168.2.50 Nov 19 19:24:02 192.168.2.50 CPU: 3 Nov 19 19:24:02 192.168.2.50 EIP: 0060:[<c03df86c>] Not tainted VLI Nov 19 19:24:02 192.168.2.50 EFLAGS: 00010286 (2.6.14.2) Nov 19 19:24:02 192.168.2.50 EIP is at scsi_run_queue+0x12/0xbc Nov 19 19:24:02 192.168.2.50 eax: 00000000 ebx: db480ca4 ecx: 00000001 edx: db480ca4 Nov 19 19:24:02 192.168.2.50 esi: f49bdb00 edi: 00000246 ebp: c35bfe88 esp: c35bfe74 Nov 19 19:24:02 192.168.2.50 ds: 007b es: 007b ss: 0068 Nov 19 19:24:02 192.168.2.50 Process ksoftirqd/3 (pid: 12, threadinfo=c35be000 task=c3550030) Nov 19 19:24:02 192.168.2.50 Nov 19 19:24:02 192.168.2.50 Stack: Nov 19 19:24:02 192.168.2.50 00000060 Nov 19 19:24:02 192.168.2.50 00000282 Nov 19 19:24:02 192.168.2.50 db480ca4 Nov 19 19:24:02 192.168.2.50 f49bdb00 Nov 19 19:24:02 192.168.2.50 00000246 Nov 19 19:24:02 192.168.2.50 c35bfe98 Nov 19 19:24:02 192.168.2.50 c03df989 Nov 19 19:24:03 192.168.2.50 db480ca4 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 e6ba79dc Nov 19 19:24:03 192.168.2.50 c35bfebc Nov 19 19:24:03 192.168.2.50 c03dfa7e Nov 19 19:24:03 192.168.2.50 f49bdb00 Nov 19 19:24:03 192.168.2.50 00000000 Nov 19 19:24:03 192.168.2.50 00000024 Nov 19 19:24:03 192.168.2.50 db480ca4 Nov 19 19:24:03 192.168.2.50 f49bdb00 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 00040000 Nov 19 19:24:03 192.168.2.50 e6ba79dc Nov 19 19:24:03 192.168.2.50 c35bff08 Nov 19 19:24:03 192.168.2.50 c03dff01 Nov 19 19:24:03 192.168.2.50 f49bdb00 Nov 19 19:24:03 192.168.2.50 00000000 Nov 19 19:24:03 192.168.2.50 00000024 Nov 19 19:24:03 192.168.2.50 00000001 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 Call Trace: Nov 19 19:24:03 192.168.2.50 [<c0103bf2>] Nov 19 19:24:03 192.168.2.50 show_stack+0x9a/0xd0 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c0103db2>] Nov 19 19:24:03 192.168.2.50 show_registers+0x16a/0x1fa Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c0103fc3>] Nov 19 19:24:03 192.168.2.50 die+0xfa/0x17c Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c05557bc>] Nov 19 19:24:03 192.168.2.50 do_page_fault+0x37c/0x6da Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c01038ab>] Nov 19 19:24:03 192.168.2.50 error_code+0x4f/0x54 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c03df989>] Nov 19 19:24:03 192.168.2.50 scsi_next_command+0x20/0x26 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c03dfa7e>] Nov 19 19:24:03 192.168.2.50 scsi_end_request+0xb6/0xf9 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c03dff01>] Nov 19 19:24:03 192.168.2.50 scsi_io_completion+0x2c0/0x4ef Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c03e0398>] Nov 19 19:24:03 192.168.2.50 scsi_generic_done+0x3b/0x47 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c03db491>] Nov 19 19:24:03 192.168.2.50 scsi_finish_command+0x83/0x97 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c03db359>] Nov 19 19:24:03 192.168.2.50 scsi_softirq+0xb8/0x134 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c0123ec2>] Nov 19 19:24:03 192.168.2.50 __do_softirq+0x72/0xdc Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c0123f63>] Nov 19 19:24:03 192.168.2.50 do_softirq+0x37/0x39 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c012447c>] Nov 19 19:24:03 192.168.2.50 ksoftirqd+0xa5/0xfa Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c01330d7>] Nov 19 19:24:03 192.168.2.50 kthread+0xb1/0xb5 Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 [<c0101145>] Nov 19 19:24:03 192.168.2.50 kernel_thread_helper+0x5/0xb Nov 19 19:24:03 192.168.2.50 Nov 19 19:24:03 192.168.2.50 Code: Nov 19 19:24:03 192.168.2.50 ff Nov 19 19:24:03 192.168.2.50 8b Nov 19 19:24:03 192.168.2.50 4d Nov 19 19:24:03 192.168.2.50 ec Nov 19 19:24:03 192.168.2.50 8b Nov 19 19:24:03 192.168.2.50 41 Nov 19 19:24:03 192.168.2.50 2c Nov 19 19:24:03 192.168.2.50 e8 Nov 19 19:24:03 192.168.2.50 bd Nov 19 19:24:03 192.168.2.50 55 Nov 19 19:24:03 192.168.2.50 17 Nov 19 19:24:03 192.168.2.50 00 Nov 19 19:24:03 192.168.2.50 89 Nov 19 19:24:03 192.168.2.50 45 Nov 19 19:24:03 192.168.2.50 f0 Nov 19 19:24:03 192.168.2.50 89 Nov 19 19:24:03 192.168.2.50 1c Nov 19 19:24:03 192.168.2.50 24 Nov 19 19:24:03 192.168.2.50 e8 Nov 19 19:24:03 192.168.2.50 51 Nov 19 19:24:03 192.168.2.50 be Nov 19 19:24:03 192.168.2.50 ff Nov 19 19:24:03 192.168.2.50 ff Nov 19 19:24:03 192.168.2.50 eb Nov 19 19:24:03 192.168.2.50 ad Nov 19 19:24:03 192.168.2.50 55 Nov 19 19:24:03 192.168.2.50 89 Nov 19 19:24:03 192.168.2.50 e5 Nov 19 19:24:03 192.168.2.50 57 Nov 19 19:24:03 192.168.2.50 56 Nov 19 19:24:03 192.168.2.50 53 Nov 19 19:24:03 192.168.2.50 83 Nov 19 19:24:03 192.168.2.50 ec Nov 19 19:24:03 192.168.2.50 08 Nov 19 19:24:03 192.168.2.50 8b Nov 19 19:24:03 192.168.2.50 55 Nov 19 19:24:03 192.168.2.50 08 Nov 19 19:24:03 192.168.2.50 8b Nov 19 19:24:03 192.168.2.50 82 Nov 19 19:24:03 192.168.2.50 ec Nov 19 19:24:03 192.168.2.50 00 Nov 19 19:24:03 192.168.2.50 last message repeated 2 times Nov 19 19:24:03 192.168.2.50 b> Nov 19 19:24:03 192.168.2.50 38 Nov 19 19:24:03 192.168.2.50 80 Nov 19 19:24:03 192.168.2.50 b8 Nov 19 19:24:03 192.168.2.50 79 Nov 19 19:24:03 192.168.2.50 01 Nov 19 19:24:03 192.168.2.50 00 Nov 19 19:24:04 192.168.2.50 last message repeated 2 times Nov 19 19:24:04 192.168.2.50 0f Nov 19 19:24:04 192.168.2.50 88 Nov 19 19:24:04 192.168.2.50 8e Nov 19 19:24:04 192.168.2.50 00 Nov 19 19:24:04 192.168.2.50 last message repeated 2 times Nov 19 19:24:04 192.168.2.50 8b Nov 19 19:24:04 192.168.2.50 47 Nov 19 19:24:04 192.168.2.50 2c Nov 19 19:24:04 192.168.2.50 e8 Nov 19 19:24:04 192.168.2.50 87 Nov 19 19:24:04 192.168.2.50 55 Nov 19 19:24:04 192.168.2.50 Nov 19 19:24:04 192.168.2.50 Nov 19 19:24:04 192.168.2.50 kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000000 Nov 19 19:24:04 192.168.2.50 kernel: printing eip: Nov 19 19:24:04 192.168.2.50 kernel: c03df86c Nov 19 19:24:04 192.168.2.50 kernel: *pde = 006d1001 Nov 19 19:24:04 192.168.2.50 kernel: Oops: 0000 [#1] Nov 19 19:24:04 192.168.2.50 kernel: SMP Nov 19 19:24:04 192.168.2.50 kernel: Modules linked in: netconsole Nov 19 19:24:04 192.168.2.50 kernel: CPU: 3 Nov 19 19:24:04 192.168.2.50 Kernel panic - not syncing: Fatal exception in interrupt Nov 19 19:24:04 192.168.2.50 kernel: EIP: 0060:[<c03df86c>] Not tainted VLI Nov 19 19:24:04 192.168.2.50 Nov 19 19:24:04 192.168.2.50 Rebooting in 5 seconds.. Thanks Janos ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 19:14 ` Marc Perkel 2005-11-19 19:20 ` USB storage -> Oops (2.6.14.2) JaniD++ @ 2005-11-19 19:43 ` Jeff Woods 1 sibling, 0 replies; 32+ messages in thread From: Jeff Woods @ 2005-11-19 19:43 UTC (permalink / raw) To: Marc Perkel; +Cc: Alistair John Strachan, Alan Cox, linux-kernel At 11:14 -0800 11/19/2005, Marc Perkel wrote: >So - why isn't there more SATA support. Seems like this and SMART >aren't supported. What's up with that? Why is SATA harder than IDE? I think it's a case of "newer" rather than "harder" (but that doesn't make it less frustrating). -- Jeff Woods <kazrak+kernel@cesmail.net> ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 19:00 ` Alistair John Strachan 2005-11-19 19:14 ` Marc Perkel @ 2005-11-19 20:25 ` Alan Cox 2005-11-19 20:21 ` Alistair John Strachan ` (3 more replies) 1 sibling, 4 replies; 32+ messages in thread From: Alan Cox @ 2005-11-19 20:25 UTC (permalink / raw) To: Alistair John Strachan; +Cc: Marc Perkel, linux-kernel On Sad, 2005-11-19 at 19:00 +0000, Alistair John Strachan wrote: > > SATA not yet, USB you could however. > > Or PATA, of course. I switch off two of my HDs 4 minutes after last use with > the commands: > > hdparm -S 48 /dev/hde > hdparm -S 48 /dev/hdg > > Isn't there a passthru patch in the works to let commands, such as the one > required for suspend, through to a SATA device? The latest kernels support command passthrough for SMART and the like but hdparm -S does not "switch off" anything. It may spin a drive down but the power consumption of 23 hours a day of "spun down" is significant, probably more than the hour it is powered up. Same as the problem with many household devices in standby that actually end up using as lot of power in their many "turned off" hours ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 20:25 ` Alan Cox @ 2005-11-19 20:21 ` Alistair John Strachan 2005-11-19 20:30 ` Ondrej Zary 2005-11-19 21:49 ` Alan Cox 2005-11-19 21:20 ` Marc Perkel ` (2 subsequent siblings) 3 siblings, 2 replies; 32+ messages in thread From: Alistair John Strachan @ 2005-11-19 20:21 UTC (permalink / raw) To: Alan Cox; +Cc: Marc Perkel, linux-kernel On Saturday 19 November 2005 20:25, Alan Cox wrote: > On Sad, 2005-11-19 at 19:00 +0000, Alistair John Strachan wrote: > > > SATA not yet, USB you could however. > > > > Or PATA, of course. I switch off two of my HDs 4 minutes after last use > > with the commands: > > > > hdparm -S 48 /dev/hde > > hdparm -S 48 /dev/hdg > > > > Isn't there a passthru patch in the works to let commands, such as the > > one required for suspend, through to a SATA device? > > The latest kernels support command passthrough for SMART and the like > but hdparm -S does not "switch off" anything. It may spin a drive down > but the power consumption of 23 hours a day of "spun down" is > significant, probably more than the hour it is powered up. Interesting. > Same as the problem with many household devices in standby that actually > end up using as lot of power in their many "turned off" hours My mistake, I was unaware of the difference between "Suspend" and (presumably) "Sleep". I've tried the latter without success on a Maxtor 120G here, does this work for anybody else (hdparm -Y)? -- Cheers, Alistair. 'No sense being pessimistic, it probably wouldn't work anyway.' Third year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 20:21 ` Alistair John Strachan @ 2005-11-19 20:30 ` Ondrej Zary 2005-11-19 21:49 ` Alan Cox 1 sibling, 0 replies; 32+ messages in thread From: Ondrej Zary @ 2005-11-19 20:30 UTC (permalink / raw) To: Alistair John Strachan; +Cc: Alan Cox, Marc Perkel, linux-kernel Alistair John Strachan wrote: > My mistake, I was unaware of the difference between "Suspend" and (presumably) > "Sleep". I've tried the latter without success on a Maxtor 120G here, does > this work for anybody else (hdparm -Y)? I've tried hdparm -Y - only once - the drive went to sleep mode and did not came back, I had to use reset button. -- Ondrej Zary ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 20:21 ` Alistair John Strachan 2005-11-19 20:30 ` Ondrej Zary @ 2005-11-19 21:49 ` Alan Cox 1 sibling, 0 replies; 32+ messages in thread From: Alan Cox @ 2005-11-19 21:49 UTC (permalink / raw) To: Alistair John Strachan; +Cc: Marc Perkel, linux-kernel On Sad, 2005-11-19 at 20:21 +0000, Alistair John Strachan wrote: > > Same as the problem with many household devices in standby that actually > > end up using as lot of power in their many "turned off" hours > > My mistake, I was unaware of the difference between "Suspend" and (presumably) > "Sleep". I've tried the latter without success on a Maxtor 120G here, does > this work for anybody else (hdparm -Y)? The power consumption situation is as true for suspend as sleep. Only pulling the plug makes that difference. At the moment the SATA layer doesn't support hot unplugging the drive which is what is really needed. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 20:25 ` Alan Cox 2005-11-19 20:21 ` Alistair John Strachan @ 2005-11-19 21:20 ` Marc Perkel 2005-11-19 23:04 ` Alistair John Strachan 2005-11-20 1:59 ` Rogério Brito 2005-11-20 23:55 ` Does Linux support powering down SATA drives? Pavel Machek 3 siblings, 1 reply; 32+ messages in thread From: Marc Perkel @ 2005-11-19 21:20 UTC (permalink / raw) To: Alan Cox; +Cc: Alistair John Strachan, linux-kernel Alan Cox wrote: >On Sad, 2005-11-19 at 19:00 +0000, Alistair John Strachan wrote: > > >>>SATA not yet, USB you could however. >>> >>> >>Or PATA, of course. I switch off two of my HDs 4 minutes after last use with >>the commands: >> >>hdparm -S 48 /dev/hde >>hdparm -S 48 /dev/hdg >> >>Isn't there a passthru patch in the works to let commands, such as the one >>required for suspend, through to a SATA device? >> >> > >The latest kernels support command passthrough for SMART and the like >but hdparm -S does not "switch off" anything. It may spin a drive down >but the power consumption of 23 hours a day of "spun down" is >significant, probably more than the hour it is powered up. > >Same as the problem with many household devices in standby that actually >end up using as lot of power in their many "turned off" hours > > I didn't actually mean totally power off. Spin down would be fine with me. Just seems like a waste to run a drive for 24 hours that is used only for 10 minutes. That drive is there so if the main drive blows I can run down to the datacenter and move one cable and be back up again. You know what's interesting is that I read somewhere that computers use as much power as 4 hoover dams can generate. And since a lit of these computer are running Linux just a few lines of code can create enough energy savings to perhaps power a small city. Kind of amazing when you think about it. SATA isn't really "new" any more. I personally consider IDE to be obsolete. Seems to me that Linux should fully support SATA to the same level as IDE drives. And I'm saying that as someone who doesn't have to actually code it. But I will leave messages of praise and thanks in this mailing list if you all catch up. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 21:20 ` Marc Perkel @ 2005-11-19 23:04 ` Alistair John Strachan 2005-11-20 7:22 ` asmith 0 siblings, 1 reply; 32+ messages in thread From: Alistair John Strachan @ 2005-11-19 23:04 UTC (permalink / raw) To: Marc Perkel; +Cc: Alan Cox, linux-kernel On Saturday 19 November 2005 21:20, Marc Perkel wrote: [snip] > > SATA isn't really "new" any more. I personally consider IDE to be > obsolete. Seems to me that Linux should fully support SATA to the same > level as IDE drives. And I'm saying that as someone who doesn't have to > actually code it. But I will leave messages of praise and thanks in this > mailing list if you all catch up. As Alan mentions in another thread, what is needed is true hotplug support, which is difficult with some controllers for which we have poor (or no) documentation. I wouldn't hold your breath. As for pass-thru standby/sleep commands, as long as the pass-thru patch got into mainline, try a very recent version of hdparm which should understand sending the ATA commands over SCSI (libata). -- Cheers, Alistair. 'No sense being pessimistic, it probably wouldn't work anyway.' Third year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 23:04 ` Alistair John Strachan @ 2005-11-20 7:22 ` asmith 2005-11-20 15:53 ` Marc Perkel ` (3 more replies) 0 siblings, 4 replies; 32+ messages in thread From: asmith @ 2005-11-20 7:22 UTC (permalink / raw) To: linux-kernel I would agree with your view on IDE becoming obsolete on hard drives, but I as yet, am not aware of any CD/DVD drives with a SATA interface. On Sat, 19 Nov 2005, Alistair John Strachan wrote: > On Saturday 19 November 2005 21:20, Marc Perkel wrote: > [snip] >> >> SATA isn't really "new" any more. I personally consider IDE to be >> obsolete. Seems to me that Linux should fully support SATA to the same >> level as IDE drives. And I'm saying that as someone who doesn't have to >> actually code it. But I will leave messages of praise and thanks in this >> mailing list if you all catch up. > > As Alan mentions in another thread, what is needed is true hotplug support, > which is difficult with some controllers for which we have poor (or no) > documentation. I wouldn't hold your breath. > > As for pass-thru standby/sleep commands, as long as the pass-thru patch got > into mainline, try a very recent version of hdparm which should understand > sending the ATA commands over SCSI (libata). > > ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-20 7:22 ` asmith @ 2005-11-20 15:53 ` Marc Perkel 2005-11-20 16:04 ` Tomasz Torcz 2005-11-20 16:08 ` Alistair John Strachan ` (2 subsequent siblings) 3 siblings, 1 reply; 32+ messages in thread From: Marc Perkel @ 2005-11-20 15:53 UTC (permalink / raw) To: asmith; +Cc: linux-kernel asmith@vtrl.co.uk wrote: > I would agree with your view on IDE becoming obsolete on hard drives, > but I as yet, am not aware of any CD/DVD drives with a SATA interface. > That's something that amazes me - why aren't there anu SATA CD/DVD drives? Seems to me that CD/DVD could have the same benifits of using a thin cable and eventually getting away from the IDE interface. Or - since there are usually plenty of USB 2 ports, why not have a CD/DVD that internally connect to USB? Another thing I've wondered about was why not build a 3 1/2 inch CD/DVD drive? There are plenty of the small disks available. Seems like a logical product to develop. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-20 15:53 ` Marc Perkel @ 2005-11-20 16:04 ` Tomasz Torcz 2005-11-20 16:07 ` Marc Perkel 0 siblings, 1 reply; 32+ messages in thread From: Tomasz Torcz @ 2005-11-20 16:04 UTC (permalink / raw) To: Marc Perkel; +Cc: asmith, linux-kernel [-- Attachment #1: Type: text/plain, Size: 671 bytes --] On Sun, Nov 20, 2005 at 07:53:49AM -0800, Marc Perkel wrote: > > > asmith@vtrl.co.uk wrote: > > >I would agree with your view on IDE becoming obsolete on hard drives, > >but I as yet, am not aware of any CD/DVD drives with a SATA interface. > > > > That's something that amazes me - why aren't there anu SATA CD/DVD > drives? Seems to me that CD/DVD could have the same benifits of using a > thin cable and eventually getting away from the IDE interface. You can rip one from an Xbox 360 :) -- Tomasz Torcz Morality must always be based on practicality. zdzichu@irc.-nie.spam-.pl -- Baron Vladimir Harkonnen [-- Attachment #2: Type: application/pgp-signature, Size: 229 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-20 16:04 ` Tomasz Torcz @ 2005-11-20 16:07 ` Marc Perkel 2005-11-20 16:17 ` Tomasz Torcz 0 siblings, 1 reply; 32+ messages in thread From: Marc Perkel @ 2005-11-20 16:07 UTC (permalink / raw) To: Tomasz Torcz; +Cc: asmith, linux-kernel Tomasz Torcz wrote: >On Sun, Nov 20, 2005 at 07:53:49AM -0800, Marc Perkel wrote: > > >>asmith@vtrl.co.uk wrote: >> >> >> >>>I would agree with your view on IDE becoming obsolete on hard drives, >>>but I as yet, am not aware of any CD/DVD drives with a SATA interface. >>> >>> >>> >>That's something that amazes me - why aren't there anu SATA CD/DVD >>drives? Seems to me that CD/DVD could have the same benifits of using a >>thin cable and eventually getting away from the IDE interface. >> >> > > You can rip one from an Xbox 360 :) > > > Oh? What does the Xbox have in it? -- Marc Perkel - marc@perkel.com Spam Filter: http://www.junkemailfilter.com My Blog: http://marc.perkel.com ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-20 16:07 ` Marc Perkel @ 2005-11-20 16:17 ` Tomasz Torcz 0 siblings, 0 replies; 32+ messages in thread From: Tomasz Torcz @ 2005-11-20 16:17 UTC (permalink / raw) To: Marc Perkel; +Cc: asmith, linux-kernel On Sun, Nov 20, 2005 at 08:07:07AM -0800, Marc Perkel wrote: > Tomasz Torcz wrote: > > >On Sun, Nov 20, 2005 at 07:53:49AM -0800, Marc Perkel wrote: > > > > > >>asmith@vtrl.co.uk wrote: > >> > >>>I would agree with your view on IDE becoming obsolete on hard drives, > >>>but I as yet, am not aware of any CD/DVD drives with a SATA interface. > >>> > >>That's something that amazes me - why aren't there anu SATA CD/DVD > >>drives? Seems to me that CD/DVD could have the same benifits of using a > >>thin cable and eventually getting away from the IDE interface. > >> > >> > > > >You can rip one from an Xbox 360 :) > > > > Oh? What does the Xbox have in it? Xbox *360* - http://www.anandtech.com/systems/showdoc.aspx?i=2610&p=4 Very thin on details, unfortunately. -- Tomasz Torcz Morality must always be based on practicality. zdzichu@irc.-nie.spam-.pl -- Baron Vladimir Harkonnen ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-20 7:22 ` asmith 2005-11-20 15:53 ` Marc Perkel @ 2005-11-20 16:08 ` Alistair John Strachan 2005-11-21 16:21 ` Rob Landley 2005-11-21 17:14 ` Jason L Tibbitts III 3 siblings, 0 replies; 32+ messages in thread From: Alistair John Strachan @ 2005-11-20 16:08 UTC (permalink / raw) To: asmith; +Cc: linux-kernel On Sunday 20 November 2005 07:22, asmith@vtrl.co.uk wrote: > I would agree with your view on IDE becoming obsolete on hard drives, but I > as yet, am not aware of any CD/DVD drives with a SATA interface. > Pioneer make a SATA DVD writer. -- Cheers, Alistair. 'No sense being pessimistic, it probably wouldn't work anyway.' Third year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-20 7:22 ` asmith 2005-11-20 15:53 ` Marc Perkel 2005-11-20 16:08 ` Alistair John Strachan @ 2005-11-21 16:21 ` Rob Landley 2005-11-21 16:51 ` Jeff Garzik 2005-11-21 17:14 ` Jason L Tibbitts III 3 siblings, 1 reply; 32+ messages in thread From: Rob Landley @ 2005-11-21 16:21 UTC (permalink / raw) To: asmith; +Cc: linux-kernel On Sunday 20 November 2005 01:22, asmith@vtrl.co.uk wrote: > I would agree with your view on IDE becoming obsolete on hard drives, but I > as yet, am not aware of any CD/DVD drives with a SATA interface. Laptops? Rob ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-21 16:21 ` Rob Landley @ 2005-11-21 16:51 ` Jeff Garzik 2005-11-21 17:34 ` Rob Landley 0 siblings, 1 reply; 32+ messages in thread From: Jeff Garzik @ 2005-11-21 16:51 UTC (permalink / raw) To: Rob Landley; +Cc: asmith, linux-kernel On Mon, Nov 21, 2005 at 10:21:21AM -0600, Rob Landley wrote: > On Sunday 20 November 2005 01:22, asmith@vtrl.co.uk wrote: > > I would agree with your view on IDE becoming obsolete on hard drives, but I > > as yet, am not aware of any CD/DVD drives with a SATA interface. > > Laptops? Laptops will likely get S/ATAPI later rather than sooner. But there are definitely S/ATAPI devices out there. Most are first generation, which means they are PATA devices with a SATA bridge (thus they appear to the end user to be SATA). Jeff ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-21 16:51 ` Jeff Garzik @ 2005-11-21 17:34 ` Rob Landley 0 siblings, 0 replies; 32+ messages in thread From: Rob Landley @ 2005-11-21 17:34 UTC (permalink / raw) To: Jeff Garzik; +Cc: asmith, linux-kernel On Monday 21 November 2005 10:51, Jeff Garzik wrote: > On Mon, Nov 21, 2005 at 10:21:21AM -0600, Rob Landley wrote: > > On Sunday 20 November 2005 01:22, asmith@vtrl.co.uk wrote: > > > I would agree with your view on IDE becoming obsolete on hard drives, > > > but I as yet, am not aware of any CD/DVD drives with a SATA interface. > > > > Laptops? > > Laptops will likely get S/ATAPI later rather than sooner. Sorry, I meant IDE isn't becoming obsolete on laptops just yet. Eventually, sure... Rob ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-20 7:22 ` asmith ` (2 preceding siblings ...) 2005-11-21 16:21 ` Rob Landley @ 2005-11-21 17:14 ` Jason L Tibbitts III 3 siblings, 0 replies; 32+ messages in thread From: Jason L Tibbitts III @ 2005-11-21 17:14 UTC (permalink / raw) To: asmith; +Cc: linux-kernel >>>>> "a" == asmith <asmith@vtrl.co.uk> writes: a> I would agree with your view on IDE becoming obsolete on hard a> drives, but I as yet, am not aware of any CD/DVD drives with a SATA a> interface. The Plextor PX-716SA is pretty common and very nice; I have one in a (Windows) gaming box I put together about six months ago. - J< ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 20:25 ` Alan Cox 2005-11-19 20:21 ` Alistair John Strachan 2005-11-19 21:20 ` Marc Perkel @ 2005-11-20 1:59 ` Rogério Brito 2005-11-20 2:09 ` resyncing broken software raid 1 Marc Perkel 2005-11-20 23:55 ` Does Linux support powering down SATA drives? Pavel Machek 3 siblings, 1 reply; 32+ messages in thread From: Rogério Brito @ 2005-11-20 1:59 UTC (permalink / raw) To: Alan Cox; +Cc: Alistair John Strachan, Marc Perkel, linux-kernel On Nov 19 2005, Alan Cox wrote: > It may spin a drive down but the power consumption of 23 hours a day > of "spun down" is significant, probably more than the hour it is > powered up. Of course, so obvious now that you point it out. Thanks, Rogério Brito. -- Rogério Brito : rbrito@ime.usp.br : http://www.ime.usp.br/~rbrito Homepage of the algorithms package : http://algorithms.berlios.de Homepage on freshmeat: http://freshmeat.net/projects/algorithms/ ^ permalink raw reply [flat|nested] 32+ messages in thread
* resyncing broken software raid 1 2005-11-20 1:59 ` Rogério Brito @ 2005-11-20 2:09 ` Marc Perkel 2005-11-20 2:23 ` Kyle Moffett 0 siblings, 1 reply; 32+ messages in thread From: Marc Perkel @ 2005-11-20 2:09 UTC (permalink / raw) To: linux-kernel OK - I must be blind but what do you do in FC4 to resync a borken raid 1 array? It's software raid. I thought it was raidhotadd but can't get that to work. What am I missig? ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: resyncing broken software raid 1 2005-11-20 2:09 ` resyncing broken software raid 1 Marc Perkel @ 2005-11-20 2:23 ` Kyle Moffett 2005-11-21 7:25 ` Jens Axboe 0 siblings, 1 reply; 32+ messages in thread From: Kyle Moffett @ 2005-11-20 2:23 UTC (permalink / raw) To: Marc Perkel; +Cc: linux-kernel On Nov 19, 2005, at 21:09:39, Marc Perkel wrote: > OK - I must be blind but what do you do in FC4 to resync a borken > raid 1 array? It's software raid. I thought it was raidhotadd but > can't get that to work. > Please create a new thread (instead of responding to a message in an existing thread) when you want to discuss a new topic. See "man mdadm" for more info, raidtools have been deprecated for a long time. Cheers, Kyle Moffett ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: resyncing broken software raid 1 2005-11-20 2:23 ` Kyle Moffett @ 2005-11-21 7:25 ` Jens Axboe 0 siblings, 0 replies; 32+ messages in thread From: Jens Axboe @ 2005-11-21 7:25 UTC (permalink / raw) To: Kyle Moffett; +Cc: Marc Perkel, linux-kernel On Sat, Nov 19 2005, Kyle Moffett wrote: > On Nov 19, 2005, at 21:09:39, Marc Perkel wrote: > > >OK - I must be blind but what do you do in FC4 to resync a borken > >raid 1 array? It's software raid. I thought it was raidhotadd but > >can't get that to work. > > > > Please create a new thread (instead of responding to a message in an > existing thread) when you want to discuss a new topic. And even better, ask in a forum appropriate to your question. Unfortunately some people have a bad habbit of posting completely off topic questions on lkml. -- Jens Axboe ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 20:25 ` Alan Cox ` (2 preceding siblings ...) 2005-11-20 1:59 ` Rogério Brito @ 2005-11-20 23:55 ` Pavel Machek 2005-11-21 8:48 ` Stefan Seyfried 3 siblings, 1 reply; 32+ messages in thread From: Pavel Machek @ 2005-11-20 23:55 UTC (permalink / raw) To: Alan Cox; +Cc: Alistair John Strachan, Marc Perkel, linux-kernel On Sat 19-11-05 20:25:07, Alan Cox wrote: > On Sad, 2005-11-19 at 19:00 +0000, Alistair John Strachan wrote: > > > SATA not yet, USB you could however. > > > > Or PATA, of course. I switch off two of my HDs 4 minutes after last use with > > the commands: > > > > hdparm -S 48 /dev/hde > > hdparm -S 48 /dev/hdg > > > > Isn't there a passthru patch in the works to let commands, such as the one > > required for suspend, through to a SATA device? > > The latest kernels support command passthrough for SMART and the like > but hdparm -S does not "switch off" anything. It may spin a drive down > but the power consumption of 23 hours a day of "spun down" is > significant, probably more than the hour it is powered up. Really? Harddrive does not contain AC/DC converters, so situation should be slightly better there, no? Pavel -- 64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-20 23:55 ` Does Linux support powering down SATA drives? Pavel Machek @ 2005-11-21 8:48 ` Stefan Seyfried 0 siblings, 0 replies; 32+ messages in thread From: Stefan Seyfried @ 2005-11-21 8:48 UTC (permalink / raw) To: Pavel Machek; +Cc: Alistair John Strachan, Marc Perkel, linux-kernel, Alan Cox Pavel Machek wrote: > On Sat 19-11-05 20:25:07, Alan Cox wrote: >> The latest kernels support command passthrough for SMART and the like >> but hdparm -S does not "switch off" anything. It may spin a drive down >> but the power consumption of 23 hours a day of "spun down" is >> significant, probably more than the hour it is powered up. > > Really? Harddrive does not contain AC/DC converters, so situation should be slightly > better there, no? it is 7.5W vs. 0.9W (idle vs standby or sleep) on a Barracuda 120GB 7200rpm desktop drive. Notebook drives are doing better: 0.65W vs 0.25W (idle vs standby) or 0.65W vs 0.1W (idle vs sleep) on some Hitachi Travelstar. Better than nothing, but pulling the plug is even better :-) -- Stefan Seyfried \ "I didn't want to write for pay. I QA / R&D Team Mobile Devices \ wanted to be paid for what I write." SUSE LINUX Products GmbH, Nürnberg \ -- Leonard Cohen ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 19:01 ` Alan Cox 2005-11-19 19:00 ` Alistair John Strachan @ 2005-11-20 1:54 ` Rogério Brito 1 sibling, 0 replies; 32+ messages in thread From: Rogério Brito @ 2005-11-20 1:54 UTC (permalink / raw) To: Alan Cox; +Cc: Marc Perkel, linux-kernel On Nov 19 2005, Alan Cox wrote: > On Sad, 2005-11-19 at 09:41 -0800, Marc Perkel wrote: > > Trying to save power consumption. > > SATA not yet, USB you could however. And what about Firewire? I see that MacOS X automatically spins down the drive when I unmount it from a Mac. Would it be possible to have this feature available for userspace (where I would think would be the proper place for the policy controlling this thing)? Thanks for any comments, Rogério Brito. -- Rogério Brito : rbrito@ime.usp.br : http://www.ime.usp.br/~rbrito Homepage of the algorithms package : http://algorithms.berlios.de Homepage on freshmeat: http://freshmeat.net/projects/algorithms/ ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-19 17:41 Does Linux support powering down SATA drives? Marc Perkel 2005-11-19 19:01 ` Alan Cox @ 2005-11-20 0:57 ` James Courtier-Dutton 2005-11-21 15:43 ` Mark Lord 1 sibling, 1 reply; 32+ messages in thread From: James Courtier-Dutton @ 2005-11-20 0:57 UTC (permalink / raw) To: Marc Perkel; +Cc: linux-kernel Marc Perkel wrote: > Trying to save power consumption. I have a backup drive that is used > only once a day to back up the main drive. So - why should I run it more > that 10 minutes a day? What I'd like to do is keep it in an off state > and then at night power it on, mount it up, do the backup, unmount it, > and shut it down. Can I do that? > Support is being added soon, I think the latest 2.6.15-rc1 supports passthru. I had to install an extra patch due to a bug where it used the same IDE device irrespective of one asking for /dev/sda or /dev/sdb I think the fix will be in rc2. hdparm -S60 works fine for me. It spins down, and therefore stay nices a cool. hdparm -y should work, and is like an immeadiate -S hdparm -Y is kind of dangerous at the moment. It powers down the drive, but will not come back unless the entire IDE bus goes through a reset. The feature to support that is called hotplug, but that is not implemented yet for SATA. So, basically, if you do hdparm -Y, you won't be able to wake it up again at the moment. At least hdparm -S60 is a start towards what you want. James ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-20 0:57 ` James Courtier-Dutton @ 2005-11-21 15:43 ` Mark Lord 2005-11-21 15:49 ` Marc Perkel 0 siblings, 1 reply; 32+ messages in thread From: Mark Lord @ 2005-11-21 15:43 UTC (permalink / raw) To: James Courtier-Dutton; +Cc: Marc Perkel, linux-kernel Yes, the hdparm -y, -Y, and -S flags all work with the passthru feature set, which is included in the 2.6.15-rc* kernels. Typical power consumption figures, from WDC SataII drives: Idle: 430mA@12VDC + 730mA@5VDC (about 8.75 watts) Standby: 20mA@12VDC + 270mA@5VDC (about 1.60 watts) Sleep: 20mA@12VDC + 250mA@5VDC (about 1.50 watts) Those are from the WDC datasheets. Cheers ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Does Linux support powering down SATA drives? 2005-11-21 15:43 ` Mark Lord @ 2005-11-21 15:49 ` Marc Perkel 0 siblings, 0 replies; 32+ messages in thread From: Marc Perkel @ 2005-11-21 15:49 UTC (permalink / raw) To: Mark Lord; +Cc: James Courtier-Dutton, linux-kernel Mark Lord wrote: > Yes, the hdparm -y, -Y, and -S flags all work with the passthru > feature set, > which is included in the 2.6.15-rc* kernels. > > Typical power consumption figures, from WDC SataII drives: > > Idle: 430mA@12VDC + 730mA@5VDC (about 8.75 watts) > Standby: 20mA@12VDC + 270mA@5VDC (about 1.60 watts) > Sleep: 20mA@12VDC + 250mA@5VDC (about 1.50 watts) > > Those are from the WDC datasheets. > > Cheers Here's maxotor specs Power Spinup (avg, watts) 28.7 Seek (avg, watts) 12.3 Idle (avg, watts) 7.0 Standby (avg, watts) 2.1 -- Marc Perkel - marc@perkel.com Spam Filter: http://www.junkemailfilter.com My Blog: http://marc.perkel.com ^ permalink raw reply [flat|nested] 32+ messages in thread
end of thread, other threads:[~2005-11-21 17:34 UTC | newest] Thread overview: 32+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-11-19 17:41 Does Linux support powering down SATA drives? Marc Perkel 2005-11-19 19:01 ` Alan Cox 2005-11-19 19:00 ` Alistair John Strachan 2005-11-19 19:14 ` Marc Perkel 2005-11-19 19:20 ` USB storage -> Oops (2.6.14.2) JaniD++ 2005-11-19 19:43 ` Does Linux support powering down SATA drives? Jeff Woods 2005-11-19 20:25 ` Alan Cox 2005-11-19 20:21 ` Alistair John Strachan 2005-11-19 20:30 ` Ondrej Zary 2005-11-19 21:49 ` Alan Cox 2005-11-19 21:20 ` Marc Perkel 2005-11-19 23:04 ` Alistair John Strachan 2005-11-20 7:22 ` asmith 2005-11-20 15:53 ` Marc Perkel 2005-11-20 16:04 ` Tomasz Torcz 2005-11-20 16:07 ` Marc Perkel 2005-11-20 16:17 ` Tomasz Torcz 2005-11-20 16:08 ` Alistair John Strachan 2005-11-21 16:21 ` Rob Landley 2005-11-21 16:51 ` Jeff Garzik 2005-11-21 17:34 ` Rob Landley 2005-11-21 17:14 ` Jason L Tibbitts III 2005-11-20 1:59 ` Rogério Brito 2005-11-20 2:09 ` resyncing broken software raid 1 Marc Perkel 2005-11-20 2:23 ` Kyle Moffett 2005-11-21 7:25 ` Jens Axboe 2005-11-20 23:55 ` Does Linux support powering down SATA drives? Pavel Machek 2005-11-21 8:48 ` Stefan Seyfried 2005-11-20 1:54 ` Rogério Brito 2005-11-20 0:57 ` James Courtier-Dutton 2005-11-21 15:43 ` Mark Lord 2005-11-21 15:49 ` Marc Perkel
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox