[systemd-devel] systemd vs udev automount

Mantas Mikulėnas grawity at gmail.com
Sun Oct 8 18:58:24 UTC 2017


On Sun, Oct 8, 2017 at 9:43 PM, Paul D. DeRocco <pderocco at ix.netcom.com>
wrote:

> > From: Zbigniew Jedrzejewski-Szmek [mailto:zbyszek at in.waw.pl]
> >
> > I don't see why you'd need to use automounting for a partition on the
> > main disk. Just put it in /etc/fstab in the usual manner, and it'll
> > get mounted very early in boot.
>
> As I recall, I added udev-extraconf a couple of years ago when I wanted
> one of my systems to be portable to different motherboards or different
> mass storage devices. I didn't want the user to have to edit fstab somehow
> before putting the system together. If I get rid of udev-extraconf, is
> there a way to use a mount unit to specify a partition by some sttributes,
> e.g., a FAT file system with a volume name of FOOBAR? Or is there a way to
> do this directly with a udev rule?
>

Just configure "/dev/disk/by-label/FOOBAR" (or possibly "LABEL=FOOBAR") as
the mount source.

-- 
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20171008/9d39d7c1/attachment.html>


More information about the systemd-devel mailing list