Mediadb service location

Language, region, time zone, power, navigation, notification and more.
Post Reply
User avatar
Pulsar
Posts: 7
Joined: 17 Feb 2025, 20:25
Russia

Mediadb service location

Post by Pulsar »

Hello!

I found that HDD's in my NAS make some noise when I'm definitely not using them..
After some investigation, I found this unexpected activity:

Code: Select all

CW /Volume1/@system/media/pgsql/*
Image


So, there's a media service that uses postgres and a service directory is created on Volume1, which is accessed every few seconds.
The disks do not go to sleep.

Code: Select all

mediadb.service
/usr/lib/postgresql/13/bin/postgres -D /Volume1/@system/media/pgsql
Image

I'm trying to figure out how to move this directory to another Volume2, or where the configuration is located, in which a specific startup path is specified.

If anyone has encountered such a problem, I would appreciate any advice!
User avatar
charlesharrel
Posts: 1
Joined: 07 Mar 2025, 15:50
United States of America

Re: Mediadb service location

Post by charlesharrel »

I think you should check the service configuration for mediadb.service. You can usually find the configuration file in /etc/systemd/system/ or /lib/systemd/system/. Use the following command to view the contents:

Code: Select all

cat /etc/systemd/system/mediadb.service
Look for lines that specify the ExecStart command or any paths related to the database directory.
User avatar
rvescovi
Posts: 72
Joined: 12 Dec 2024, 01:14
Italy

Re: Mediadb service location

Post by rvescovi »

Hi,

I discovered same issues, my hdd (Volume2) never went in sleep from long time, because there are continue changes on:

/Volume2/@zlog
/Volume2/@system/media/pgsql
.bash_history file -> just in case I will logged in

I found that the media configuration is located here:

cat /etc/default/mediadb
database=/Volume2/@system/media/pgsql

So it's pretty easy to change manually but after a reboot the system is reverted to old Volume2, so how did you proceed safely and permanently?
User avatar
Pulsar
Posts: 7
Joined: 17 Feb 2025, 20:25
Russia

Re: Mediadb service location

Post by Pulsar »

Hi,
well, will try to set the config file to readonly permission
Post Reply

Return to “System Configuration”