前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >linux下查看磁盘分区的文件系统格式 原

linux下查看磁盘分区的文件系统格式 原

作者头像
拓荒者
发布2019-03-11 11:38:40
4.7K0
发布2019-03-11 11:38:40
举报
文章被收录于专栏:运维经验分享

linux下查看磁盘分区的文件系统格式

df -T 只可以查看已经挂载的分区和文件系统类型。

Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/sda1 ext4 20642428 3698868 15894984 19% / tmpfs tmpfs 32947160 0 32947160 0% /dev/shm

fdisk -l 可以显示出所有挂载和未挂载的分区,但不显示文件系统类型。

Disk /dev/sda: 299.4 GB, 299439751168 bytes 255 heads, 63 sectors/track, 36404 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: 0x000576df

Device Boot Start End Blocks Id System /dev/sda1 * 1 2611 20971520 83 Linux /dev/sda2 2611 3134 4194304 82 Linux swap / Solaris /dev/sda3 3134 36404 267248282 83 Linux

parted -l 可以查看未挂载的文件系统类型,以及哪些分区尚未格式化。

Model: LSI MR9240-8i (scsi) Disk /dev/sda: 299GB Sector size (logical/physical): 512B/512B Partition Table: msdos

Number Start End Size Type File system Flags 1 1049kB 21.5GB 21.5GB primary ext4 boot 2 21.5GB 25.8GB 4295MB primary linux-swap(v1) 3 25.8GB 299GB 274GB primary ext4

lsblk -f 也可以查看未挂载的文件系统类型。

NAME FSTYPE LABEL UUID MOUNTPOINT sda  |-sda1 ext4 c4f338b7-13b4-48d2-9a09-8c12194a3e95 / |-sda2 swap 21ead8d0-411f-4c23-bdca-642643aa234b [SWAP] `-sda3 ext4 2872b14e-45va-461e-8667-43a6f04b7bc9

file -s /dev/sda3

/dev/sda3: Linux rev 1.0 ext4 filesystem data (needs journal recovery) (extents) (large files) (huge files)

(adsbygoogle = window.adsbygoogle || []).push({});

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2018/08/03 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • linux下查看磁盘分区的文件系统格式
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档