{"id":16603284,"url":"https://github.com/dbrgn/superblock","last_synced_at":"2025-09-28T16:30:35.920Z","repository":{"id":6041962,"uuid":"7266479","full_name":"dbrgn/superblock","owner":"dbrgn","description":"A script written in Python to analyze the superblock of a ext2 formatted file.","archived":false,"fork":false,"pushed_at":"2013-01-31T00:08:56.000Z","size":172,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T10:42:24.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbrgn.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-21T00:12:49.000Z","updated_at":"2021-02-12T06:22:57.000Z","dependencies_parsed_at":"2022-09-07T20:30:48.787Z","dependency_job_id":null,"html_url":"https://github.com/dbrgn/superblock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fsuperblock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fsuperblock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fsuperblock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fsuperblock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbrgn","download_url":"https://codeload.github.com/dbrgn/superblock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234452074,"owners_count":18834740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T00:48:56.221Z","updated_at":"2025-09-28T16:30:35.640Z","avatar_url":"https://github.com/dbrgn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"##########\nsuperblock\n##########\n\nA script written in Python 2 to analyze the superblock of an ext2/ext3 formatted\nfile.\n\nSuch a file can be created as follows::\n\n    $ dd count=4096 if=/dev/zero of=filesystem.ext3\n    $ sudo mkfs.ext3 filesystem.ext3\n\nIt can be mounted with ::\n\n    $ sudo mount -t ext3 -o loop filesystem.ext3 /mnt/mountpoint\n\n\nInstall\n=======\n\nYou can either download ``superblock.py`` file and use it directly, or install\nthe ``superblock`` command via pip::\n\n    $ sudo pip install superblock\n\n\nUsage\n=====\n\n::\n\n    $ superblock [dump|analyze] \u003cfilename\u003e\n\n\nLicense\n=======\n\n`MIT License \u003chttp://www.tldrlegal.com/license/mit-license\u003e`_, see LICENSE file.\n\n\nExamples\n========\n\nDump\n----\n\n::\n\n    Printing superblock (bytes 1024-1535) of file fs.ext2.\n\n                         HEX                       ASCII      \n     1:  40000000 00020000 19000000 e2010000  @...............\n     2:  32000000 01000000 00000000 00000000  2...............\n     3:  00200000 00200000 40000000 82bad550  . ... ..@......P\n     4:  c4bcd550 0200ffff 53ef0100 01000000  ...P....S.......\n     5:  968bd550 00000000 00000000 01000000  ...P............\n     6:  00000000 0b000000 80000000 38000000  ............8...\n     7:  02000000 01000000 dc0cb51b 2ab54967  ............*.Ig\n     8:  8e602492 87974d10 65787065 72696d5f  .`$...M.experim_\n     9:  65787432 00000000 2f686f6d 652f6461  ext2..../home/da\n    10:  6e696c6f 2f50726f 6a656374 732f7375  nilo/Projects/su\n    11:  70657262 6c6f636b 2f6d6e74 00000000  perblock/mnt....\n    12:  00000000 00000000 00000000 00000000  ................\n    13:  00000000 00000000 00000000 00000100  ................\n    14:  00000000 00000000 00000000 00000000  ................\n    15:  00000000 00000000 00000000 ff27f89c  .............'..\n    16:  b5cb41d1 987de848 6b3e81ba 01000000  ..A..}.Hk\u003e......\n    17:  0c000000 00000000 968bd550 00000000  ...........P....\n    18:  00000000 00000000 00000000 00000000  ................\n    19:  00000000 00000000 00000000 00000000  ................\n    20:  00000000 00000000 00000000 00000000  ................\n    21:  00000000 00000000 00000000 00000000  ................\n    22:  00000000 00000000 00000000 00000000  ................\n    23:  01000000 00000000 00000000 00000000  ................\n    24:  00000000 00000000 00000000 00000000  ................\n    25:  00000000 00000000 00000000 00000000  ................\n    26:  00000000 00000000 00000000 00000000  ................\n    27:  00000000 00000000 00000000 00000000  ................\n    28:  00000000 00000000 00000000 00000000  ................\n    29:  00000000 00000000 00000000 00000000  ................\n    30:  00000000 00000000 00000000 00000000  ................\n    31:  00000000 00000000 00000000 00000000  ................\n    32:  00000000 00000000 00000000 00000000  ................\n\nAnalyze\n-------\n\n::\n\n    Analyzing superblock (bytes 1024-1535) of file fs.ext2.\n\n    Total number of inodes: 64\n    Filesystem size in blocks: 512\n    Number of reserved blocks: 25\n    Free blocks counter: 482\n    Free inodes counter: 50\n    Number of first block: 1\n    Block size: 0 (1024 Byte)\n    Fragment size: 0\n    Number blocks per group: 8192\n    Number fragments per group: 8192\n    Number inodes per group: 64\n    Number of block groups: 1\n    Time of last mount: 1356184194 (2012-12-22 14:49:54)\n    Time of last write: 1356184772 (2012-12-22 14:59:32)\n    Mount operations counter: 2\n    Number of mount operations before check: 65535\n    Magic signature: 0XEF53\n    Status flag: 1\n    Behavior when detecting errors: 1\n    Minor revision level: 0\n    Time of last check: 1356172182 (2012-12-22 11:29:42)\n    Time between checks: 0\n    OS Filesystem created: 0\n    Revision level: 1\n    Default user ID for reserved blocks: 0\n    Default group ID for reserved blocks: 0\n    Number first nonreserved inode: 11\n    Size of on-disk inode structure: 128\n    Block group number of this superblock: 0\n    Compatible features bitmap: 111000 (ext_attr resize_ino dir_index)\n    Incompatible features bitmap: 00010 (filetype)\n    Read-only features bitmap: 001 (sparse_super)\n    128-bit filesystem identifier: dc0cb51b-2ab5-4967-8e60-249287974d10\n    Volume name: experim_ext2\n    Path of last mount point: /home/danilo/Projects/superblock/mnt\n    Compression Algorithm: 00000 (none)\n    Number of blocks to preallocate: 0\n    Number of blocks to preallocate for directories: 0\n    Journal UUID: 00000000-0000-0000-0000-000000000000\n    Journal inode number: 0\n    Journal device number: 0\n    Journal last orphan: 0\n    Hash seed: 2633508863 3510750133 1223196056 3129032299\n    Hash version: 1\n    Default mount options: 01100 (xattr_user acl)\n    First meta block group ID: 0\n\n\nResources\n=========\n\n- `The Second Extended File System \u003chttp://www.nongnu.org/ext2-doc/ext2.html\u003e`__\n- `/usr/include/ext2fs/ext2_fs.h`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fsuperblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbrgn%2Fsuperblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fsuperblock/lists"}