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 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

How to install Perl by ssh?

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

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

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

wget 下載整個網站,或者特定目錄

我需要下載這個目錄下面的所有文件。命令如下 wget -c -r -np -k -L -p www.xxx.org/pub/path/ -c 斷點續傳 -r...

obtain the location of all files owned by this user

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

VPS上使用DropBox定時備份方案

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