Please:

See the man pages for the commands below - it looks like they
did what I wanted them to do: but obviously that doesn't mean it's
right ...

On Sun, Oct 07, 2018 at 08:16:56PM +0200, Patrick Dupre wrote:
Hello

Thank,
However, I am not sure to peak every things.
What does it mean HW-wise SW-wise? Sorry for my ignorance.
By the way.

I would like to make the hard drive sleeping.
I can use
hdparm -y /dev/sdx

seems to work here ..

or
hdparm -B 50 -S 36 /dev/sdx

the "-B 50" keeps power management being enabled: I mostly switch it
off completely: "hdparm -B 255" ("-B 254" might help switch it off, too,
occasionally).

see:
http://www.thinkwiki.org/wiki/Problem_with_hard_drive_clicking#Possible_solutions_.28Linux.29

Not sure tho' whether "-B 255" works fine with your following switch
"-S 36"

To see the status:
--------
# hdparm -B /dev/sda

/dev/sda:
APM_level      = off
-------


but I would it stays sleeping till next reboot, or that I manually
wake it up.

I've done the following here:

----------------------------
# hdparm -C /dev/sda

/dev/sda:
drive state is:  active/idle

---------------


# hdparm -S 120 -y /dev/sda

/dev/sda:
setting standby to 120 (10 minutes)
issuing standby command

----------------

Note: I don't know whether the latter setting will survive the next boot.

--------------

# smartctl -P show --nocheck=standby /dev/sda
smartctl 6.5 2016-05-07 r4318 
[x86_64-linux-4.18.7-250.vanilla.knurd.1.fc27.x86_64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

Device is in STANDBY mode, exit(2)

-----------------------

# hdparm -C /dev/sda

/dev/sda:
drive state is:  standby
----------------------

The above is valid for an internal disk.


Thanks, Patrick O'Callaghan, for the hints ...

HTH

Wolfgang
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to