[arm-allstar] Found updatedb to be running daily
Robert Cloutier
wo4rob at gmail.com
Mon Mar 22 01:57:24 EDT 2021
David,
The point that Larry made was that the HAMVoIP system automatically updates
the following file every day at midnight.
/var/lib/mlocate/mlocate.db
What is the best way to stop this from happening to prevent wearing out my
SD card?
WO4ROB
On Sat, Mar 20, 2021 at 14:06 "David McGough via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
>
> Hi Larry,
>
> Typically if I can't find something in the filesystem, I just manually run
> the updatedb command from a bash shell prompt, which only takes a few
> seconds to complete.
>
> Since the database (mlocate.db) is static, it continues to work until the
> next time I've moved things around and need to update again.
>
>
> 73, David KB4FXC
>
>
> On Sat, 20 Mar 2021, "Larry Mollica via ARM-allstar" wrote:
>
> > Hi all
> >
> > FYI
> > The hamvoip.org page says that the “locate …daily update is turned off.
> > This is to avoid unnecessary writes to the SD card.”, but I found that
> > updatedb has been running every day:
> >
> > # ls -l /var/lib/mlocate/mlocate.db
> > -rw-r----- 1 root locate 1615159 Mar 18 00:00 /var/lib/mlocate/mlocate.db
> >
> > (Version is RPi2-3-4 Version 1.6-16)
> >
> > I’m not too familiar with systemctl but I found the timer files and
> renamed them,
> > /usr/lib/systemd/system/updatedb.timer.DISABLE
> > /usr/lib/systemd/system/multi-user.target.wants/updatedb.timer.DISABLE
> >
> > ...then did a systemctl daemon-reload. It has ceased the daily updates.
> > (Again, not too familiar with systemctl so there may be a more preferred
> > method to do this. Feel free to educate me. :)
> >
> > Alternately I suppose the db file could be moved to /tmp/ or some RAM
> > based directory, but it’s not like there are a lot of file changes going
> > on so I’m fine with using it when needed.
> >
> > Larry
> > WA6FSJ
> > _______________________________________________
> >
> > ARM-allstar mailing list
> > ARM-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> >
>
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
>
More information about the ARM-allstar
mailing list