HC1/HC2 - properly park harddisk on shutdown

neal
Posts: 225
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: Korean, English
Has thanked: 5 times
Been thanked: 16 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by neal » Mon Apr 16, 2018 11:17 am

Check the count of attribute ID is 192 before trying a reboot.
The below 117 is show us Emergency retract Cycle count.

Code: Select all

root@odroid:~# smartctl -a /dev/sda -d sat | grep "Power-Off_Retract_Count"
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       117
After reboot check the count(117) whether an increase or not.

Un4Seen
Posts: 182
Joined: Thu Apr 10, 2014 6:16 pm
languages_spoken: english, hungarian, romanian
Location: Romania
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by Un4Seen » Mon Apr 16, 2018 1:53 pm

This is what I get before reboot:

Code: Select all

root@ODROID-HC1-01:/# smartctl -a /dev/sda -d sat | grep "Power-Off_Retract_Count"
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       54
... and after reboot:

Code: Select all

root@ODROID-HC1-01:~# smartctl -a /dev/sda -d sat | grep "Power-Off_Retract_Count"
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       55
Is this good? Does the fact that the number increased represent a good or a bad thing? I'm guessing bad...

Thanks!
Last edited by Un4Seen on Mon Apr 16, 2018 1:57 pm, edited 1 time in total.

User avatar
odroid
Site Admin
Posts: 34586
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 812 times
Been thanked: 704 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by odroid » Mon Apr 16, 2018 1:57 pm

You have to check the number again after reboot.
If it doesn't increase, the storage parking is good.

Un4Seen
Posts: 182
Joined: Thu Apr 10, 2014 6:16 pm
languages_spoken: english, hungarian, romanian
Location: Romania
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by Un4Seen » Mon Apr 16, 2018 1:58 pm

Yes, sorry, I did check it again (see above). The number increased.

neal
Posts: 225
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: Korean, English
Has thanked: 5 times
Been thanked: 16 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by neal » Mon Apr 16, 2018 2:03 pm

Hi, @Un4Seen
Un4Seen wrote:Is this good? Does the fact that the number increased represent a good or a bad thing? I'm guessing bad...
This is bad.
Can you show me the result of below commands?

Code: Select all

# which hdparm
# cat /lib/systemd/system-shutdown/odroid.shutdown

Un4Seen
Posts: 182
Joined: Thu Apr 10, 2014 6:16 pm
languages_spoken: english, hungarian, romanian
Location: Romania
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by Un4Seen » Mon Apr 16, 2018 3:11 pm

"which hdparm" shows nothing (command has empty result)

Code: Select all

root@ODROID-HC1-01:~# cat /lib/systemd/system-shutdown/odroid.shutdown
#!/bin/bash
exec </dev/null </dev/null 2>/dev/null
export LANG=C LC_ALL=C

# In all cases, we want the media to be in quiescent, clean state.
sync
[ -x /sbin/mdadm ] && /sbin/mdadm --wait-clean --scan

# Function used to park all SATA disks.
function ParkDisks() {
    if [ -x /sbin/hdparm ]; then
        Wait=0
        for Dev in /sys/block/sd* ; do
            [ -e $Dev ] && /sbin/hdparm -y /dev/${Dev##*/} && Wait=5
            sleep $Wait
            echo 1 > /sys/class/block/${Dev##*/}/device/delete
        done
        sleep $Wait
    fi
}

case "$1" in
    # reboot|kexec)
        # Do not park disks when rebooting or switching kernels.
    #     ;;
    *)
        ParkDisks
        ;;
esac

User avatar
odroid
Site Admin
Posts: 34586
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 812 times
Been thanked: 704 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by odroid » Mon Apr 16, 2018 3:25 pm

Our Ubuntu image should have the hdparm by default.

Code: Select all

odroid@odroid:~$ which hdparm                                                                                                                       
/sbin/hdparm 
If not, install it via sudo apt install hdparm.

neal
Posts: 225
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: Korean, English
Has thanked: 5 times
Been thanked: 16 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by neal » Mon Apr 16, 2018 3:29 pm

Please try the command. and then try again.

Code: Select all

# sudo apt-get install hdparm
It needs the command. and I'll add at wiki.
Please let me know the result the check reboot.

Un4Seen
Posts: 182
Joined: Thu Apr 10, 2014 6:16 pm
languages_spoken: english, hungarian, romanian
Location: Romania
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by Un4Seen » Mon Apr 16, 2018 5:08 pm

Yes, oh, yes! This was the problem!

I have installed hdparm and now everything is OK. No more clack at reboot and "smartctl -a /dev/sda -d sat | grep "Power-Off_Retract_Count"" gives me the same number after reboot, it does not increase.

Thank you very much for your help!
Please add to the Wiki that hdparm has to be installed.

I have one more HDD related question with the ODROID HC1, but I don't want to pollute this thread, so I opened another one:
viewtopic.php?f=97&t=30740#p221361

User avatar
odroid
Site Admin
Posts: 34586
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 812 times
Been thanked: 704 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by odroid » Mon Apr 16, 2018 6:22 pm

The WiKi page has been updated.

fvolk
Posts: 405
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 26 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by fvolk » Tue Apr 17, 2018 1:28 am

As reported in my previous comments in Feb, the script does a proper shutdown so the counter does not increase, but a reboot still jolts the disk unnecessarily. I don't do reboots any more, I don't want to hurt my disk.

steakhutzeee
Posts: 9
Joined: Tue Apr 24, 2018 12:04 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by steakhutzeee » Wed Apr 25, 2018 5:35 am

Was just wondering about this. I should to apply the script as i read in the wiki just to be safe?

I want to install openmediavault, if this is somewhat relevant.

Un4Seen
Posts: 182
Joined: Thu Apr 10, 2014 6:16 pm
languages_spoken: english, hungarian, romanian
Location: Romania
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by Un4Seen » Wed Apr 25, 2018 7:08 am

If your HDD clicks/clacks on reboot or shutdown, you should definitely install the script. That sound is bad!

steakhutzeee
Posts: 9
Joined: Tue Apr 24, 2018 12:04 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by steakhutzeee » Wed Apr 25, 2018 7:44 am

Un4Seen wrote:If your HDD clicks/clacks on reboot or shutdown, you should definitely install the script. That sound is bad!
Point is i don't have ODROID HC2 and my drive yet.
I'm going to buy soon...

I'll establish a NAS so i think i'll never perform a shutdown/reboot... at least manually.

This is the reason i ask.

Un4Seen
Posts: 182
Joined: Thu Apr 10, 2014 6:16 pm
languages_spoken: english, hungarian, romanian
Location: Romania
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by Un4Seen » Wed Apr 25, 2018 7:50 am

It doesn't matter if the shutdown or reboot occurs manually or triggered from software. Even with a NAS it's inevitable that it will be restarted once in a while. My opinion is this: try to restart one and listen to it. If it clicks/clacks, install the script. One click/clack is highly unlikely to hurt the drive. One of my drive went through 55 clicks/clacks before I managed to fix it and it's still running fine.

steakhutzeee
Posts: 9
Joined: Tue Apr 24, 2018 12:04 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by steakhutzeee » Wed Apr 25, 2018 10:04 pm

All right, i'll do this way :)

mcmanuf
Posts: 5
Joined: Sat Apr 28, 2018 5:03 pm
languages_spoken: english
ODROIDs: HC1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by mcmanuf » Sat Apr 28, 2018 5:15 pm

I am very unhappy that the ODroid board is killing my new seagate 5TB 2.5 SATA harddrive, in my HC1. This is really not very professional, and these kind of errors should have been discovered a very long time ago. I have found this thread by coincidence, and I cannot hear my hdd, as it is hidden away.

I mean is it not a given, that a NAS product actually does not kill your storage unit, by bad programming practice? :evil:

Anyway, the script as given by this thread and the wiki, does NOT solve the issue when the harddisk goes to sleep.

I can see that my Power-Off_Retract_Count is 467 for my few months old completely new hdd and HC1 :o

The content of the script is installed as shown in the wiki. I am running OMV3, with all updates installed.
So the script basically, just have an impact on reboot. After installing the script, the Power-Off_Retract_Count did not increase on a reboot.

HOWEVER, when the disk goes to standby, IT INCREASES. :x

Anyone can try to wake the disk by accessing it, note the Power-Off_Retract_Count, and then make the hdd go to sleep by this command

Code: Select all

sudo hdparm -y /dev/sda
Then one can try to get the Power-Off_Retract_Count again by the following command

Code: Select all

smartctl -a /dev/sda -d sat | grep "Power-Off_Retract_Count"
IT WILL HAVE INCREASED. NOT GOOD :x
Last edited by mcmanuf on Sun Apr 29, 2018 6:09 am, edited 1 time in total.

User avatar
mad_ady
Posts: 8151
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 567 times
Been thanked: 403 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by mad_ady » Sat Apr 28, 2018 6:43 pm

Just to put your mind at ease - I have a WD Green drive which came in a WD MyBook NAS which after 5 years has:

Code: Select all

193 Load_Cycle_Count        0x0032   001   001   000    Old_age   Always       -       1657343
This is because the firmware parks the heads after 8s, and in time it adds up.
I found this out when I migrated the disk to the odroid. A maximal value for that disk should not exceed 600000 (https://superuser.com/questions/840851/ ... le_rich_qa). The moral of the story is even known NAS builders can make these mistakes.

Note to self - start working on that long postponed backup strategy! :)

tkaiser
Posts: 672
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 0
Been thanked: 2 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by tkaiser » Sat Apr 28, 2018 7:34 pm

mcmanuf wrote:I can see that my Off_Retract_Count is 467 for my few months old completely new hdd and HC1 :o
So what? You're looking at the wrong attribute. Of course this value increases when sending the disk to sleep or power it off: https://kb.acronis.com/content/9127

Can you provide full smartctl output?
Last edited by tkaiser on Sat Apr 28, 2018 7:47 pm, edited 1 time in total.

tkaiser
Posts: 672
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 0
Been thanked: 2 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by tkaiser » Sat Apr 28, 2018 7:37 pm

mad_ady wrote:I have a WD Green drive which came in a WD MyBook NAS which after 5 years has:

Code: Select all

193 Load_Cycle_Count        0x0032   001   001   000    Old_age   Always       -       1657343
Same with those Drobos when WD disks are put inside and other NAS boxes too. One of the many reasons why I will never buy WD disks again :)

User avatar
mad_ady
Posts: 8151
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 567 times
Been thanked: 403 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by mad_ady » Sat Apr 28, 2018 8:50 pm

@tkaiser: offtopic, but what HDD manufacturer do you recommend for a basic home nas (nothing fancy, no scrubbing, no redundancy)?

tkaiser
Posts: 672
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 0
Been thanked: 2 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by tkaiser » Sat Apr 28, 2018 9:09 pm

mad_ady wrote:@tkaiser: offtopic, but what HDD manufacturer do you recommend for a basic home nas (nothing fancy, no scrubbing, no redundancy)?
Not a real recommendation since I usually stop testing out stuff once I'm happy with something. As 2.5" disks in SBC installations we only use Samsung (in the meantime Seagate) Spinpoint. They behave well if you tell them (spinning down when idle, no crazy load cycle count behaviour):

Code: Select all

hdparm -B 254 /dev/sda
hdparm -S 60 /dev/sda
With 3.5" disks we ended up with Seagate already years ago. But mostly SAS disks in huge ZFS filers. For lowend storage (archive or backup) we usually choose SATA disks with 5 years warranty, low active and idle consumption and good capacity/price ratio. Most probably Seagate Exos X10 today:

https://geizhals.de/?cat=hde7s&xf=958_8 ... roductlist -- Google translate version: https://translate.google.com/translate? ... edit-text=

Many people look at failure statistics (for example published by Backblaze). Me not since I'm not buying tens of thousands of disks per year (so other people's statistics are irrelevant, I prefer long warranty coverage over numbers without meaning): https://forum.openmediavault.org/index.php/Thread/19780

Edit: The Seagate 'recommendation' is only about naked disks (be it SATA or SAS). I would never buy their USB3 disk products since the USB-to-SATA bridge's firmwares are all crap. While the used ASM1153 chip is OK with original ASMedia firmware Seagate's branded version does stupid things.

fvolk
Posts: 405
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 26 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by fvolk » Sun Apr 29, 2018 3:45 am

Example from my disk, a HGST Z5K1:
specs: https://www.hgst.com/sites/default/file ... Rev1.2.pdf

page 11: 2.1 Performance Characteristics:
Load/Unload Cycles: 600,000; Controlled unload at ambient condition

page 35: 4.2.2 SMART Supported Attribute
Start/Stop Count 4
Emergency Retract Cycles 192
Load/Unload Cycles 193

Attribute 4 is counter of power on/off of drive.
Attribute 193 is "controlled" head parking of drive. Some "power saving" drives do this excessively (e.g. HGST Z5K500.B) at the cost of performance on next access - but it depends on your use case whether 600000 is a problem (when the disk is rated for (page 19) <=3120h/y use at 0.5% annual failure rate).
Attribute 192 is emergency "hard" head parking if power is lost suddenly. I have to find the reference, but it wears out the disk significantly harder than normal parking.

These attribute are usually like this, at least on all the drives I own they are -- but please consult the specifications of your drive to check.
Edit: See further below for test of Seagate drive
Last edited by fvolk on Sun Apr 29, 2018 4:46 am, edited 1 time in total.

fvolk
Posts: 405
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 26 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by fvolk » Sun Apr 29, 2018 4:03 am

Example for impact on Seagate Barracuda drive:
https://www.seagate.com/www-content/pro ... 07728a.pdf

Page 15: 2.11 Reliability
Load/Unload (U/UL) 25°C, 50% relative humidity
600,000 software-controlled power on/off cycles
20,000 hard power on/off cycle

...so emergency head parking wears out the disk 30x faster (under stable environment condition)

fvolk
Posts: 405
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 26 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by fvolk » Sun Apr 29, 2018 4:11 am

tkaiser wrote: As 2.5" disks in SBC installations we only use Samsung (in the meantime Seagate) Spinpoint. They behave well if you tell them (spinning down when idle, no crazy load cycle count behaviour):
Yes, the Samsung/Seagate Spinpoint M9T series work here also flawlessly -- for years now.
And they work great in a HC1.

fvolk
Posts: 405
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 26 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by fvolk » Sun Apr 29, 2018 4:43 am

mcmanuf wrote: new seagate 5TB 2.5 SATA harddrive, in my HC1.
I can reproduce this strange behaviour with a Seagate Backup Plus 5TB (aka a ST5000LM000 in a USB case) here, attached to a desktop PC.
Just calling repeatedly smartctl -A /dev/sdc increases Attribute 192 and 193,
there is no disk spin-down/parking between these calls.

Looking into the spec: https://www.seagate.com/www-content/pro ... 04767c.pdf
...tells us nothing, the individual SMART attributes are not listed unfortunately.

However, setting hdparm -B 255 /dev/sdX, so setting power management to disabled makes it that repeated calls to smartctl -A no longer increases attributes.
Then sending the disk to sleep with hdparm -y, reading attributes (disk spins up again), 192 and 193 increased by 1.


Observations
a) So maybe Seagate interprets 192 and 193 differently, but does not provide documentation.
b) It appears the drive's default APM level 128 does aggressive head unloading.
c) I'm still a bit suspicious as the 5TB drive model is rated 1.2A max and USB 3.0 is rated for 900mA, so they are really playing at the USB power limit with this drive
d) Running this 5TB USB drive with a Odroid C2 I had no success, I heard repeatedly "clicking" noises as if the drive had short power cuts -- and I guess my C2 power supply was barely insufficient as Odroid reported in another thread with their official supply they had no problem with such a disk and a C2.
e) As mentioned already in this thread, Seagate Backup Plus USB thingies have firmware issues --- and my own anecdotal experience confirms this. But I guess we are stuck with them when we need lots of data in small space :-(
f) Remember this is a shingled drive, so what happens if the drive is just moving its data around and power is hard cut?... I don't wanna try.

User avatar
rooted
Posts: 7744
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 720 times
Been thanked: 208 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by rooted » Sun Apr 29, 2018 5:17 am

Samsung have more comprehensive SMART attributes as well.

mcmanuf
Posts: 5
Joined: Sat Apr 28, 2018 5:03 pm
languages_spoken: english
ODROIDs: HC1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by mcmanuf » Sun Apr 29, 2018 6:39 am

tkaiser wrote:
mcmanuf wrote:I can see that my Power-Off_Retract_Count is 467 for my few months old completely new hdd and HC1 :o
So what? You're looking at the wrong attribute. Of course this value increases when sending the disk to sleep or power it off: https://kb.acronis.com/content/9127

Can you provide full smartctl output?
Sorry, but what do you mean "so what". This whole thread is about that one single parameter, and the whole thread is about that one counter going up is no good! Because it means the header was not parked correctly, which gives the clicks people are mentioning? Even user odroid himself stated that this counter going up is no good!
odroid wrote:You have to check the number again after reboot.
If it doesn't increase, the storage parking is good.

Maybe you can explain it better than odroid perhaps?

Anyway, would appreciate your/someone elses professionel insight in the full smartctl output, and see if there are some values which are of concern.

Code: Select all

root@odroidxu4:~# smartctl -a /dev/sda
smartctl 6.4 2014-10-07 r4002 [armv7l-linux-4.9.57-odroidxu4] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 2.5 5400
Device Model:     ST5000LM000-2AN170
Serial Number:    WCJ07QX8
LU WWN Device Id: 5 000c50 0aa24bc3a
Firmware Version: 0001
User Capacity:    5,000,981,078,016 bytes [5.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5526 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Apr 28 23:11:28 2018 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (    0) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 811) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x30a5) SCT Status supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   083   064   006    Pre-fail  Always       -       197691233
  3 Spin_Up_Time            0x0003   096   096   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       965
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   071   060   045    Pre-fail  Always       -       14001375
  9 Power_On_Hours          0x0032   096   096   000    Old_age   Always       -       3861 (202 141 0)
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       51
183 SATA_Downshift_Count    0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   099   000    Old_age   Always       -       4295032833
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   067   052   040    Old_age   Always       -       33 (Min/Max 32/38)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       500
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       1475
194 Temperature_Celsius     0x0022   033   048   000    Old_age   Always       -       33 (0 20 0 0 0)
195 Hardware_ECC_Recovered  0x001a   083   064   000    Old_age   Always       -       197691233
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       1004 (229 9 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       8855547151
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       1279924093
254 Free_Fall_Sensor        0x0032   100   100   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%      3670         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
mad_ady wrote:Just to put your mind at ease - I have a WD Green drive which came in a WD MyBook NAS which after 5 years has:

Code: Select all

193 Load_Cycle_Count        0x0032   001   001   000    Old_age   Always       -       1657343
This is because the firmware parks the heads after 8s, and in time it adds up.
I found this out when I migrated the disk to the odroid. A maximal value for that disk should not exceed 600000 (https://superuser.com/questions/840851/ ... le_rich_qa). The moral of the story is even known NAS builders can make these mistakes.
Thanks for the insight, however I must point out, that you are looking at the incorrect smart attribute, than the OP has stated ;) You are mentioning attribute 193, however the one people are concered about in this thread is attribute 192.
fvolk wrote:Example for impact on Seagate Barracuda drive:
https://www.seagate.com/www-content/pro ... 07728a.pdf

Page 15: 2.11 Reliability
Load/Unload (U/UL) 25°C, 50% relative humidity
600,000 software-controlled power on/off cycles
20,000 hard power on/off cycle

...so emergency head parking wears out the disk 30x faster (under stable environment condition)
Thanks for this informative information. Is is correct to assume that the 20.000 hard power on/off cycle can be linked to SMART attribute 192. And the 600,000 software-controlled power on/off cycles can be linked to SMART atribute 193?
fvolk wrote:
mcmanuf wrote: new seagate 5TB 2.5 SATA harddrive, in my HC1.
I can reproduce this strange behaviour with a Seagate Backup Plus 5TB (aka a ST5000LM000 in a USB case) here, attached to a desktop PC.
Just calling repeatedly smartctl -A /dev/sdc increases Attribute 192 and 193,
there is no disk spin-down/parking between these calls.

Looking into the spec: https://www.seagate.com/www-content/pro ... 04767c.pdf
...tells us nothing, the individual SMART attributes are not listed unfortunately.

However, setting hdparm -B 255 /dev/sdX, so setting power management to disabled makes it that repeated calls to smartctl -A no longer increases attributes.
Then sending the disk to sleep with hdparm -y, reading attributes (disk spins up again), 192 and 193 increased by 1.


Observations
a) So maybe Seagate interprets 192 and 193 differently, but does not provide documentation.
b) It appears the drive's default APM level 128 does aggressive head unloading.
c) I'm still a bit suspicious as the 5TB drive model is rated 1.2A max and USB 3.0 is rated for 900mA, so they are really playing at the USB power limit with this drive
d) Running this 5TB USB drive with a Odroid C2 I had no success, I heard repeatedly "clicking" noises as if the drive had short power cuts -- and I guess my C2 power supply was barely insufficient as Odroid reported in another thread with their official supply they had no problem with such a disk and a C2.
e) As mentioned already in this thread, Seagate Backup Plus USB thingies have firmware issues --- and my own anecdotal experience confirms this. But I guess we are stuck with them when we need lots of data in small space :-(
f) Remember this is a shingled drive, so what happens if the drive is just moving its data around and power is hard cut?... I don't wanna try.
Thats some interesting observations, which to be further investigated, however I believe someone else has mentioned that usb-sata interface is crappy on the seagate enclosure. Maybe it will be better for you to ditch the original seagate usb3-sata enclosure and replace it with 3rd party, if it will be more gentle on the disk?

fvolk
Posts: 405
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 26 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by fvolk » Sun Apr 29, 2018 7:18 am

mcmanuf wrote: Thanks for this informative information. Is is correct to assume that the 20.000 hard power on/off cycle can be linked to SMART attribute 192. And the 600,000 software-controlled power on/off cycles can be linked to SMART atribute 193?
I don't believe Seagate planned to constantly do hard parkings with default APM level 128 as the drives are shipped.
Or they really do this and hope all drives survive the one year warranty period?
Or they f/&$ up their firmware again?
Maybe someone can google a better documentation for Seagate Barracuda drives?
mcmanuf wrote: Maybe it will be better for you to ditch the original seagate usb3-sata enclosure and replace it with 3rd party, if it will be more gentle on the disk?
I'll fix my mounting script that when I attach the Seagate 5TB that it automatically applies -B 255, as I already do with the HGST z5k500.b disks.
The discovery today was quite accidental, I had the 5TB Seagate for quite some time now but havn't used it much for a closer evaluation so far.

tkaiser
Posts: 672
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 0
Been thanked: 2 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by tkaiser » Sun Apr 29, 2018 2:13 pm

fvolk wrote:a) So maybe Seagate interprets 192 and 193 differently, but does not provide documentation.
They do not interpret SMART attributes but they define and use them for their own needs (diagnosing RMA disks). It's a common mistake with SMART that users interpret the meaning of attributes wrongly. The majority of SMART attributes is vendor specific and the majoritfy of vendors tell everyone that they do only support their own proprietary tools (that are able to interpret data correctly) but not 3rd party tools like smartmontools.

Especially true with Seagate, they simply do not care about end users doing weird interpretations of attributes they do not understand entirely or at all, e.g. attributes 1 and 7: http://sgros.blogspot.de/2013/01/seagat ... alues.html
Last edited by tkaiser on Sun Apr 29, 2018 2:21 pm, edited 1 time in total.

tkaiser
Posts: 672
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 0
Been thanked: 2 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by tkaiser » Sun Apr 29, 2018 2:20 pm

mcmanuf wrote:Thanks for the insight, however I must point out, that you are looking at the incorrect smart attribute
Unfortunately you don't understand SMART if you're talking about 'incorrect' attributes and you also missed what @mad_ady wanted to tell you: he mentioned a real problem: A NAS box vendor called WD using HDDs from a disk vendor called WD in a way that these disks will most probably die earlier than necessary. Do a google search for 'wd lcc problem' to get what's up with attribute 193 on WD disks.

192 is vendor specific. There exist disks where 192 is related to 193 (they increase both in linear similar way since one attribute describes heads properly parked, the other heads moved back over the platters), there exist disks where 192 has to be interpreted as 'emergency parkings', there exist disks where this attribute simply tells the opposite (heads being parked correctly). It depends.

tkaiser
Posts: 672
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 0
Been thanked: 2 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by tkaiser » Sun Apr 29, 2018 2:35 pm

fvolk wrote:all drives survive the one year warranty period?
Why would anybody do this? You can buy drives with 5 years warranty (even 2.5"): https://geizhals.de/?cat=hde7s&xf=1080_ ... .5%7E960_5

Buy drives with 5 years warranty, combine them with native or PCIe attached SATA ports or when having to use USB then use good USB-to-SATA bridges, do backup. Once your drive fails, do the RMA procedure, get a new for free and start over.

gveni
Posts: 1
Joined: Mon Jun 18, 2018 9:27 pm
languages_spoken: english
ODROIDs: Odroid-HC2
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by gveni » Mon Jun 18, 2018 10:28 pm

Hi
Do any of you have experience with this script if part of the root fs is moved to sata hdd, from sdcard?
I have created a btrfs fs on /dev/sda, and creater @usr_local, and @var subvolumes to move /usr/local and /var partitions to hdd. The reason is that a compiled samba ad dc is frequently writing into /usr/local/samba/var/.. folders.
Everything works fine with this setup, but when I shutdown the HC2, it starts to execute the hdd park script, in the serial log I can see it is executed, and HDD is silent, then suddenly just before real power-off the HDD wakes up and I hear a big click from HDD, and then the full board is power off.
Seems like something is waking up the HDD just right after it parked.
I also see unable to unmount /usr/local and /var partitions in the log at earlier phase.

Thanks for reply.

Craigbear365
Posts: 18
Joined: Sat Apr 21, 2018 10:21 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by Craigbear365 » Tue Jul 31, 2018 2:57 am

Hi all finally got my hc2. Installed omv4.

Love the setup.
I'm wanting to install the park script but can't find the shell where I can copy and paste script.



Can anyone help guide me in right direction

klunkerbus
Posts: 9
Joined: Fri Oct 06, 2017 9:42 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by klunkerbus » Thu Oct 25, 2018 10:30 am

Am I correct to assume that this shutdown script is now incorporated into builds? If so, it might eliminate confusion and unnecessary panic if the Wiki says that.

On my HC2, I'm running OMV 4.1.12 with kernel 4.14.69-odroidxu4

which hdparm returns /sbin/hdparm

cat /lib/systemd/system-shutdown/odroid.shutdown appears to match the contents of the download script in the wiki

So, the script is already installed?

Thanks in advance

neal
Posts: 225
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: Korean, English
Has thanked: 5 times
Been thanked: 16 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by neal » Thu Oct 25, 2018 11:36 am

klunkerbus wrote:cat /lib/systemd/system-shutdown/odroid.shutdown appears to match the contents of the download script in the wiki

So, the script is already installed?
Please check with the "diff command" like this?

Code: Select all

# wget https://dn.odroid.com/5422/script/odroid.shutdown
# diff ./odroid.shutdown /lib/systemd/system-shutdown/odroid.shutdown
If they are the same, it is already installed.

discmeister
Posts: 2
Joined: Mon Dec 17, 2018 5:46 am
languages_spoken: english
ODROIDs: HC1
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by discmeister » Mon Dec 17, 2018 5:52 am

Hi all,

I've followed the instructions in the wiki page and applied the script with no errors reported. My disk is still making a huge clicking noise at either reboot or shutdown...

Any suggestions, folks? I've been playing with my HC1 and an old laptop drive but I don't want to fork out and turn it into a home server with a new 2.5in drive until I can stop this curious fault...

Discy

User avatar
odroid
Site Admin
Posts: 34586
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 812 times
Been thanked: 704 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by odroid » Tue Dec 18, 2018 3:42 pm

Check the number of missed parking counts with smartctl commands.

discmeister
Posts: 2
Joined: Mon Dec 17, 2018 5:46 am
languages_spoken: english
ODROIDs: HC1
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by discmeister » Sat Dec 22, 2018 7:21 am

Done - via a reboot and a shutdown. It increased by one every time. With the clack noise to match.

Any further suggestions, anyone? Can't believe this otherwise-terrific little bit of kit is going to fall down on this. I'm running DietPi, by the way.

Discy

User avatar
odroid
Site Admin
Posts: 34586
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 812 times
Been thanked: 704 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by odroid » Mon Dec 24, 2018 10:17 am

DietPi might have a different shutdown process.
You have to replace it with this one https://dn.odroid.com/5422/script/odroid.shutdown

FanDjango
Posts: 9
Joined: Fri Dec 01, 2017 10:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by FanDjango » Thu Feb 14, 2019 10:56 pm

On my Toshiba MK1059GSM 1TB drive, Armbian Stretch, Odroid HC1, I still got the clacking noise on reboot.

I needed to modify the script as follows:

I added:

systemctl list-jobs | egrep -q 'reboot.target.*start' && yval='Y' || yval='y'

and modified the hdparm command to use "y" or "Y" depending on reboot or shutdown:

[ -e $Dev ] && /sbin/hdparm -$yval /dev/${Dev##*/} && Wait=5

So now the script can differentiate between reboot and shutdown and act accordingly.

Note that current armbian releases already contain an odroid.shutdown script in /lib/systemd/system-shutdown courtesy of the armbian developers :D

Code: Select all

#!/bin/bash
exec </dev/null </dev/null 2>/dev/null
export LANG=C LC_ALL=C

# In all cases, we want the media to be in quiescent, clean state.
sync
[ -x /sbin/mdadm ] && /sbin/mdadm --wait-clean --scan

systemctl list-jobs | egrep -q 'reboot.target.*start' && yval='Y' || yval='y'

# Function used to park all SATA disks.
function ParkDisks() {
    if [ -x /sbin/hdparm ]; then
        Wait=0
        for Dev in /sys/block/sd* ; do
            [ -e $Dev ] && /sbin/hdparm -$yval /dev/${Dev##*/} && Wait=5
            sleep $Wait
            echo 1 > /sys/class/block/${Dev##*/}/device/delete
        done
        sleep $Wait
    fi
}

case "$1" in
    # reboot|kexec)
        # Do not park disks when rebooting or switching kernels.
    #     ;;
    *)
        ParkDisks
        ;;
esac

arbuz
Posts: 2
Joined: Tue Mar 05, 2019 5:35 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by arbuz » Tue Mar 05, 2019 5:43 am

@FanDjango

It seems that you try to differentiate between shutdown and reboot with this strange grep method, why just not depend on the parameter in the "case" switch?

But i'm trying to find a logic behind -y and -Y argument to hdparm. Can you help me with this one?

it seems that -Y will issue "deep" sleep command, that will require system to reboot if you want access to the disk back, where -y does not. But WHY should it call -Y on reboot and -y on shutdown?

FanDjango
Posts: 9
Joined: Fri Dec 01, 2017 10:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by FanDjango » Tue Mar 05, 2019 7:42 pm

@arbuz

Indeed, why?

I dunno why. Like I said:
On my Toshiba MK1059GSM 1TB drive, Armbian Stretch, Odroid HC1, I still got the clacking noise on reboot.
Firstly, I mentioned the disk drive type and manufacturer, as I believe that the behaviour of the different hdparm options will differ depending on the disk drive.

I still got the clacking noise on reboot with the original version (but not on shutdown). I then tested the capital "Y" just for the heck of it and it helped on reboot. But the clack was then back on shutdown. Hmm. So we need (for this disk) a "Y" on reboot and a "y" on shutdown. It was that simple for this specific disk drive. Others may differ in behaviour. God knows what they have coded in their firmware.

You are very right about using the "reboot" case in the switch (if it works). I will, when I have time, modify the code to go that way and experiment some more. I think I didn't look at the code further down too well :oops:

Also: In the original version, doing nothing on reboot didn't work.

Anyway, it might prompt anyone having this problem to experiment some more before giving up on this.

arbuz
Posts: 2
Joined: Tue Mar 05, 2019 5:35 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by arbuz » Thu Mar 14, 2019 6:56 pm

Thank you, now I see and understand your use case. I was curious if I just missed something important and you may have better overview on the topic and indeed your observation with your hard disk is very useful.

Magnets
Posts: 2
Joined: Tue Feb 12, 2019 2:22 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by Magnets » Fri Mar 15, 2019 8:57 am

FanDjango wrote:
Thu Feb 14, 2019 10:56 pm
On my Toshiba MK1059GSM 1TB drive, Armbian Stretch, Odroid HC1, I still got the clacking noise on reboot.

I needed to modify the script as follows:

I added:

systemctl list-jobs | egrep -q 'reboot.target.*start' && yval='Y' || yval='y'

and modified the hdparm command to use "y" or "Y" depending on reboot or shutdown:

[ -e $Dev ] && /sbin/hdparm -$yval /dev/${Dev##*/} && Wait=5

So now the script can differentiate between reboot and shutdown and act accordingly.

Note that current armbian releases already contain an odroid.shutdown script in /lib/systemd/system-shutdown courtesy of the armbian developers :D

Code: Select all

#!/bin/bash
exec </dev/null </dev/null 2>/dev/null
export LANG=C LC_ALL=C

# In all cases, we want the media to be in quiescent, clean state.
sync
[ -x /sbin/mdadm ] && /sbin/mdadm --wait-clean --scan

systemctl list-jobs | egrep -q 'reboot.target.*start' && yval='Y' || yval='y'

# Function used to park all SATA disks.
function ParkDisks() {
    if [ -x /sbin/hdparm ]; then
        Wait=0
        for Dev in /sys/block/sd* ; do
            [ -e $Dev ] && /sbin/hdparm -$yval /dev/${Dev##*/} && Wait=5
            sleep $Wait
            echo 1 > /sys/class/block/${Dev##*/}/device/delete
        done
        sleep $Wait
    fi
}

case "$1" in
    # reboot|kexec)
        # Do not park disks when rebooting or switching kernels.
    #     ;;
    *)
        ParkDisks
        ;;
esac
This script works for me where the script on the wiki doesn't (at least on shutdown)

NisseMan
Posts: 9
Joined: Tue Sep 03, 2019 11:58 pm
languages_spoken: english
ODROIDs: ODROID-N2 4GB CoreELEC Edition
Has thanked: 0
Been thanked: 0
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by NisseMan » Wed Sep 04, 2019 12:00 am

Is this "bug" still present on the HC2 sold now?

artoxxx
Posts: 14
Joined: Sat Sep 28, 2019 4:24 am
languages_spoken: english
ODROIDs: HC2
Has thanked: 0
Been thanked: 2 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by artoxxx » Tue Oct 01, 2019 7:59 pm

NisseMan wrote:
Wed Sep 04, 2019 12:00 am
Is this "bug" still present on the HC2 sold now?
Yes it is. I have an OHC2 and the scripts doesn't works

neal
Posts: 225
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: Korean, English
Has thanked: 5 times
Been thanked: 16 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by neal » Wed Oct 02, 2019 10:03 am

artoxxx wrote:
Tue Oct 01, 2019 7:59 pm
NisseMan wrote:
Wed Sep 04, 2019 12:00 am
Is this "bug" still present on the HC2 sold now?
Yes it is. I have an OHC2 and the scripts doesn't works
NisseMan wrote:
Wed Sep 04, 2019 12:00 am
Is this "bug" still present on the HC2 sold now?
Can I know that you guy's information about what is your image and kernel version on your HC2?
I think the script working well. I can test and let you know.

artoxxx
Posts: 14
Joined: Sat Sep 28, 2019 4:24 am
languages_spoken: english
ODROIDs: HC2
Has thanked: 0
Been thanked: 2 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by artoxxx » Wed Oct 02, 2019 10:26 am

neal wrote:
Wed Oct 02, 2019 10:03 am
artoxxx wrote:
Tue Oct 01, 2019 7:59 pm
NisseMan wrote:
Wed Sep 04, 2019 12:00 am
Is this "bug" still present on the HC2 sold now?
Yes it is. I have an OHC2 and the scripts doesn't works
NisseMan wrote:
Wed Sep 04, 2019 12:00 am
Is this "bug" still present on the HC2 sold now?
Can I know that you guy's information about what is your image and kernel version on your HC2?
I think the script working well. I can test and let you know.
I'm using a custom Debian image (https://drive.google.com/open?id=1Gx8Cf ... j5vbzQZdbG) made by @tobetter. Here is the topic : viewtopic.php?f=96&t=36474

My HDD is an old Toshiba and I have an Odroid HC2

Code: Select all

# uname -r
5.3.0-odroid-upstream-armmp

User avatar
tobetter
Posts: 5206
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 175 times
Been thanked: 543 times
Contact:

Re: HC1/HC2 - properly park harddisk on shutdown

Post by tobetter » Wed Oct 02, 2019 10:52 am

artoxxx wrote:
Wed Oct 02, 2019 10:26 am
neal wrote:
Wed Oct 02, 2019 10:03 am
artoxxx wrote:
Tue Oct 01, 2019 7:59 pm
NisseMan wrote:
Wed Sep 04, 2019 12:00 am
Is this "bug" still present on the HC2 sold now?
Yes it is. I have an OHC2 and the scripts doesn't works
NisseMan wrote:
Wed Sep 04, 2019 12:00 am
Is this "bug" still present on the HC2 sold now?
Can I know that you guy's information about what is your image and kernel version on your HC2?
I think the script working well. I can test and let you know.
I'm using a custom Debian image (https://drive.google.com/open?id=1Gx8Cf ... j5vbzQZdbG) made by @tobetter. Here is the topic : viewtopic.php?f=96&t=36474

My HDD is an old Toshiba and I have an Odroid HC2

Code: Select all

# uname -r
5.3.0-odroid-upstream-armmp
Probably I will need to learn how hard disk has to be managed for the shutdown. Let me talk with Neal and try it out when I am back home.

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest