This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
tips:hiding-lvm2-physical-volumes-from-thunar-removable-devices [05.08.2012 00:31] vergo created |
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 /// |
| + | |||
| + | < | ||
| + | KERNEL=="md1", | ||
| + | </ | ||
| + | |||
| + | Then use this command (as root) to trigger a refresh: | ||
| < | < | ||
| - | # crypted lvm2 volumes shouldn' | + | udevadm trigger |
| - | ENV{DM_LV_NAME}==" | + | |
| </ | </ | ||
| - | 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' |