How do I know if a partition is ext2, ext3, or ext4?

The option is to use blkid:

# blkid /dev/sda1 
/dev/sda1: UUID="625fa1fa-2785-4abc-a15a-bfcc498139d1" TYPE="ext2"

This recognizes most filesystem types and stuff like encrypted partitions.

You can also search for partitions with a given type:

# blkid -t TYPE=ext2
/dev/sda1: UUID="625fa1fa-2785-4abc-a15a-bfcc498139d1" TYPE="ext2" 
/dev/sdb1: UUID="b80153f4-92a1-473f-b7f6-80e601ae21ac" TYPE="ext2"
  • 0 会员发现这个文章很有用
此答案有用吗?

相关文章

Linux /boot: Out of Disk Space While Installing Package kernel-2.6.32-131.2.1.el6.x86_64

I'm trying to install RHEL 6 kernel updates and patches using the yum command and getting the...

wget 下載整個網站,或者特定目錄

我需要下載這個目錄下面的所有文件。命令如下 wget -c -r -np -k -L -p www.xxx.org/pub/path/ -c 斷點續傳 -r...

Managing Multiple Hard Drives with cPanel.

If you have a server with single standalone drives, you may have considered the possibility of...

Optimizing InnoDB Disk I/O

If you follow the best practices for database design and the tuning techniques for SQL...

How To Install and Testing Memcache PHP Extension?

Create file test.php [code]$vi /home/www/public_html/test.php [/code] Execute test.php from...