How to spin off definitely hard drive

Non release banter
User avatar
Ed_P
Contributor
Contributor
Posts: 8422
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

How to spin off definitely hard drive

Post#16 by Ed_P » 14 Feb 2023, 17:06

benjibasson wrote:
14 Feb 2023, 08:59
Is it useful only for next reboot or more over for this start?
It applies only to the current boot and I believe it clears the RAM Porteus will use. I think I had a booting bug years ago and was advised to use it to debug the problem and I've used it every since. Whether it's still needed I don't know.

There are other reboot options as this link shows: Re: Unable to reboot (Post by Michele13 #33069)
Ed

benjibasson
Samurai
Samurai
Posts: 152
Joined: 06 Mar 2019, 15:14
Distribution: Arch linux

How to spin off definitely hard drive

Post#17 by benjibasson » 17 Feb 2023, 19:31

Hi,

Code: Select all

root@porteus:/home/guest# hdparm -B /dev/sda

/dev/sda:
 APM_level	= 128
hdparm -M doesn't help

Code: Select all

root@porteus:/home/guest# hdparm -M /dev/sda

/dev/sda:
 acoustic      = not supported

Do you remember witch commands tells what the system is doing (mecanicaly) on my sda drive?

User avatar
Ed_P
Contributor
Contributor
Posts: 8422
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

How to spin off definitely hard drive

Post#18 by Ed_P » 19 Feb 2023, 00:29

benjibasson wrote:
17 Feb 2023, 19:31
Do you remember witch commands tells what the system is doing
Unfortunately I do not. I'm hoping an user with a better memory than mine, or more Linux experience than me, can enlighten us. :)
Ed

benjibasson
Samurai
Samurai
Posts: 152
Joined: 06 Mar 2019, 15:14
Distribution: Arch linux

How to spin off definitely hard drive

Post#19 by benjibasson » 02 Mar 2023, 19:31

Hi, I have booted on safemode
each time the disk start I type dmesg and get

Code: Select all

[ 6039.363528] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 6039.364129] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[ 6040.845310] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[ 6040.845462] ata1.00: configured for UDMA/100
what does it mean?

every 600 secondes

Code: Select all

[ 5439.427189] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 5439.427745] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[ 5440.979228] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[ 5440.979935] ata1.00: configured for UDMA/100
[ 6039.363528] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 6039.364129] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[ 6040.845310] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[ 6040.845462] ata1.00: configured for UDMA/100
[ 6639.428290] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 6639.428892] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[ 6640.979135] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[ 6640.979366] ata1.00: configured for UDMA/100
cheers

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3961
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

How to spin off definitely hard drive

Post#20 by ncmprhnsbl » 03 Mar 2023, 01:50

archwiki for hdparm: https://wiki.archlinux.org/title/Hdparm
arch man page for hdparm: https://man.archlinux.org/man/hdparm.8
maybe:

Code: Select all

hdparm -B  (to get current powermanagement setting)
and if that shows a high number:
hdparm -B  <low number> (Values from 1 to 127 permit spin-down)
from man page:
-B Get/set Advanced Power Management feature, if the drive supports it. A low value means aggressive power management and a high value means better performance. Possible settings range from values 1 through 127 (which permit spin-down), and values 128 through 254 (which do not permit spin-down). The highest degree of power management is attained with a setting of 1, and the highest I/O performance with a setting of 254. A value of 255 tells hdparm to disable Advanced Power Management altogether on the drive (not all drives support disabling it, but most do).
or maybe something else on the man page.
be careful though, some commands can potentially damage the drive or filesystems on it !! :(
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

benjibasson
Samurai
Samurai
Posts: 152
Joined: 06 Mar 2019, 15:14
Distribution: Arch linux

How to spin off definitely hard drive

Post#21 by benjibasson » 03 Mar 2023, 11:11

@ncmprhnsbl

I always keep default APM_level = 128
When I use Porteus in copy2ram I always spin down the/dev/sda with hdparm -y ou -Y

And in normal case/dev/sda doesn't rotate while I won't mount/dev/sdax neither attempt to access files system.
More over dmessg doesn't record any line after the 60 second in exception when I access sdax partition or when I switch on an usb device...

But on the Fujitsu laptop it is always starting /dev/sda every 600 second with 4 extra entry on dmessg

Code: Select all

[ 6039.363528] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 6039.364129] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[ 6040.845310] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[ 6040.845462] ata1.00: configured for UDMA/100
What does it mean ?

Why to link up ata1 sata and say security freeze lock only on Fujitsu laptop?

Post Reply