The officially official Devuan Forum!

You are not logged in.

#1 2023-12-02 12:27:57

Registered: 2023-01-04
Posts: 10  

Remounting SD-card fails after suspend on ThinkPad W500 with Devuan 4

If I have an SD-card mounted using automounting at /media/<user>/<devicename> and suspend the machine, it is unmounted on suspend it seems. However the unmount appears to be incomplete or unclean in some way, as any attempt to mount it after resuming leads to an error:

sysfs: cannot create duplicate filename '/fs/ext4/mmcblk0p1'
(call trace omitted)
kobject_add_internal failed for mmcblk0p1 with -EEXIST, don't try to register things with the same name in the same directory.
EXT4-fs (mmcblk0p1): mount failed

What I believe is happening is that when clicking mount in Thunar, the mount attempt fails because the sysfs entry "directory" /sys/fs/ext4/mmcblk0p1 already exists.

If I try to mount from the command line it fails in the same way. (File exists.)
Unmounting from the command line fails, as the device obviously isn't mounted anywhere.

How do I get /sys/fs/ext4 in sync with what is actually mounted?
Is there a way to make suspend unmount the card correctly, or not unmount it at all?


Board footer