command to list all devices of all filesystems?
I have a RAID1 filesystem:
root@mux22:~# btrfs filesystem show /dev/sda4
Label: 'M22' uuid: 9329698e-bbb0-4047-bcef-863e584f314b
Total devices 2 FS bytes used 144.00KiB
devid 1 size 64.00GiB used 2.01GiB path /dev/sda4
devid 2 size 64.00GiB used 2.01GiB path /dev/sdb4But lsblk, df and mount shows me only the first device:
root@mux22:~# lsblk -o NAME,UUID,MOUNTPOINT /dev/sda /dev/sdb NAME UUID MOUNTPOIN sda |-sda1 |-sda2 774F-1CB7 |-sda3 fb1524a1-54a6-4688-ba16-6d1678d71b64 |-sda4 9329698e-bbb0-4047-bcef-863e584f314b /mnt/tmp |-sda5 46c63421-65a7-4c49-8dcb-ea485182437d `-sda6 sdb |-sdb1 |-sdb2 08C5-01F2 |-sdb3 82a88cda-9315-41d0-ab45-b656cb19f715 |-sdb4 9329698e-bbb0-4047-bcef-863e584f314b |-sdb5 483b9508-11d0-4b94-b525-618c9e3336ef `-sdb6 2d368a60-27c4-44ad-9b88-42268f1f65cb
root@mux22:~# df /mnt/tmp Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda4 67108864 5776 66051072 1% /mnt/tmp
root@mux22:~# mount | grep /mnt /dev/sda4 on /mnt/mnt type btrfs (rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/)
Id there a command which lists all devices of all mounted filesystems?
Signature · 6 lines
Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: [email protected] Allmandring 30a Tel: ++49-711-68565868 70569 Stuttgart (Germany) WWW: https://www.tik.uni-stuttgart.de/ REF:<[email protected]>
Quoted 1 line · Ulli Horlacher
Id there a command which lists all devices of all mounted filesystems?
I have now written lshd:
https://fex.belwue.de/linuxtools/bin/lshd
root@mux22:~# mount /dev/sda4 /mnt/sda4 root@mux22:~# mount /dev/sdb6 /mnt/sdb6 root@mux22:~# lshd Device Size Type Label Mountpoint sda 3.5T SAS:GPT "NETAPP_X357_SLBPE3T8ATE" sda1 4M BIOS boot sda2 1016M vfat "EFI" sda3 64G swap "swap" sda4 64G btrfs "M22" /mnt/sda4 sda5 64G btrfs "tmp" sda6 3.3T btrfs "local" /mnt/sdb6 sdb 3.5T SAS:GPT "NETAPP_X357_SLBPE3T8ATE" sdb1 4M BIOS boot sdb2 1016M vfat sdb3 64G swap sdb4 64G btrfs "M22" /mnt/sda4 sdb5 64G btrfs sdb6 3.3T btrfs "local" /mnt/sdb6 sdc 3.5T SAS:GPT "NETAPP_X357_SLBPE3T8ATE" sdc1 4M BIOS boot sdc2 1016M vfat sdc3 64G swap sdc4 64G Linux sdc5 64G btrfs sdc6 3.3T btrfs sdd 3.5T SAS:GPT "NETAPP_X357_SLBPE3T8ATE" sdd1 4M BIOS boot sdd2 1016M vfat sdd3 64G swap sdd4 64G btrfs sdd5 64G btrfs sdd6 3.3T btrfs sde 1.8T ATA:DOS/MBR "ATA_SEAGATE_ST2000NM" sde1 32G swap "swap" sde2 64G btrfs "mux22" / sde3 64G ext4 "tmp" sde4 1.7T btrfs "local"
In opposite:
root@mux22:~# lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT NAME SIZE FSTYPE LABEL MOUNTPOIN sda 3.5T |-sda1 4M |-sda2 1016M vfat EFI |-sda3 64G swap swap |-sda4 64G btrfs M22 /mnt/sda4 |-sda5 64G btrfs tmp `-sda6 3.3T btrfs local /mnt/sdb6 sdb 3.5T |-sdb1 4M |-sdb2 1016M vfat |-sdb3 64G swap |-sdb4 64G btrfs M22 |-sdb5 64G btrfs `-sdb6 3.3T btrfs local sdc 3.5T |-sdc1 4M |-sdc2 1016M vfat |-sdc3 64G swap |-sdc4 64G |-sdc5 64G btrfs `-sdc6 3.3T btrfs sdd 3.5T |-sdd1 4M |-sdd2 1016M vfat |-sdd3 64G swap |-sdd4 64G btrfs |-sdd5 64G btrfs `-sdd6 3.3T btrfs sde 1.8T |-sde1 32G swap swap |-sde2 64G btrfs mux22 / |-sde3 64G ext4 tmp `-sde4 1.7T btrfs local
Signature · 6 lines
Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: [email protected] Allmandring 30a Tel: ++49-711-68565868 70569 Stuttgart (Germany) WWW: https://www.tik.uni-stuttgart.de/ REF:<[email protected]>