Re: Magic Number for New File system

From: Phil Lougher
Date: Sat Dec 18 2004 - 14:55:02 EST


On Fri, 17 Dec 2004 21:39:29 -0500, Theodore Ts'o <tytso@xxxxxxx> wrote:
> There's no standard place to put a magic number, let alone a standard
> way to generate a magic number....
>
> The blkid library, contained in the e2fsprogs distribution, contains a
> list of magic number and their locations used by various different
> filesystems, if you'd like to take a look at that for some more
> information.

The disktype program (http://disktype.sourceforge.net) can be used to
decode the content type of a disk/filesystem image. It recognises a
large amount of filesystems and partition types etc. From a quick
glance, the documentation describes the concepts behind magic numbers
and superblock formats, and gives an overview of the filesystem
formats recognised. If you're new to this, this is probably a
reasonable place to start.

Phillip
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/