Introduction
This utility is an update to a blog post that aimed to help OS X users verify external Time Machine disks and overcome a diskutil deficiency.
Rationale
The blog entry notes that a user can use the graphical Disk Utility in a certain order to unmount the Time Machine volume and then use the utility to "Repair" the volume.
Unfortunately, even after unmounting the volume OS X leaves what I think are local snapshots mounted that reference the external volume. They are of the form:
com.apple.TimeMachine.2021-08-31-103804.backup@/dev/disk7s2 on /Volumes/ . . . . . . .
Thus, the Repair operation fails.
This utility manually unmounts those pesky time machine volumes
Usage
peskytm --help
Usage: peskytm.py [OPTIONS]
Options:
--version Show the version and exit.
--help Show this message and exit.
Notice this utility has no parameters. You simply execute it. Internally, peskytm use sudo, so you will be prompted for your OS X password (Don't worry the utility does nothing but pass it along). You will then see output like the following:
peskytm
com.apple.TimeMachine.2021-08-31-103804.backup@/dev/disk7s2 unmounted
com.apple.TimeMachine.2021-09-09-221954.backup@/dev/disk7s2 unmounted
com.apple.TimeMachine.2021-09-16-141610.backup@/dev/disk7s2 unmounted
com.apple.TimeMachine.2021-09-26-120444.backup@/dev/disk7s2 unmounted
com.apple.TimeMachine.2021-10-06-172708.backup@/dev/disk7s2 unmounted
com.apple.TimeMachine.2021-10-14-144954.backup@/dev/disk7s2 unmounted
Once you manually unmount this pesky volumes you can either use the graphical utility or the command line utility (CLI). An example, usage of the CLI is:
sudo fsck_apfs -y /dev/disk7s2
How to Install
pipx install peskytm
Metadata
Release files for peskytm 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| peskytm-1.0.0.tar.gz | 16.4 kB | Without provenance | Details for peskytm-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| peskytm-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for peskytm-1.0.0-py3-none-any.whl |
Total release size: 33.1 kB
Release files / peskytm-1.0.0.tar.gz
| Download URL | peskytm-1.0.0.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
643c0231476e61909a45fa9893279d28d3b2f4bd69ca560b14d88b7a71360c26
|
|
BLAKE2b-256 checksum How to use checksums |
082994a84c7e78aec9a936fe1acac8b4251b1cf78e2dc6625d6e8c43af2fad72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|
Release files / peskytm-1.0.0-py3-none-any.whl
| Download URL | peskytm-1.0.0-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2bf58b027fb9a6b762874e97fbbac061e4e23a3643b906c8980d4a71ea6d28f6
|
|
BLAKE2b-256 checksum How to use checksums |
d9373cba260a3c676b210a88b6355c0ff5f5c7714dbf43e1d694a005ad0940dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|
Security for peskytm 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.