rawdisk.plugins.filesystems.ext2 package

Submodules

rawdisk.plugins.filesystems.ext2.ext2 module

Linux Ext2 volume:

offset size description

0x0 1024 boot block (unused) 0x400 1024 superblock

class rawdisk.plugins.filesystems.ext2.ext2.Ext2[source]

Bases: rawdisk.plugins.categories.IFilesystemPlugin

Plugin for Linux partition(s)

detect(filename, offset, standalone=False)[source]

Method is called by detector for each plugin, that is registered with FilesystemDetector.

get_volume_object()[source]

Returns plugin’s volume object (inherited from Volume)

mbr_identifiers

Should return a list (usually one) of MBR identifiers that are used to detect this volume

rawdisk.plugins.filesystems.ext2.ext2_volume module

class rawdisk.plugins.filesystems.ext2.ext2_volume.Ext2Volume[source]

Bases: rawdisk.filesystems.volume.Volume

dump_volume()[source]

Print volume information to std output, similar to ntfsprogs_1.22 package

load(filename, offset)[source]

Load volume information.

Parameters:
  • filename – Filename or device that it will read volume.
  • from. (information) –
  • offset – Volume offset.

rawdisk.plugins.filesystems.ext2.superblock module

class rawdisk.plugins.filesystems.ext2.superblock.SuperBlock(**kwargs)[source]

Bases: rawdisk.util.rawstruct.RawStruct

Ext2 (and probably other ExtN) superblock. See http://wiki.osdev.org/Ext2#Superblock

Module contents