Linux 查看文件系统的几条命令
root@performance:~# df -Th Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 32G 0 32G 0% /dev tmpfs tmpfs 6.3G 5.1M 6.3G 1% /run /dev/mapper/debian--vg-root ext4 5.5T 707G 4.5T 14% / tmpfs tmpfs 32G 92K 32G 1% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sda2 ext2 471M 49M 398M 11% /boot /dev/sda1 vfat 511M 3.5M 508M 1% /boot/efi tmpfs tmpfs 6.3G 4.0K 6.3G 1% /run/user/0 overlay overlay 5.5T 707G 4.5T 14% /var/lib/docker/overlay2/b156fd20c7539837586987d88a736ea429e8c2e89b99fd1222f0beebc8893f49/merged overlay overlay 5.5T 707G 4.5T 14% /var/lib/docker/overlay2/c56438202f055b9b6cee17fedce50422ecb0fcb952648ac2babd29f0887958d7/merged root@performance:~# root@performance:~# lsblk -f NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT sda ├─sda1 vfat FAT32 3E0C-E133 507.6M 1% /boot/efi ├─sda2 ext2 1.0 58106e4b-bd0c-4061-978b-3f8109031ec8 397.4M 10% /boot └─sda3 LVM2_member LVM2 001 AFWDek-zkrr-T14o-wZvx-02po-dul4-U3yuHU ├─debian--vg-root ext4 1.0 4e55cce3-5c83-45f4-9850-e2f9f4cf574e 4.4T 13% / └─debian--vg-swap_1 swap 1 4c2686bb-4c86-46cc-83e8-8482527f1698 [SWAP] root@performance:~# root@performance:~# blkid /dev/sda1: UUID="3E0C-E133" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="50dab231-be15-425a-a635-34a6c6fb0db0" /dev/sda2: UUID="58106e4b-bd0c-4061-978b-3f8109031ec8" BLOCK_SIZE="1024" TYPE="ext2" PARTUUID="da00f1e7-ec69-4a39-8855-4cc862a57570" /dev/sda3: UUID="AFWDek-zkrr-T14o-wZvx-02po-dul4-U3yuHU" TYPE="LVM2_member" PARTUUID="16042c4f-2b86-4d2d-a72f-83fc7afc77a1" /dev/mapper/debian--vg-root: UUID="4e55cce3-5c83-45f4-9850-e2f9f4cf574e" BLOCK_SIZE="4096" TYPE="ext4" /dev/mapper/debian--vg-swap_1: UUID="4c2686bb-4c86-46cc-83e8-8482527f1698" TYPE="swap" root@performance:~# root@performance:~# cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # systemd generates mount units based on this file, see systemd.mount(5). # Please run 'systemctl daemon-reload' after making changes here. # # <file system> <mount point> <type> <options> <dump> <pass> /dev/mapper/debian--vg-root / ext4 errors=remount-ro 0 1 # /boot was on /dev/sda2 during installation UUID=58106e4b-bd0c-4061-978b-3f8109031ec8 /boot ext2 defaults 0 2 # /boot/efi was on /dev/sda1 during installation UUID=3E0C-E133 /boot/efi vfat umask=0077 0 1 /dev/mapper/debian--vg-swap_1 none swap sw 0 0 /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0 root@performance:~#