Disk image mounting via sudo losetup + mount (Linux)
Project description
mount-image-sudo
Disk image mounting via sudo losetup + mount (Linux).
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)→devicedetach_image(device)
License
GPL-3.0-only
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a23e190f775dc0e1a71df121d5bf04ce44ddfb9002818731246c67706e158091
|
|
| MD5 |
a38a3cd04be69f0c9b1765c92b686445
|
|
| BLAKE2b-256 |
ca9870225b5ca1c1bb82aacf599fc12911737430ad4acb4a6a4af8dbcab4f007
|
Provenance
The following attestation bundles were made for mount_image_sudo-0.1.0.tar.gz:
Publisher:
publish.yml on MBanucu/mount-image-sudo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mount_image_sudo-0.1.0.tar.gz -
Subject digest:
a23e190f775dc0e1a71df121d5bf04ce44ddfb9002818731246c67706e158091 - Sigstore transparency entry: 1817666564
- Sigstore integration time:
-
Permalink:
MBanucu/mount-image-sudo@d3d8a4c489202eac36bdb0c397ed09df4d84d3d3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/MBanucu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d3d8a4c489202eac36bdb0c397ed09df4d84d3d3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mount_image_sudo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mount_image_sudo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ab0fbc277617ba706f83d6f814471e75ebebce6cdb235b724d875c28fa05a8a
|
|
| MD5 |
cf5b3edaada72a06d66cce4eae4902fa
|
|
| BLAKE2b-256 |
977f976f468f5cd48c28725e72bbc48022de10fe9ad6d2936f9d64b7db89c2bf
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mount_image_sudo-0.1.0-py3-none-any.whl -
Subject digest:
1ab0fbc277617ba706f83d6f814471e75ebebce6cdb235b724d875c28fa05a8a - Sigstore transparency entry: 1817666694
- Sigstore integration time:
-
Permalink:
MBanucu/mount-image-sudo@d3d8a4c489202eac36bdb0c397ed09df4d84d3d3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/MBanucu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d3d8a4c489202eac36bdb0c397ed09df4d84d3d3 -
Trigger Event:
push
-
Statement type: