您好,登錄后才能下訂單哦!
這篇文章主要為大家展示了“Linux下如何查看磁盤文件系統格式”,內容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領大家一起研究并學習一下“Linux下如何查看磁盤文件系統格式”這篇文章吧。
文件系統的種類有很多,每一種文件系統的結構,邏輯,存取速度,靈活性,安全性,大小,等等都不一樣。文件系統可以被使用在磁帶,移動硬盤,閃存等地方。總之,文件系統的類別有很多,也很復雜。
Try `df --help' for more information. [root@localhost huanghai]# df -T Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/sda3 ext4 541474624 431342832 82619832 84% / tmpfs tmpfs 16315340 627124 15688216 4% /dev/shm /dev/sda1 ext4 999320 64356 882536 7% /boot /dev/sdb1 ext4 4755888276 193163092 4321133328 5% /data /dev/sdc1 ext4 107406275100 53236939356 48798242192 53% /usr/local/tomcat7/webapps/dsideal_yy/html/down
[root@localhost huanghai]# fdisk -lDisk /dev/sda: 598.9 GB, 598879502336 bytes 255 heads, 63 sectors/track, 72809 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000ccf9c Device Boot Start End Blocks Id System /dev/sda1 * 1 131 1048576 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 131 4309 33554432 82 Linux swap / Solaris /dev/sda3 4309 72810 550239232 83 Linux WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdb: 4947.8 GB, 4947802324992 bytes 256 heads, 63 sectors/track, 599186 cylinders Units = cylinders of 16128 * 512 = 8257536 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 1 266306 2147483647+ ee GPT Partition 1 does not start on physical sector boundary. WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdc: 110000.0 GB, 109999997059072 bytes 256 heads, 63 sectors/track, 13321164 cylinders Units = cylinders of 16128 * 512 = 8257536 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 1048576 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdc1 1 266306 2147483647+ ee GPT Partition 1 does not start on physical sector boundary.
[root@localhost huanghai]# gdisk -l /dev/sdbGPT fdisk (gdisk) version 0.8.10 Partition table scan: MBR: protective BSD: not present APM: not present GPT: present Found valid GPT with protective MBR; using GPT. Disk /dev/sdb: 9663676416 sectors, 4.5 TiB Logical sector size: 512 bytes Disk identifier (GUID): BB32BC66-154F-40BC-A100-ADF169403ED0 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 9663676382 Partitions will be aligned on 2048-sector boundaries Total free space is 2014 sectors (1007.0 KiB) Number Start (sector) End (sector) Size Code Name 1 2048 9663676382 4.5 TiB 8300 Linux filesystem
Model: DELL PERC H330 Mini (scsi) Disk /dev/sda: 599GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 1075MB 1074MB primary ext4 boot 2 1075MB 35.4GB 34.4GB primary linux-swap(v1) 3 35.4GB 599GB 563GB primary ext4 Model: DELL MD38xxf (scsi) Disk /dev/sdb: 4948GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Number Start End Size File system Name Flags 1 1049kB 4948GB 4948GB ext4 Linux filesystem Model: HPE MSA 2050 SAN (scsi) Disk /dev/sdc: 110TB Sector size (logical/physical): 512B/4096B Partition Table: gpt Number Start End Size File system Name Flags 1 1049kB 110TB 110TB ext4 Linux filesystem
[root@localhost huanghai]# lsblk -fNAME FSTYPE LABEL UUID MOUNTPOINT sda ├─sda1 ext4 bc5635e2-b09f-4ff7-9749-b856bc33ab04 /boot ├─sda2 swap b025568d-9943-469c-92cf-1603ad89093e [SWAP] └─sda3 ext4 2f14a976-3e63-4a59-83e4-ccab3e5bc049 / sdb └─sdb1 ext4 d0b1d4d3-0284-4c48-9a23-ade65a571865 /data sdc └─sdc1 ext4 c2432c06-6459-473c-a884-e912c0db87dd /usr/local/tomcat7/webapps/dsideal_yy/html/down sr0
[root@localhost huanghai]# file -s /dev/sda3/dev/sda3: Linux rev 1.0 ext4 filesystem data (needs journal recovery) (extents) (large files) (huge files) You have mail in /var/spool/mail/root
以上是“Linux下如何查看磁盤文件系統格式”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注億速云行業資訊頻道!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。