Hdd power does not goes off after shutdown

Moderators: mdrjr, odroid

Hdd power does not goes off after shutdown

Unread postby rockla » Fri Feb 02, 2018 10:07 pm

I guess sometime back it used to disable the power as well but not the light on external USB is always on
rockla
 
Posts: 224
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: english
ODROIDs: C1,C2

Re: Hdd power does not goes off after shutdown

Unread postby odroid » Fri Feb 02, 2018 11:23 pm

Did you use "poweroff" command on terminal to shutdown your system?
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Hdd power does not goes off after shutdown

Unread postby rockla » Fri Feb 02, 2018 11:42 pm

Yes
rockla
 
Posts: 224
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: english
ODROIDs: C1,C2

Re: Hdd power does not goes off after shutdown

Unread postby odroid » Fri Feb 02, 2018 11:50 pm

Which USB device is connected to your C2 board?
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Hdd power does not goes off after shutdown

Unread postby rockla » Sat Feb 03, 2018 2:09 am

Seagate external portable 1.5 TB

I'm looking at this thread same problem viewtopic.php?f=97&t=29069&p=212639&hilit=Poweroff#p212639
rockla
 
Posts: 224
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: english
ODROIDs: C1,C2

Re: Hdd power does not goes off after shutdown

Unread postby rockla » Sat Feb 03, 2018 2:27 pm

Any help?
rockla
 
Posts: 224
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: english
ODROIDs: C1,C2

Re: Hdd power does not goes off after shutdown

Unread postby rockla » Sat Feb 03, 2018 3:22 pm

To add I also get this on my startup this is the microSD Card

[ 5.721791] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.


root@odroid64:/lib/systemd/system-shutdown# ls -lrt
total 0
rockla
 
Posts: 224
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: english
ODROIDs: C1,C2

Re: Hdd power does not goes off after shutdown

Unread postby odroid » Sun Feb 04, 2018 9:43 am

We will check it with an external HDD on Ubuntu image early next week.
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Hdd power does not goes off after shutdown

Unread postby joshua.yang » Mon Feb 05, 2018 12:15 pm

Hi @rockla,

Is there another power supplier such as a powered USB hub?
Have you tested with your desktop or laptop, not a SBC?

I've just tested with my C2 running on Ubuntu minimal and a SATA bridge from Seagate Expansion 5TB.
It does go off well after shutdown and I can hear some spin-down sound from the external HDD.
joshua.yang
 
Posts: 76
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: English
ODROIDs: XU4, XU4Q + Cloudshell2

Re: Hdd power does not goes off after shutdown

Unread postby rockla » Mon Feb 05, 2018 9:14 pm

I'm running it off USB not SATA one thing to note is earlier power used to go off after shutdown but since 4 months or so it does not
rockla
 
Posts: 224
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: english
ODROIDs: C1,C2

Re: Hdd power does not goes off after shutdown

Unread postby odroid » Mon Feb 05, 2018 9:53 pm

Something could be wrong with the corrupted rootfs on your SD.
Freshly flash the OS image again if you don't mind.
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Hdd power does not goes off after shutdown

Unread postby rockla » Tue Feb 06, 2018 5:03 pm

I'm not seeing the errors after i added the odroid.shutdown script from above link can you look at the reason why external USB HDD power does not goes off ?
rockla
 
Posts: 224
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: english
ODROIDs: C1,C2

Re: Hdd power does not goes off after shutdown

Unread postby rooted » Tue Feb 06, 2018 5:21 pm

rockla wrote:I'm not seeing the errors after i added the odroid.shutdown script from above link can you look at the reason why external USB HDD power does not goes off ?
Does it go off when connected to a PC? I have never seen an external drive power off without a switch, it will spin down and the light will change color perhaps but not go off.
User avatar
rooted
 
Posts: 5480
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Hdd power does not goes off after shutdown

Unread postby odroid » Tue Feb 06, 2018 5:26 pm

ODROID USB host ports should have no power output once the system goes power off state.
The VBUS in the USB host connector is near zero volt.

I think he is talking about the wrong power off sequence which causes the malfunction of the HDD/SSD parking.
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Hdd power does not goes off after shutdown

Unread postby rooted » Tue Feb 06, 2018 5:34 pm

rockla wrote:I guess sometime back it used to disable the power as well but not the light on external USB is always on




odroid wrote:ODROID USB host ports should have no power output once the system goes power off state.
The VBUS in the USB host connector is near zero volt.

I think he is talking about the wrong power off sequence which causes the malfunction of the HDD/SSD parking.


I could have misinterpreted, sounded like they thought the light would go off as well.
User avatar
rooted
 
Posts: 5480
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Hdd power does not goes off after shutdown

Unread postby rockla » Tue Feb 06, 2018 7:53 pm

rooted wrote:
rockla wrote:I'm not seeing the errors after i added the odroid.shutdown script from above link can you look at the reason why external USB HDD power does not goes off ?
Does it go off when connected to a PC? I have never seen an external drive power off without a switch, it will spin down and the light will change color perhaps but not go off.

Yes the light on HDD does not goes off
rockla
 
Posts: 224
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: english
ODROIDs: C1,C2

Re: Hdd power does not goes off after shutdown

Unread postby odroid » Tue Feb 06, 2018 7:57 pm

It means the shutdown process didn't finish well.
Do you have a "USB-UART kit" to monitor the power-off process?
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Hdd power does not goes off after shutdown

Unread postby rockla » Tue Feb 06, 2018 8:51 pm

Stop selling Odroid Product had enough already :lol:

Unfortunately no.

Whats these ureadahead warnings coming up ?

Code: Select all
   4.797666] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    4.807663] systemd[1]: ureadahead.service: Main process exited, code=exited, status=5/NOTINSTALLED
[    4.814791] systemd[1]: ureadahead.service: Unit entered failed state.
[    4.820740] systemd[1]: ureadahead.service: Failed with result 'exit-code'.
[    4.828014] systemd[1]: Started Remount Root and Kernel File Systems.
[    4.835579] systemd[1]: Started Nameserver information manager.
[    4.842255] systemd[1]: Started Journal Service.
[    4.961953] systemd-journald[197]: Received request to flush runtime journal from PID 1
[    5.258184] Driver for 1-wire Dallas network protocol.
[    5.269656] gpiomem-meson c8834000.gpiomem: Initialised: Registers at 0xc8834000
[    5.623128] ionvideo open
[    5.667220] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.816994] ionvideo_stop_generating!!!!
[    5.817034] ionvideo release
[    5.930116] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: errors=remount-ro
[   10.067138] libphy: stmmac-0:00 - Link is Up - 1000/Full



Can i add something in systemd which would cutt of the power ?

Here is lsusb output of external HDD
Code: Select all
Bus 001 Device 003: ID 0bc2:231a Seagate RSS LLC
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0bc2 Seagate RSS LLC
  idProduct          0x231a
  bcdDevice            7.07
  iManufacturer           1 Seagate
  iProduct                2 Expansion
  iSerial                 3 XXXXXXX
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           85
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           4
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     98
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
        Command pipe (0x01)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
        Status pipe (0x02)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
        Data-in pipe (0x03)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
        Data-out pipe (0x04)
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength           22
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000f0e
      Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat          32 micro seconds
Device Status:     0x0000
  (Bus Powered)


SmartCTL
Code: Select all
=== START OF INFORMATION SECTION ===
Device Model:     ST1500LM012-1R817G
Serial Number:    XXXXXXX
LU WWN Device Id: 5 000c50
Firmware Version: SBK2
User Capacity:    1,500,301,910,016 bytes [1.50 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Feb  6 17:27:28 2018 IST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
rockla
 
Posts: 224
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: english
ODROIDs: C1,C2

Re: Hdd power does not goes off after shutdown

Unread postby rockla » Tue Feb 06, 2018 9:42 pm

I can confirm that by running below command the led on USB HDD goes off

Code: Select all
/usr/bin/udisksctl power-off -b /dev/sda1
rockla
 
Posts: 224
Joined: Sat Dec 27, 2014 6:50 pm
languages_spoken: english
ODROIDs: C1,C2


Return to Issues

Who is online

Users browsing this forum: No registered users and 4 guests