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 59-68°С.
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 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only
Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port
Linksys EA8500 WDS Station x2 - DD-WRT r55799
Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779
OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.
Joined: 26 Mar 2013 Posts: 1858 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.