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. > The primary disk is an SSD. > > I tried this to no avail: > > echo 0 > /sys/block/sda/device/scsi_disk/*/manage_start_stop That should have worked. It prevents sd_resume() from doing anything to the drive. Are you sure that the kernel is responsible for spinning up the drive? Maybe you have a program running in the background that does this automatically. > I can "manually" run this after each resume, but it > introduces ware and delays I would like to avoid. > > sdparm -r -C STOP /dev/sda > > Note all partitions on the disk are "noauto" in fstab, > and I would have thought the kernel wouldn't need > to BLKRRPART on resume? > > Any ideas appreciated. Try adding a dump_stack() line to drivers/scsi/sd.c:sd_start_stop_device() and see what shows up in the kernel log. Alan Stern _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm