Joined: 07 Mar 2012 Posts: 9 Location: London, Ontario
Posted: Sun Nov 25, 2012 17:45 Post subject:
Is it necessary to move /opt and /swap partitions off the HDD (i.e.: to a flash drive) in order for this to work?
Also, along similar lines, I read something about sd-idle on the Kong Mod guide. To my linux-ignorant ears this sounds like a standard os function of linux. Without spending hours learning about hdd power management, should i be looking for the driver for my hdd enclosure that supports power management (Vantec Nextstar 3i) or should I be tweaking my dd-wrt software setup to enable spin down?
Posted: Fri Dec 09, 2016 20:54 Post subject: Noob question,how do a hell I spin down?
Hi buddies,
I am maybe to old for that and really depressed. I believe you can help me to find way out:(
So this is the story..I wanted decent router with NAS, so I bought R7000 Nighthawk. SATA drives were connected and everything worked fine with stock firmware...include spin down of the drives... unluckily netgear has some bug in their firmware, and usb drives in enclosures were loosing samba config during system init. when router reboot or power cycle.
One of them always disconnected. I had to mount again via web gui.... annoying.
So I tried DD WRT, and was able to easily setup wifi, guest wifi, usb nas samba dlna and was thinking wow thats great OS and awesome web gui!
Until I realised that drives are still active, not spining down at all and thats not good I think...
I google some info, and of course started with dd wrt wiki, where is quite wide info about USB storage, and is stated in relation with spin down:
"sudo apt-get install sdparm
sudo sdparm -a /dev/sd?"
and thats place where the pain has began:!
first command "sudo apt-get install sdparm"
bump "-sh: sudo: not found"
ah.. something has changed since times I was playing with debian in childhood. Googling several hours, I found something about OpenWRT and Optware, no other ideas lets give it try:
Enabled JFFS2 flash memory in web gui because I do not wants to use external flash. Then putty into ssh shell:
"mkdir /jffs/opt
mount --bind /jffs/opt /opt
bootstrap"
and opkg was installed, now I was able to simply install hdparm with:
"opkg install hdparm"
again short happiness,
until first command "hdparm -S 245 /dev/sda2"
bump "hdparm: ioctl 0x31f failed: Invalid argument"
oh.. whats wrong.. google told me that hdparm does not work well via USB.
so lets try sdparm, at first to install with similar command "opkg install sdparm"
bump "unknown package 'sdparm' "
am I really missing something?
I just wants to enable spin down of my drives.
I just would like to know how to make sudo;)
Thank you in advance for any clue and helpfulness!