Summary: | "Safe remove" should not be available for external drives containing OS install and/or /home folder | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | nRoof <woroof> |
Component: | Disks & Devices widget | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | grizzlyuser, kde, nate, woroof |
Priority: | NOR | ||
Version: | 5.9.1 | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 5.20 | |
Sentry Crash Report: | |||
Attachments: | output of solid-hardware5 |
Description
nRoof
2017-02-14 23:16:38 UTC
Just a small clarification on the last paragraph of the Description. It means that other popular desktop environments handle this correctly, and the issue seems to be not specific to any GNU/Linux distro. Also, Files (nautilus) file manager, which comes with Gnome, doesn't show the removable drive either, even when ran in Plasma session. Device notifier by default only shows removable media to which the root partition does not count, ie. it is not shown here. The partition is still shown in Dolphin which I agree is not optimal. The question is, however, how to identify these devices. I'm not keen on adding a random "if this thing has a mountpoint which contains / or $HOME, hide it". UDisks should instead have a hint about this. I compared the hints for my / partition as well as for another partition (/data) but they look identical (both have "HintSystem" set and no "HintIgnore" or "HintAuto"). My UEFI partition doesn't have the "Filesystem" Udisks interface and thus does not show up as a storage device. /boot might have HintIgnore set, I don't know. It would help if you could provide the output of `solid-hardware5 details UDI` with UDI being your drives (you can find them using `solid-hardware5 list`) and indicate which drives should be hidden. Thanks. Created attachment 104089 [details]
output of solid-hardware5
Added the output. Serial numbers of all the devices are replaced to SN1, SN2, etc. in the output.
Outputs are sorted by devices how they appear in /org/freedesktop/UDisks2/drives/ list. After each device go its corresponding root block device and all its partition block devices.
Descriptions of devices from the output:
1. Generic__USB3_2e0_CRW_____0_SN1 and Generic__USB3_2e0_CRW_____1_SN1 are actually a single card reader with two slots. First slot is empty, and some SD card is inserted into the second one. It is displayed as safely removable, which is expected.
2. Samsung_SSD_840_PRO_Series_SN2 is the subject SSD in the external USB enclosure.
3. SN3 is an internal NVME drive.
4. HGST_HTE721010A9E630_SN4 is an internal HDD.
What should be hidden from Device Notifier and their short descriptions:
Block.device = '/dev/sdb2' : / partition
Block.device = '/dev/sdb3' : /home partition (LUKS encrypted and mounted at boot via /etc/crypttab)
Please see bug 399659, which is very similar. Perhaps similar solution can fix the current bug as well. This has been fixed in the UI redesign in Plasma 5.20. |