Bug#1002850: udev fails to create a symlink for a SDHC card connected to a Sharp Mebius laptop.

2022-01-06 Thread Michael Biebl


On 06.01.22 18:09, pe...@easthope.ca wrote:

From: Michael Biebl 
Date: Tue, 4 Jan 2022 19:12:04 +0100

Can you please provide the udev debug log from your mebius laptop?


Certainly.  From your message 27 I should first up the log-priority.

udevadm control --log-priority=debug

Then the udev daemon will report into /var/log/syslog.  Records will
be interspersed with other syslog records. I've checked udev.man and
udevadm.man.  No mention of a parameter specifying a log file.  Can
udev log to a dedicated file?  That will be easier to comprehend than
the full syslog.

Thanks,   ... P.



udevadm control --log-priority=debug
journalctl -f

(and udevadm control --log-priority=info to set it back to sane levels)


OpenPGP_signature
Description: OpenPGP digital signature


Bug#1002850: udev fails to create a symlink for a SDHC card connected to a Sharp Mebius laptop.

2022-01-06 Thread peter
From: Michael Biebl 
Date: Tue, 4 Jan 2022 19:12:04 +0100
> Can you please provide the udev debug log from your mebius laptop?

Certainly.  From your message 27 I should first up the log-priority.

udevadm control --log-priority=debug

Then the udev daemon will report into /var/log/syslog.  Records will 
be interspersed with other syslog records. I've checked udev.man and 
udevadm.man.  No mention of a parameter specifying a log file.  Can 
udev log to a dedicated file?  That will be easier to comprehend than 
the full syslog.

Thanks,   ... P.

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



Bug#1002850: Re (2): Bug#1002850: udev fails to create a symlink for a SDHC card connected to a Sharp Mebius laptop.

2022-01-04 Thread Michael Biebl

On 30.12.21 17:47, Michael Biebl wrote:


What the debug output of systemd-udevd when you attach the device?


This command will allow one to observe the execution of rules:

udevadm control --log-priority=debug
journalctl -f

(and udevadm control --log-priority=info to set it back to sane levels)



Can you please provide the udev debug log from your mebius laptop?


OpenPGP_signature
Description: OpenPGP digital signature


Bug#1002850: Re (2): Bug#1002850: udev fails to create a symlink for a SDHC card connected to a Sharp Mebius laptop.

2021-12-30 Thread Michael Biebl

On 30.12.21 16:47, pe...@easthope.ca wrote:

Hello Michael,

From: Michael Biebl 
Date: Thu, 30 Dec 2021 08:43:32 +0100

What procedures?


In essence I followed the procedure to attach a SYMLINK name to the
SDHC card as described here.  https://wiki.debian.org/udev

The salient step is to make an effective udev rule.  More details are
in the message at debian-user, linked in the preceeding message 10.


I'm not going to extract the information from debian-user. Those should 
be provided by you in the bug report.



The result is these two different rules; each being effective in the
desktop system.

KERNEL=="sd?1", ATTR{size}=="7434240", SYMLINK+="GRNSD", \
  OWNER="peter", GROUP="users"
  
KERNEL=="sd?1", ENV{ID_SERIAL_SHORT}=="0201202010201000", SYMLINK+="GRNSD", \

  OWNER="peter", GROUP="peter"

Neither of these produces the SYMLINK in Debian 11 on the Sharp Mebius.


What's the actual device name?
Please post the output of
udevadm info -a /dev/
and
udevadm info /dev/


What the debug output of systemd-udevd when you attach the device?


This command will allow one to observe the execution of rules:

udevadm control --log-priority=debug
journalctl -f

(and udevadm control --log-priority=info to set it back to sane levels)



OpenPGP_signature
Description: OpenPGP digital signature


Bug#1002850: Re (2): Bug#1002850: udev fails to create a symlink for a SDHC card connected to a Sharp Mebius laptop.

2021-12-30 Thread peter
Hello Michael,

From: Michael Biebl 
Date: Thu, 30 Dec 2021 08:43:32 +0100
> What procedures?

In essence I followed the procedure to attach a SYMLINK name to the 
SDHC card as described here.  https://wiki.debian.org/udev

The salient step is to make an effective udev rule.  More details are 
in the message at debian-user, linked in the preceeding message 10.
The result is these two different rules; each being effective in the 
desktop system.

KERNEL=="sd?1", ATTR{size}=="7434240", SYMLINK+="GRNSD", \
 OWNER="peter", GROUP="users"
 
KERNEL=="sd?1", ENV{ID_SERIAL_SHORT}=="0201202010201000", SYMLINK+="GRNSD", \
 OWNER="peter", GROUP="peter"

Neither of these produces the SYMLINK in Debian 11 on the Sharp Mebius.

> What symlink? Please be more specific.
> Have you created custom udev rules or what?

Yes, certainly the rules above were defined in the systems.  Described 
in detail in the message to debian-user.   Here is the link again.
https://lists.debian.org/debian-user/2021/12/msg00937.html

The SYMLINK name "GRNSD", is visible in each rule above.  The 
essential concept is that 'KERNEL=="sd?1", ATTR{size}=="7434240"' in 
the first rule and 
'KERNEL=="sd?1", ENV{ID_SERIAL_SHORT}=="0201202010201000"' in the 
second rule identify the SDHC.  Then 'SYMLINK+="GRNSD"' connects the 
name to the device. Note that each rule should accomplish the same 
result.  Only one rule should be required. The rule using SERIAL 
avoids the risk of ambiguity in the unlikely case of two devices 
containing parts exactly the same size.  That is 7434240 byte parts.

In Debian 11 on the generic desktop machine, all works as expected.
Neither rule produces the symlink in Debian 11 on the Sharp Mebius.
For background, I've used rules containing ATTR{size} in various 
desktop and laptop machines through several Debian releases.  
According to Wikipedia, the initial release of udev was in 2003. In 
Debian I guess udev first appeared after Woody, Debian 3. I don't 
recall specifically but I've used udev successfully for about a 
decade.  This is the first instance of failure.

Before submitting the message to debian-user I had hoped that others 
might have noticed a related problem.  Apparently not.  Therefore the 
next step should be a debug procedure.  Maybe you have an idea or tip 
before I try debugging.  =8~)

Thanks,... Peter E.


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



Bug#1002850: udev fails to create a symlink for a SDHC card connected to a Sharp Mebius laptop.

2021-12-29 Thread Michael Biebl

Control: tags -1 + moreinfo

On 30.12.21 03:10, pe...@easthope.ca wrote:


* What led up to the situation?
  Attempted to use a SDHC card in a Sharp Mebius PC-CB1-M1.
  
* What exactly did you do (or not do) that was effective (or

  ineffective)?
  Attempted to use a SDHC card in a Sharp Mebius PC-CB1-M1.
  Followed the same procedure as used with previous Debians
  and in Debian 11 on other machines.


What procedures?


* What was the outcome of this action?
  The symlink was not created as in other cases.


What symlink? Please be more specific.
Have you created custom udev rules or what?




OpenPGP_signature
Description: OpenPGP digital signature