[RESOLVED] auto turn off hard drive

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: [RESOLVED] auto turn off hard drive

Postby ldi9999 » Wed Jun 27, 2012 5:14 pm

Edit : check /var/log/*.
- Found another who run every hour and writes log: anacron (see /etc/cron.d/0hourly). Disable it.
- If you allow ssh connections from the Internet. Each connection attempt causes a log in /var/log/auth.log To avoid this, I use a nonstandard port between 49152 and 65535 for sshd.

Can you provide more detailed instructions on how to do the above? I'm not really good at Linux.
Thanks!
ldi9999
 
Posts: 59
Joined: Mon Mar 05, 2012 10:31 pm

Re: [RESOLVED] auto turn off hard drive

Postby bz31 » Wed Jun 27, 2012 8:33 pm

$this->bbcode_second_pass_quote('ldi9999', 'E')dit : check /var/log/*.
- Found another who run every hour and writes log: anacron (see /etc/cron.d/0hourly). Disable it.
- If you allow ssh connections from the Internet. Each connection attempt causes a log in /var/log/auth.log To avoid this, I use a nonstandard port between 49152 and 65535 for sshd.

Can you provide more detailed instructions on how to do the above? I'm not really good at Linux.
Thanks!


- /etc/cron.hourly/0anacron is set in /etc/cron.d/0hourly to run every hour. Change
01 * * * * root run-parts /etc/cron.hourly
to
#01 * * * * root run-parts /etc/cron.hourly

- For ssh connections from the Internet: internet --> router --> GoFlex Home.
In the configuration interface of the router, change the ssh port to 50000.
ssh -p 50000 login_name @ ip_routeur
bz31
 
Posts: 36
Joined: Mon Jun 18, 2012 8:35 am
Location: France

Re: [RESOLVED] auto turn off hard drive

Postby ldi9999 » Thu Jun 28, 2012 6:50 pm

Thanks. Will try your tips later to see how it goes.
ldi9999
 
Posts: 59
Joined: Mon Mar 05, 2012 10:31 pm

Re: [RESOLVED] auto turn off hard drive

Postby ldi9999 » Tue Jul 03, 2012 4:14 pm

$this->bbcode_second_pass_quote('bz31', '')$this->bbcode_second_pass_quote('ldi9999', 'Y')es I did. Otherwise the drive would not be spin down. Like a said, there is no problem on spin down drive as scheduled. Just the drive spins up by itself after a few seconds.

I think I found the solution (boot with the sata driver).
archlinux uses syslog-ng. It writes a line "-- MARK --" in /var/log/ every 20 minutes.
To disable it, add an option
mark_freq (0)
in /etc/syslog-ng.conf (and restart the daemon syslog-ng).

Edit : check /var/log/*.
- Found another who run every hour and writes log: anacron (see /etc/cron.d/0hourly). Disable it.
- If you allow ssh connections from the Internet. Each connection attempt causes a log in /var/log/auth.log To avoid this, I use a nonstandard port between 49152 and 65535 for sshd.


I did all above, but my harddrive still spin up right after spinning down. I even stopped the syslog-ng daemon.
ldi9999
 
Posts: 59
Joined: Mon Mar 05, 2012 10:31 pm
Top

Re: [RESOLVED] auto turn off hard drive

Postby WarheadsSE » Tue Jul 03, 2012 6:48 pm

Does this hard drive contain the rootfs?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [RESOLVED] auto turn off hard drive

Postby ldi9999 » Tue Jul 03, 2012 8:15 pm

Yes, followed your boot entirely from HD.
ldi9999
 
Posts: 59
Joined: Mon Mar 05, 2012 10:31 pm

Re: [RESOLVED] auto turn off hard drive

Postby bz31 » Tue Jul 03, 2012 8:46 pm

I don't know why it doesn't work for you.
My GoFlex Home is a mpd music server, and the daemons are
DAEMONS=(hwclock syslog-ng network crond sshd mpd)
bz31
 
Posts: 36
Joined: Mon Jun 18, 2012 8:35 am
Location: France

Re: [RESOLVED] auto turn off hard drive

Postby ldi9999 » Tue Jul 03, 2012 9:30 pm

How do you spin off the hardrive? hdparms, hdparms or laptopmode?
ldi9999
 
Posts: 59
Joined: Mon Mar 05, 2012 10:31 pm

Re: [RESOLVED] auto turn off hard drive

Postby bz31 » Tue Jul 03, 2012 10:00 pm

hdparm -S 240 /dev/sda
in /etc/rc.local
I don't use laptopmode.
bz31
 
Posts: 36
Joined: Mon Jun 18, 2012 8:35 am
Location: France

Re: [RESOLVED] auto turn off hard drive

Postby ricktsd » Fri Jan 04, 2013 7:55 pm

sorry to bring up an old thread...

my hdd successfully spins down after idle time, but it seems to be inaccessible after spinning back up. i can hear it spinning, but whenever i try to access that mount, it just times out.

any ideas?
ricktsd
 
Posts: 9
Joined: Sun Mar 04, 2012 10:33 pm

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 2 guests

cron