On 22 September 2017 at 15:51, Lennart Poettering <[email protected]>
wrote:

> On Fr, 22.09.17 15:21, Andy Pieters ([email protected])
> wrote:
>
> > Hi all
> >
> > Apologies if already covered or not suitable for this mailing list.
> >
> > As the title says, does anyone have any ideas on autofsck on hotplugging
> a
> > USB storage device containing jfs.
> >
> > Mount always fails if the jfs is dirty, but a single fsck is all that is
> > needed to make it mountable again...
>
> You can put something together using the SYSTEMD_WANTS udev property,
> and pull in a [email protected] instance for your device from
> there.
>
> That said, I'd suggest going the other way, and just using
> "systemd-mount" instead for mounting the device. It has a couple of
> benefits: first of all it will automatically do an fsck before
> mounting the device. But secondly it can do autofs mounts, so that the
> file system only remains mounted as long as it is accessed, and is
> unmounted automatically a short time after the last access
> happened. That way you get the biggest chance that the file system
> remains clean and should it not be clean is automatically corrected.
>
> Lennart
>

​I'm liking this idea. Thank you Lennart :)​
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to