Error email cron Read-only file systemmv

Status
Not open for further replies.
Joined
Mar 6, 2014
Messages
686
I have a problem after following this guide. Getting emails:

Subject: Cron <root@nas> /bin/sh /usr/local/sbin/save_rrds.sh
rm: /data/rrd_dir.tar.bz2: Read-only file systemmv: rename rrd_dir.tar.bz2.28209 to /data/rrd_dir.tar.bz2: Read-only file system

and

Subject: Cron <root@nas> /bin/sh /usr/local/sbin/save_rrds.sh
rm: /data/rrd_dir.tar.bz2: Read-only file system
mv: rename rrd_dir.tar.bz2.26710 to /data/rrd_dir.tar.bz2: Read-only file system

and so on.

Probably mount -uw and mount -ur broke something?

EDIT:
I think this might be caused by omitting the '/' in the commands?

mount -uw /
echo "MAXAGE 25">>/etc/local/nut/upsd.conf
mount -ur /

Just don know how to solve this....
 
Last edited:
D

dlavigne

Guest
If you're on 9.3, do not use the mount commands shown in older guides. The boot filesystem changed in 9.3 and it is no longer mounted r/o.
 
Joined
Mar 6, 2014
Messages
686
Thanks, i kind of expected such an anwer indeed...

So we should only use
Code:
echo "MAXAGE 25">>/etc/local/nut/upsd.conf

without the mount commands, which won't survive a reboot.

I will add your comments to the original thread. Thanks!
 
Status
Not open for further replies.
Top