Network Space 2 spins up harddisk every 2 hours

Post Reply
assetman
Posts: 26
Joined: Sun May 02, 2010 5:16 am

Network Space 2 spins up harddisk every 2 hours

Post by assetman » Sun Jun 06, 2010 4:35 am

In case somebody is wondering: Network Space 2 is set up by default to rotate old log files every 2 hours. This is especially annoying during night time because it spins up the harddisk loudly. It also shortens the life span of the harddisk unnecessarily. This behavior can be changed by modifying /etc/cron.d/logrotate -file:

Default:

Code: Select all

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/etc/cron.d/logrotate installed on Wed Jun 24 16:58:35 2009)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
# Limit the log files sizes using logrotate every two hours 
0 0-23/2 * * * root /usr/sbin/logrotate /etc/logrotate.tab

karallp
Posts: 6
Joined: Fri Jan 08, 2016 7:39 am

Re: Network Space 2 spins up harddisk every 2 hours

Post by karallp » Fri Jan 08, 2016 7:41 am

Hi,
I'm using Network Space 2 with firmware 2.2.12.2. How can I edit this file?

karallp
Posts: 6
Joined: Fri Jan 08, 2016 7:39 am

Re: Network Space 2 spins up harddisk every 2 hours

Post by karallp » Sun Jan 24, 2016 2:52 pm

Hi,
Can anybody tell me how to edit this file?
br, Patrick

Mijzelf
Posts: 6198
Joined: Mon Jun 16, 2008 10:45 am

Re: Network Space 2 spins up harddisk every 2 hours

Post by Mijzelf » Mon Jan 25, 2016 8:22 am

You need to get shell access (Networkspace,Networkspace 2), and then you can edit the file using vi.

karallp
Posts: 6
Joined: Fri Jan 08, 2016 7:39 am

Re: Network Space 2 spins up harddisk every 2 hours

Post by karallp » Sun Feb 14, 2016 8:34 am

Hi,
Tank you for the link. I already found this link, but I have firmware 2.2.12.2 and none of the methods there apply to it. If I follow the link "Through creating a custom capsule", which only applies to firmware up to 2.2.8.3, there is a thread of 9 pages. Do I have to read all 9 pages in order get shell access? The question is if this also works for my version. And the problem is: I don't have a linux machine :-). Is there any possiblilty to do this from a Windows machine?
br, Patrick

Mijzelf
Posts: 6198
Joined: Mon Jun 16, 2008 10:45 am

Re: Network Space 2 spins up harddisk every 2 hours

Post by Mijzelf » Sun Feb 14, 2016 2:33 pm

karallp wrote:I don't have a linux machine :-). Is there any possiblilty to do this from a Windows machine?
No. Creating the capsule involves extracting and repackaging a directory tree. On a Windows machine this can't be done, as Windows doesn't support posix access flags and symlinks.

But you can boot your Windows PC from a Linux Live CD (or -USB stick). No need to install anything.

Post Reply