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...

Rsync Backup/Restore Instructions of cloud servers.

Detailed Rsync backup instructions are available   To begin, simply log in as root to...

Add Install mod_rpaf on CentOS 5, CentOS 6

This is a quick guide on how to install mod_rpaf on CentOS 5 and CentOS 6. (This guide can also...

Installing PHPShield Loaders - PHP5.3.x Server

In this tutorial, we will show you how to do this on a server that is running PHP5.3.x Please...