Re: [Pkg-sysvinit-devel] Bug#644572: sysvinit: Spins disk up briefly from standby during poweroff
- To: Henrique de Moraes Holschuh <firstname.lastname@example.org>
- Cc: email@example.com, firstname.lastname@example.org
- Subject: Re: [Pkg-sysvinit-devel] Bug#644572: sysvinit: Spins disk up briefly from standby during poweroff
- From: Touko Korpela <email@example.com>
- Date: Fri, 7 Oct 2011 14:29:06 +0300
- Message-id: <20111007112906.GA25171@tiikeri.vuoristo.local>
- In-reply-to: <20111007005705.GB3618@khazad-dum.debian.net>
- References: <20111007000759.4744.75057.reportbug@lisko> <20111007005705.GB3618@khazad-dum.debian.net>
On Thu, Oct 06, 2011 at 09:57:05PM -0300, Henrique de Moraes Holschuh wrote:
> On Fri, 07 Oct 2011, Touko Korpela wrote:
> > I suspect that "-h" option that "halt" gets during poweroff is buggy and
> > shouldn't spin disks up that are already at sleep.
> Nowadays we're supposed to trust the kernel to do it right, and your disk
> should spin up only if it has crap firmware (unlikely). Unless you're using
> the deprecated "old ide" drivers (/dev/hd*), in which case all bets are off.
> Please edit /etc/init.d/halt and make it not add "-h" to the halt invocation
> (but make sure to add "sync ; sleep 5" before the halt command just in
> case). Does that fix the issue?
It doesn't make a difference. So maybe it's a kernel issue then.
Same happens with another laptop that has Hitachi HTS54502 disk, so this
issue is more common. This has a Seagate disk.
Here is some lines from kernel 3.0.0-1-amd64 (Debian 3.0.0-3) boot dmesg.
[ 1.425212] Block layer SCSI generic (bsg) driver version 0.4 loaded
[ 1.651042] SCSI subsystem initialized
[ 1.681254] ahci 0000:00:11.0: AHCI 0001.0200 32 slots 1 ports 3 Gbps 0x1
impl SATA mode
[ 1.690438] scsi0 : ahci
[ 1.690697] ata1: SATA max UDMA/133 abar m1024@0xfeb4c000 port 0xfeb4c100
[ 2.196281] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 2.504191] ata1.00: ATA-8: ST9500325AS, 0003SDM1, max UDMA/133
[ 2.504199] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[ 2.506494] ata1.00: configured for UDMA/133
[ 2.507008] scsi 0:0:0:0: Direct-Access ATA ST9500325AS
0003 PQ: 0 ANSI: 5
[ 2.517044] scsi1 : usb-storage 2-2:1.0
[ 2.518624] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500
[ 2.518751] sd 0:0:0:0: [sda] Write Protect is off
[ 2.518757] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 2.518810] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA
[ 2.548221] sda: sda1 sda2 sda3 sda4
[ 2.549024] sd 0:0:0:0: [sda] Attached SCSI disk
[ 3.650505] scsi 1:0:0:0: Direct-Access Multiple Card Reader
1.00 PQ: 0 ANSI: 0
[ 4.608143] sd 1:0:0:0: [sdb] Attached SCSI removable disk