Skip to content

Instantly share code, notes, and snippets.

View ChenxiSSS's full-sized avatar
🎯
Focusing

Chenxi Shan ChenxiSSS

🎯
Focusing
  • Shanghai <- Cologne <- Shanghai <- Hefei
View GitHub Profile
@vjt
vjt / copy-from-time-machine.sh
Last active October 29, 2024 18:08
Copy data from a Time Machine volume mounted on a Linux box.
#!/bin/bash
#
# Copy data from a Time Machine volume mounted on a Linux box.
#
# Usage: copy-from-time-machine.sh <source> <target>
#
# source: the source directory inside a time machine backup
# target: the target directory in which to copy the reconstructed
# directory trees. Created if it does not exists.
#
@scottopell
scottopell / fix_exfat_drive.md
Last active November 16, 2024 14:29
Fix corrupted exFAT disk macOS/OSX

exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.

Disk Utility is unable to repair this at first, but the fix is this:

  1. Use diskutil list to find the right drive id.
  2. You want the id under the IDENTIFIER column, it should look like disk1s1
  3. Run sudo fsck_exfat -d <id from above>. eg sudo fsck_exfat -d disk1s3
  4. -d is debug so you'll see all your files output as they're processed.
  5. Answer YES if it gives you the prompt Main boot region needs to be updated. Yes/No?