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 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Související články

使用mod_limitipconn 限制單線下載教學

# wget http://dominia.org/djao/limit/mod_limitipconn-0.23.tar.bz2# tar xjf...

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

HowTo: Fix "Couldn't resolve host 'mirrorlist.centos.org'" [CentOS]

login root#vi /etc/sysconfig/network-scripts/ifcfg-eth0insert ONBOOT=yes, BOOTPROTO=staticadd...

obtain the location of all files owned by this user

Code: # id username # find / -uid UIDNUMBER > /root/username.output Replace the first...

Rsync Backup/Restore Instructions of cloud servers.

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