This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tips:hiding-lvm2-physical-volumes-from-thunar-removable-devices [05.08.2012 00:35] vergo |
tips:hiding-lvm2-physical-volumes-from-thunar-removable-devices [05.08.2012 23:28] (current) vergo |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Hiding LVM2 physical volumes from Thunar removable devices ====== | ====== Hiding LVM2 physical volumes from Thunar removable devices ====== | ||
- | For some reason, Thunar will sometimes show LVM2 physical volumes as removable devices. As an example, with Ubuntu 12.04 and Xfce using an encrypted disk that then contains a LVM2 physical volume, that volume will come visible even when it isn't mountable. The solution involves using the UDISKS_PRESENTATION_HIDE environment variable. However, this needs to be passed to Thunar using udev.\\ | + | For some reason, Thunar will sometimes show LVM2 physical volumes as removable devices. As an example, with Ubuntu 12.04 and Xfce using an encrypted |
\\ | \\ | ||
- | Adding the following in /// | + | Adding the following in /// |
< | < | ||
- | ENV{DM_LV_NAME}=="md?*_crypt", ENV{UDISK_PRESENTATION_HIDE: | + | KERNEL=="md1", ENV{UDISKS_PRESENTATION_HIDE}=" |
</ | </ | ||
- | Alternative syntax if you know the exact device name: | + | Then use this command (as root) to trigger a refresh: |
< | < | ||
- | KERNEL==" | + | udevadm trigger |
</ | </ | ||
- | The bad news: a reboot seems to be needed. | + | You may need to play around guessing the correct device name depending on your setup. Udisks doesn' |