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 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

如何透過SSH改變文件屬性與權限

我們現在知道文件權限對於一個系統的安全重要性了,也知道文件的權限對於使用者與群組的相關性, 那麼如何修改一個文件的屬性與權限呢?又!有多少文件的權限我們可以修改呢?...

Managing Multiple Hard Drives with cPanel.

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

How to complete uninstall Attracta tool?

Please run following command.  /usr/local/cpanel/3rdparty/attracta/scripts/uninstall-attracta

PHP 時區 timezone 設定

php.ini找到 [Date];date.timezone = 改為 [Date]date.timezone = "Asia/Taipei" 記得前面的冒號 ;...

使用mod_Bandwidth 限制連線數與速度教學

# wget ftp://ftp.cohprog.com/pub/apache/module/1.3.0/mod_bandwidth.c# apxs -cia mod_bandwidth.c...