One of very first thing I did when starting with LXC containers was that I mounted USB on /srv/lxc for containers.
Today afternoon state of /dev is as follows:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 512 108 404 21% /dev
root@turris:~# ls -l /dev
crw-rār-- 1 root root 10, 235 Feb 13 01:39 autofs
drwxr-xr-x 2 root root 60 Feb 13 01:39 bsg
crw-rār-- 1 root root 10, 234 Feb 13 01:39 btrfs-control
drwxr-xr-x 3 root root 60 Feb 13 01:39 bus
crw-rār-- 1 root root 5, 1 Feb 13 01:39 console
crw-rār-- 1 root root 10, 63 Feb 13 01:39 cpu_dma_latency
crw-rār-- 1 root root 10, 58 Feb 13 01:39 crypto
crw-rw-rw- 1 root root 1, 7 Feb 13 01:39 full
crw-rār-- 1 root root 10, 229 Feb 13 01:39 fuse
crw-rār-- 1 root root 10, 183 Feb 13 01:39 hwrng
crw-rār-- 1 root root 89, 0 Feb 13 01:39 i2c-0
ā¦
crw-rār-- 1 root root 89, 8 Feb 13 01:39 i2c-8
crw-rār-- 1 root root 1, 11 Feb 13 01:39 kmsg
srw-rw-rw- 1 root root 0 Feb 13 01:39 log
drwxr-xr-x 2 root root 60 Feb 13 01:39 mapper
crw-rār-- 1 root root 1, 1 Feb 13 01:39 mem
crw-rār-- 1 root root 10, 60 Feb 13 01:39 memory_bandwidth
brw-rār-- 1 root root 179, 0 Feb 13 01:39 mmcblk0
brw-rār-- 1 root root 179, 8 Feb 13 01:39 mmcblk0boot0
brw-rār-- 1 root root 179, 16 Feb 13 01:39 mmcblk0boot1
brw-rār-- 1 root root 179, 1 Feb 13 01:39 mmcblk0p1
brw-rār-- 1 root root 179, 24 Feb 13 01:39 mmcblk0rpmb
crw-rār-- 1 root root 90, 0 Feb 13 01:39 mtd0
crw-rār-- 1 root root 90, 1 Feb 13 01:39 mtd0ro
crw-rār-- 1 root root 90, 2 Feb 13 01:39 mtd1
crw-rār-- 1 root root 90, 3 Feb 13 01:39 mtd1ro
brw-rār-- 1 root root 31, 0 Feb 13 01:39 mtdblock0
brw-rār-- 1 root root 31, 1 Feb 13 01:39 mtdblock1
drwxr-xr-x 2 root root 60 Feb 13 01:39 net
crw-rār-- 1 root root 10, 62 Feb 13 01:39 network_latency
crw-rār-- 1 root root 10, 61 Feb 13 01:39 network_throughput
-rw-rw-rw- 1 root root 721397 Feb 14 16:10 null
-rw-rw-rw- 1 root root 1000056 Feb 14 16:10 null.1
-rw-rw-rw- 1 root root 1000077 Feb 14 02:31 null.2
-rw-rw-rw- 1 root root 1000086 Feb 13 20:44 null.3
crw-rw-rw- 1 root root 1, 3 Feb 13 01:39 null.4
crw-rār-- 1 root root 1, 4 Feb 13 01:39 port
crw-rār-- 1 root root 108, 0 Feb 13 01:39 ppp
crw-rw-rw- 1 root root 5, 2 Feb 14 16:10 ptmx
drwxr-xr-x 2 root root 0 Jan 1 1970 pts
crw-rār-- 1 root root 1, 8 Feb 13 01:39 random
lrwxrwxrwx 1 root root 4 Feb 13 01:39 root ā b301
crw-rār-- 1 root root 254, 0 Feb 13 01:39 rtc0
brw-rār-- 1 root root 8, 0 Feb 13 01:39 sda
brw-rār-- 1 root root 8, 1 Feb 13 01:39 sda1
lrwxrwxrwx 1 root root 8 Feb 13 01:39 shm ā /tmp/shm
drwxr-xr-x 2 root root 60 Feb 13 01:39 snd
crw-rār-- 1 root root 153, 0 Feb 13 01:39 spidev0.2
crw-rār-- 1 root root 5, 0 Feb 14 15:08 tty
crw-rār-- 1 root root 4, 64 Feb 13 01:39 ttyS0
ā¦
crw-rār-- 1 root root 4, 79 Feb 13 01:39 ttyS15
crw-rār-- 1 root root 10, 59 Feb 13 01:39 ubi_ctrl
crw-rār-- 1 root root 1, 9 Feb 13 01:39 urandom
crw-rār-- 1 root root 10, 130 Feb 13 01:39 watchdog
crw-rār-- 1 root root 253, 0 Feb 13 01:39 watchdog0
crw-rw-rw- 1 root root 1, 5 Feb 13 01:39 zero
I canāt exclude that Boinc is using /dev; but most of its data files are stored in /var/lib/boinc-client (on container, off course).
But, I have to admit, that often, e.g. after reboot and even sometimes later, the /dev directory is empty, as I see it just nowā¦ Iāll donāt pretend I understood it.
This is only to explain my point.