Open catthou opened 6 years ago
Timeshift will try to mount the device with default options if it is not already mounted. Do you have the "ro" option specified in /etc/fstab for that device?
It would appear to be complete chance, that a sector has gone bad sometime between when timeshift wrote to it a few days ago and when it's tried to read it now. I believe this is what's caused the drive to be remounted read-only (at least, from what I can discern from the "coincidental" kern.log messages of read errors vs when timeshift is running). I've been working on fixing this and will update further when I have timeshift ready and running again.
However, there is still the issue that when this happens, timeshift hangs. Is there no way to set a time limits on the rsync or rm commands ran at which point they should maybe try to error out?
It appears that at some point during timeshifts automated run, the partition my data is backed up to is remounted as read-only. So Timeshift runs
rsync
followed by an attempt torm
the oldest daily backup, neither of which succeed as the partition can't be changed. One of my cpu cores remains maxed out during this failedrm
command. I've experienced this twice and have now completely disabled automated backups.I'm unsure of the protocol for cleanly exiting Timeshift so I can remount the drive. I manually killed it both times it's done this and now I've disabled automated backups, is this going to cause issues if I try to create another backup?
Steps to reproduce the behavior:
Expected; Timeshift should not attempt to re-mount any drive if it's already mounted in rw. If Timeshift detects an ro mount option, it should error out at that point and never attempt to do any sort of work.
Screenshot of HTop Report of running Timeshift Processes
Pastebin of /var/log/timeshift/2018-09-17_05-00-01_backup.log - the second run, in which I watched it put my partition into read-only mode. You can see rsync "idles' for 9 minutes before failing and then
rm
proceeds to hang and the logfile is no longer written to.System: Linux Mint 19 Cinnamon Desktop Environment Timeshift 18.6+tara