Skip to content

Library for read only interactions with an ext4 filesystem

License

Notifications You must be signed in to change notification settings

Eeems/python-ext4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ext4 on PyPI

Ext4

Library for read only interactions with an ext4 filesystem.

from ext4 import Volume

# Extract raw ext4 image
with open("image.ext4", "rb") as f:
    # Extract specific file
    volume = Volume(image, offset=0)
    inode = volume.inode_at("/etc/version")
    with open("version", "wb") as f:
        f.write(inode.open().read())