---
name: "lsbilibop"
section: "8"
platform: "linux"
package: "bilibop-rules"
version: "0.6.5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/lsbilibop"
---

# lsbilibop(8)

list BILIBOP tagged devices, display or update some of their udev properties

## NAME

lsbilibop - list BILIBOP tagged devices, display or update some of their udev properties

## SYNOPSIS

**lsbilibop** \[**-l**\]\
 **lsbilibop** \[**-a**\|**-c**\|**-i**\] \[*DEVICE* \[*DEVICE* \[*...*\]\]\]\
 **lsbilibop -h**

## DESCRIPTION

**lsbilibop** is a simple shell script that outputs the list of *BILIBOP* tagged block devices and some of their [**udev**(7)](/udev/7.md) properties, or triggers uevents to update udev rules and properties that can be applied to these devices.

If the operating system is running from an external and writable support (USB or SD Flash Memory, USB, Firewire or eSATA HDD), then the *BILIBOP* tagged devices are the block devices whose contents are on the same physical disk than the root filesystem. This includes **disk**, **partitions**, but also **device-mapper** and **loopback** devices, and even block devices containing a filesystem used as lower/readonly branch of an [**aufs**(5)](/aufs/5.md) or **overlay** mountpoint (depending on the kernel version). The rules file */usr/lib/udev/rules.d/66-bilibop.rules* (or */etc/udev/rules.d/66-bilibop.rules*) is used to find and tag such devices.

## OPTIONS

Options must be invoked before arguments. When invoked without option, **lsbilibop** just outputs a list of the device(s) given as arguments (if they are *BILIBOP* tagged block devices), or of all *BILIBOP* tagged block devices if none is specified. Devices are listed in the same order than in */proc/partitions*, i.e. in the order they have been discovered by the kernel. Absolute or relative paths and symlinks can be used to specify a device. Shell wildcards are allowed.

- **-a**

  Trigger 'device **add**' uevent for the device(s) given as arguments (if they are *BILIBOP* tagged block devices), or of all BILIBOP tagged block devices if none is specified, to update their properties. This can be used each time the corresponding BILIBOP\_RULES\_\* variables are modified in [**bilibop.conf**(5)](/bilibop.conf/5.md), to apply the new settings without need to reboot the operating system.

- **-c**

  Trigger 'device **change'** uevent for the device(s) given as arguments (if they are *BILIBOP* tagged block devices), or of all BILIBOP tagged block devices if none is specified, to update their properties. This can be used each time the corresponding BILIBOP\_RULES\_\* variables are modified in [**bilibop.conf**(5)](/bilibop.conf/5.md), to apply the new settings without need to reboot the operating system.

- **-h**

  Print a help page on standard output and exit.

- **-i**

  Display some useful [**udev**(7)](/udev/7.md) properties of the device(s) given as arguments (if they are *BILIBOP* tagged block devices), or of all *BILIBOP* tagged block devices if none is specified. This option overrides -a and -c options.

-

  The following properties are only informative. The two last ones are set if and only if **udisks 1.x** (ID\_DRIVE\_DETACHABLE) and/or **udisks 2.x** (UDISKS\_CAN\_POWER\_OFF) are installed.

-

  DEVNAME\
   BILIBOP\_DISK\
   BILIBOP\_PARTITION\
   BILIBOP\_UNDERLYING\_PARTITION\
   DEVLINKS

-

  ID\_DRIVE\_DETACHABLE\
   UDISKS\_CAN\_POWER\_OFF

-

  The following properties can be used to set BILIBOP\_RULES\_\*\_WHITELIST and other variables in [**bilibop.conf**(5)](/bilibop.conf/5.md):

-

  ID\_FS\_LABEL\
   ID\_FS\_TYPE\
   ID\_FS\_USAGE\
   ID\_FS\_UUID

-

  The following properties can be modified by changing the corresponding BILIBOP\_RULES\_\* variables in [**bilibop.conf**(5)](/bilibop.conf/5.md). They are set if and only if **udisks 1.x** (for the first set) and/or **udisks 2.x** (for the second set) are installed.

-

  UDISKS\_PRESENTATION\_HIDE\
   UDISKS\_PRESENTATION\_ICON\_NAME\
   UDISKS\_PRESENTATION\_NAME\
   UDISKS\_SYSTEM\_INTERNAL

-

  UDISKS\_IGNORE\
   UDISKS\_ICON\_NAME\
   UDISKS\_NAME\
   UDISKS\_SYSTEM

- **-l**

  Don't rely on the 'BILIBOP' tag to list the devices. This option is based on the *bilibop-common* shell library.

## ERRORS

If the 'BILIBOP' tag does not exist in the udev database, then **lsbilibop** displays a useful error message on stderr, and lists the device nodes whose content is supposed to be written on the same physical disk than the root filesystem (as does the -l option). Exit code is 8.

## FILES

/etc/bilibop/bilibop.conf\
 /usr/share/doc/bilibop-rules/examples/bilibop.conf\
 /usr/share/bilibop/bilibop\_rules\_generator\
 /lib/udev/rules.d/66-bilibop.rules\
 /etc/udev/rules.d/66-bilibop.rules

## SEE ALSO

[**bilibop**(7)](/bilibop/7.md), [**bilibop.conf**(5)](/bilibop.conf/5.md), [**drivemap**(1)](/drivemap/1.md), [**udev**(7)](/udev/7.md), [**udevadm**(8)](/udevadm/8.md), [**udisks**(7)](/udisks/7.md), [**udisks**(8)](/udisks/8.md)

## AUTHOR

This manual page has been written by Bilibop Project \<quidame@poivron.org\>.
