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 Користувачі, які знайшли це корисним
Ця відповідь Вам допомогла?

Схожі статті

Apache restart failed. Unable to load pid from pid file and no httpd process found in process list.

Steps to Resolve the above error1.Login to ssh and type killall -9 httpd then try to restart http...

Apache如何設定在一個ip的前提下使用兩個不同的網域?

Apache 的 httpd.conf 只要把下面的設定加到最後面,再重跑就好了:...

VPS上使用DropBox定時備份方案

這個備份方案是直接使用dropbox同步,如果想實時同步就一直守護dropbox進程,會佔用一定資源。1.linux上安裝dropbox 32位linux wget -O...

Managing Multiple Hard Drives with cPanel.

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

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