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 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Relaterede artikler

How to install Perl by ssh?

Fatal! Perl must be installed before proceeding!To Resolve These Problem First we need to install...

Centos 安裝使用rsync 進行備份

一、前言 使用rsync可以進行FTP, SSH進行備份同步資料,安裝設定簡單,安全性都不錯。在centos中很多都已經配備了rsync,只需要進行簡單設定就可以使用。...

Optimizing InnoDB Disk I/O

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

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

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

Manual backup via WHM

ran this command # /scripts/cpbackup --force & got following output [cpbackup] Process...