Linux - how to determine filesystem
Hello, is it possible to list filesystems on all available disks at once on linux ubuntu? I do not want to display this on a single disk, but ideally on all block devices that I write with the
Hello,
the easiest way to display / detect filesystems on linux is this command:
# lsblk
# df
To find out the filesystem for a particular disk / partition, this can be done using blkid or fsck, for example:
# blkid
# fsck
lsblk
command. Thanks a lot!REPLY
Hello,
the easiest way to display / detect filesystems on linux is this command:
# lsblk
lsblk -f
sda
`-sda1 crypto_LUKS 37bd1589-e2ac-4ca6-b20f-57d9871cf821
`-sda1_crypt ext4 e5ec4fb8-88be-4926-a7e8-cf0efcb7125b 35.6G 79% / mnt / data
# df
df -Th
dev / sdb2 ext4 705M 302M 353M 47% / boot
/ dev / sdb1 511f 7.8M 504M 2% / boot / efi
To find out the filesystem for a particular disk / partition, this can be done using blkid or fsck, for example:
# blkid
sudo blkid / dev / sdb2
/ dev / sdb2: UUID = "6c8085cf-2a9f-46d8-a4ab-c668de6fccec" TYPE = "ext4" PARTUUID = "2071b7d6-559e-4d10-93ad-653ec3abdd03"
# fsck
fsck -N / dev / sdb2
fsck from util-linux 2.33
[/usr/sbin/fsck.ext2 (1) - / boot] fsck.ext2 / dev / sdb2