I just formatted stuff. One disk I format as ext2. The other I want to format as ext4. I want to test how they perform.
Now, how do I know the kind of file system in a partition?
|
|
How do I tell what sort of data (what data format) is in a file? Here, you want to know the format of data in a device file, so you need to pass the
Given this sample output, the first disk has one partition and the second disk has two partitions. You must run this command as root, because ordinary users may not read disk partitions directly: if needed, add |
|||||||||||||
|
|
Another option is to use
This recognizes most filesystem types and stuff like encrypted partitions. You can also search for partitions with a given type:
|
|||||
|
|
You can use
|
|||||||||||||||
|
|
Still another way, since you know you're running some flavor of
If in the list you see:
The This method has the virtue of showing you the low-level differences. The important thing to realize here is that these three filesystems are forwards compatible, and to some extent backwards-compatible, too. Later versions just add features on top of the older ones. See the ext4 HOWTO for more information on this. |
||||
|
|
|
try using |
|||||||||||||||
|
|
fdisk -l will list Usage: fdisk [options] -l list partition table(s) fdisk -s give partition size(s) in blocks fdisk [options] change partition table |
|||||||
|