[systemd-devel] systemd 210 - mount/umount/remount

Karel Zak kzak at redhat.com
Tue Oct 18 09:08:43 UTC 2016

On Fri, Oct 14, 2016 at 12:06:00PM +0200, Michael Hirmke wrote:
> Hi *,
> I've read the man pages and some more documentation about the mount
> behaviour of systemd, but I couldn't find a definitive answer to my
> questions.
> I have a backup script, that copies all files to backup to a hard disk
> partition, then duplicates the partition to one on a second disk, which
> in turn is changed every day. Before duplicating, the script tries to
> umount the partition on the original disk, does an fsck and then mounts
> the partition read only. When duplicating is finished, the original
> partition is remounted read write again.

Not sure if you copy individual files or all partition (dd(1) or so),
but would be enough to use fsfreeze(8) to avoid umount/mount? 

I guess you can call fsck on duplicated partition on the second disk.
IMHO fsfreeze is less invasive than umount. Or use LVM snapshots ;-)


 Karel Zak  <kzak at redhat.com>

More information about the systemd-devel mailing list