User Tools

Site Tools


tips:hiding-lvm2-physical-volumes-from-thunar-removable-devices

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.

ENV{DM_LV_NAME}=="md?*_crypt", ENV{UDISK_PRESENTATION_HIDE}:="1"

Alternative syntax if you know the exact device name:

KERNEL=="sda1", ENV{UDISK_PRESENTATION_HIDE}:="1"

The bad news: a reboot seems to be needed.

tips/hiding-lvm2-physical-volumes-from-thunar-removable-devices.1344188957.txt.gz · Last modified: 05.08.2012 20:49 by vergo