Re: Can't Remember Which File System I Used On Sun, 26 Dec 2004 17:42:13 +0000, Peter Jensen wrote:
>> How can I identify a Linux file system on a partition?
>
> One way is to use the 'file' command on the partition block device. You
> need to use 'file -s /dev/whatever' because it's a special file. My
> ext3 partition shows this:
>
> /dev/hda2: Linux rev 1.0 ext3 filesystem data (needs journal recovery)
Just to warn everyone, file does not understand reiserfs.
root@terror gking # mount | grep reiserfs
/dev/hdc3 on / type reiserfs (rw,noatime)
root@terror gking # file -s /dev/hdc3
/dev/hdc3: data
--
War over! Balls thoroughly licked. |