Bug 494850 - device notifier does not allow remount external usb disk, if the port is always powered
Summary: device notifier does not allow remount external usb disk, if the port is alwa...
Status: RESOLVED DUPLICATE of bug 293906
Alias: None
Product: plasmashell
Classification: Plasma
Component: Disks & Devices (show other bugs)
Version: 6.2.1
Platform: Debian unstable Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-16 07:33 UTC by antonio
Modified: 2024-11-12 22:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description antonio 2024-10-16 07:33:34 UTC
Hi,
I have an external USB disk that I mount via device notifier to save data and then unmount to avoid problems in case of power failure, repeating this operation many times a day.

To keep the disk visible to the system I set a udev rule that prevents the related USB port from turning off, setting UDISKS_CAN_POWER_OFF=0 when the disk is connected.

This worked up to version 6.1 of plasma.

Now when I unmount the disk, device notifier reports the message: "this device can now be safely removed" and it stays like this forever, so the only way to unblock the situation is to unplug the USB cable and reconnect it to the disk (which I would prefer to avoid so as not to damage the connectors over time).

I wanted to ask if it is possible to insert a timeout (ex: 5 seconds), after which the device notifier re-runs the check to verify the presence of a connected disk and then allows it to be remounted (without disconnecting the USB cable from the disk); or alternatively restore the previous functionality from the device notifier and send this message only as a disappearing popup notification.

Thank you,
Antonio

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Comment 1 Nate Graham 2024-11-12 22:31:32 UTC

*** This bug has been marked as a duplicate of bug 293906 ***