Bug#1002850: Re (2): Bug#1002850: udev fails to create a symlink for a SDHC card; udevadm info reports.

peter at easthope.ca peter at easthope.ca
Fri Dec 31 14:44:42 GMT 2021


From:	Michael Biebl <biebl at debian.org>
Date:	Fri, 31 Dec 2021 11:52:50 +0100
> Are you aware, that you already have a symlink
> /dev/disk/by-label/GRNSD

I've used a file system label in /etc/fstab.
LABEL=GRNSD /home/peter/MY ext2 defaults,user,users,exec,noauto 0 0
Don't know whether it refers to /dev/disk/by-label/GRNSD or searches 
through labels more directly.

> What's the point in creating another one named /dev/GRNSD ?

No particular point.  The pattern of name assignment I used came from 
documentation.  Might have been in ArchWiki.  Can try this in fstab.
/dev/disk/by-label/GRNSD /home/peter/MY ext2 defaults,user,users,exec,noauto 0 0
The LABEL=GRNSD line above is shorter.  I don't know which is better.

Years ago udev was promoted to obtain reliable names for devices. 
I don't remember advice favouring filesystem labels over udev names. 
Simply followed the most convincing documentation found.

> Do those users/groups exist?

peter at joule:/home/peter$ grep peter /etc/passwd
peter:x:1000:1000:Peter Easthope,,,:/home/peter:/bin/bash

peter at joule:/home/peter$ grep ^peter /etc/group
peter:x:1000:

> Is the rules file embedded in the initramfs?

Haven't checked.  Will rebuild initramfs.

> Is the device plugged in during boot or attached later?

In the desktop system the name is created when the device is connected 
before powering up and just as well when the device is hot plugged.

I have yet to check the two cases carefully on the laptop.

Will try the various alternatives noted above.

Thanks,                               ... P.

-- 
mobile: +1 778 951 5147
  VoIP: +1 604 670 0140
   48.7693 N 123.3053 W



More information about the Pkg-systemd-maintainers mailing list