Skip to main content

Disk image mounting via sudo losetup + mount (Linux)

Project description

mount-image-sudo

Disk image mounting via sudo losetup + mount (Linux).

PyPI version Python License OS

CI codecov

Quick start

from mount_image_sudo import mount_image, umount_image

device, mount_point = mount_image('/path/to/disk.img')
print(f'Mounted {device} at {mount_point}')
umount_image(device, mount_point)

API

  • mount_image(path, fstype='exfat', options=None)(device, mount_point)
  • umount_image(device, mount_point=None)
  • attach_image(path)device
  • detach_image(device)

License

GPL-3.0-only

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mount_image_sudo-0.1.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mount_image_sudo-0.1.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file mount_image_sudo-0.1.0.tar.gz.

File metadata

  • Download URL: mount_image_sudo-0.1.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mount_image_sudo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a23e190f775dc0e1a71df121d5bf04ce44ddfb9002818731246c67706e158091
MD5 a38a3cd04be69f0c9b1765c92b686445
BLAKE2b-256 ca9870225b5ca1c1bb82aacf599fc12911737430ad4acb4a6a4af8dbcab4f007

See more details on using hashes here.

Provenance

The following attestation bundles were made for mount_image_sudo-0.1.0.tar.gz:

Publisher: publish.yml on MBanucu/mount-image-sudo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mount_image_sudo-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mount_image_sudo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ab0fbc277617ba706f83d6f814471e75ebebce6cdb235b724d875c28fa05a8a
MD5 cf5b3edaada72a06d66cce4eae4902fa
BLAKE2b-256 977f976f468f5cd48c28725e72bbc48022de10fe9ad6d2936f9d64b7db89c2bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for mount_image_sudo-0.1.0-py3-none-any.whl:

Publisher: publish.yml on MBanucu/mount-image-sudo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page