Posted: Sun Feb 18, 2024 18:19 Post subject: Unmount and park HDD?
Tell me, what command will unmount and park HDDs connected to USB? If you need to turn off the power. The router is located high on the cabinet and it is difficult to use the "USB-->USB Support-->Use SES Button to Remove Drives" button.
I tried poweroff, halt and shutdown - they didn't work.
Thank you. _________________ Linksys WRT1900ACSv2
Automatically adjustable temperature, always within the range of 48-53°С.
While you can unmount the USB HDD from a script, you cannot "park" it from stock DDWRT. You would need Entware with something like hdparm installed, I believe. I do this on my Linux computer's backup drive which is a USB ext4 formatted drive. I mount via UUID to do a backup (automatically of course), it does the backup. Unmounts the drive, sets it to read only then spins it down. I wrote the script in this way in an attempt to prevent ransomware from possibly getting to my backup drive, if I were to ever contract one that is. _________________ - Linksys EA8500: I-Gateway, WAP/VAP 5ghz only. Features: VLANs, Samba, WG, Entware - r60xxx
- Linksys EA8500: 802.11s Secondary w/VLAN Trunk over 5ghz - r60xxx
- Linksys MX4300: 802.11s Primary w/VLAN Trunk over 5ghz. 2.4ghz WAP/VAP only - r60xxx
- Linksys MX4300: (WAP/VAP (7)) Multiple VLANs over single trunk port. Entware/Samba r60xxx
- Linksys MR7350: WDS Station for extended Ethernet r60xxx
- Linksys MR7500, MX8500: None in production. Just testing. r60xxx
- OSes: Fedora 40, 10 RPis (2,3,4,5), 23 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.
- Forum member #248
It is not said that it works.
There is a USB SATA bridge in the enclosures and many of these controllers do not support the pass-through of ATA commands. _________________ Quickstart guides:
Joined: 26 Mar 2013 Posts: 1884 Location: Hung Hom, Hong Kong
Posted: Mon Feb 19, 2024 14:40 Post subject: Re: Unmount and park HDD?
PavelVD wrote:
Tell me, what command will unmount and park HDDs connected to USB? If you need to turn off the power. The router is located high on the cabinet and it is difficult to use the "USB-->USB Support-->Use SES Button to Remove Drives" button.
I tried poweroff, halt and shutdown - they didn't work.
Thank you.
hdparm should be the usual suspect! Some external hard disks might have built-in inactivity timeout aka sleep.
I believe that most modern mechanical hard disks that have S.M.A.R.T. technology--which is basically all mechanical hard disks you might still be using--automatically park themselves when they lose power (using the kinetic energy stored in the platters and rotating spindle as it spins down.) Software parking an HDD is obsolete. _________________ - Netgear R7800 -- OpenWRT 23.05.2
- Cellular modem with CGNAT
- SMB NAS with multiple users and private directories.
- USB hard disk plugged into router as NAS drive.