On 22/07/11 15:05, Alan Stern wrote: > On Fri, 22 Jul 2011, Pádraig Brady wrote: > >> On 21/07/11 17:49, Alan Stern wrote: >>> On Thu, 21 Jul 2011, Pádraig Brady wrote: >>> >>>> On 21/07/11 15:49, Alan Stern wrote: >>>>> On Thu, 21 Jul 2011, Pádraig Brady wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I have a secondary sata disk (sda) in my system that >>>>>> I would like not to spinup on resume. >>>> >>>> >> >>> What happens if you kill all the running processes (or as many as >>> possible) before starting the suspend? >>> >>> Also, how do you initiate the suspend? Do you use a program, or do you >>> simply "echo mem >/sys/power/state"? >> >> I just rebooted with init=/bin/sh and did >> >> sdparm -r -C STOP /dev/sda >> echo 0 > /sys/block/sda/device/scsi_disk/*/manage_start_stop >> echo mem > /sys/power/state >> >> When I hit the power button to resume >> sda started spinning again :( > > I have no idea why. Unless maybe the BIOS started the drive. > > Here's another test you can try. Before starting the suspend, make > sure no filesystems are mounted on sda and do: > > echo scsi remove-single-device 0 0 0 0 >/proc/scsi/scsi > > (replace the "0 0 0 0" with the appropriate Host, Channel, ID, and LUN > values for your sda drive). This will erase all knowledge of that > drive from the kernel. If it still spins up during resume, you can be > sure the kernel isn't responsible. drive still spins up on resume. cheers, Pádraig. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html