User Tools

Site Tools


This is an old revision of the document!

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.

Adding the following in /etc/udev/rules.d/99-hide-thunar-devices.rules will hide devices starting with “md” and ending with “_crypt”, essentially hiding encrypted raid devices.


Alternative syntax if you know the exact device name:


The bad news: a reboot seems to be needed.

tips/hiding-lvm2-physical-volumes-from-thunar-removable-devices.1344197634.txt.gz · Last modified: 05.08.2012 23:13 by vergo