DRSProjects

DocsParbit

Parbit documentation

FAQ & troubleshooting

Common questions

General

What is bit rot, and is it real? Data on a drive can change without the drive reporting an error: weak magnetic or flash cells, a sector going bad during years of storage, a faulty cable or controller. It is rare, but over terabytes and years it happens, and most file systems (NTFS, exFAT, ext4) cannot tell. You only find out when a file won't open.

How is this different from a backup? A backup protects against losing the drive. Parbit protects against damage inside files and repairs it from the same drive. They complement each other: a backup of damaged files is a damaged backup, and Parbit can't help if the drive dies.

How much space does it take? About REDUNDANCY% of your data (20% by default), plus a few KB per file. status shows the exact figure. Collections of many very small files take relatively more.

How long do update and verify take? Creating parity and verifying both read every file involved, so they take about as long as reading the data (plus some CPU time). update only reads new and changed files; verify reads everything.

Do I need it on Btrfs or ZFS? Those file systems already checksum data, and with redundancy (RAID, copies=2) repair it. Parbit is most useful on exFAT, NTFS, ext4 and FAT, on single external drives and USB sticks, and for archives that move between systems.

Can I open or use my files normally? Yes. They are ordinary files in an ordinary folder. Parbit never changes them except to repair them.

Does it work with macOS? No. The Linux script relies on GNU tools. It might be ported in the future.

During use

I edited files: will Parbit think they are damaged? No. A different size or modification time means an edit. Run update and the files get fresh parity. verify reports them as ~ modified since protected until then.

I reorganised my folders. Will everything be recomputed? No. Moved and renamed files keep their parity: update moves it along, without reading the files. If two moved files have the same size and timestamp, Parbit can't tell them apart and protects them as new files.

update says many files are missing and won't remove their parity. That's the mass-deletion guard: at least half of the protected files vanished at once, which usually means a drive that's not mounted or a folder that was moved away. Check that parbit/ contains your files. If you really deleted them, run update -y.

After plugging my drive into another computer, update says "timestamp changed, content intact" for many files. The drive is exFAT/FAT and the other computer uses a different time zone. Parbit checked the files: they're fine and only the new time was recorded.

A file is "DAMAGED (NOT repairable)". What now? More of it is damaged than the recovery data can cover. Restore it from a backup, then run update. If this happens to many files, the drive may be failing: copy everything off it and check its health (SMART: smartctl -a, or CrystalDiskInfo on Windows).

Repair says "could not write the repaired file". Usually a full disk. The repaired copy was saved in .parbit-quarantine/ as <name>.repaired. Free some space, then copy it over the original, or run repair again.

The verify reminder is annoying. config VERIFY_REMIND 365 for once a year, or 0 to turn it off.

Can I run Parbit on several folders? Yes. Each copy of the script protects the parbit/ folder next to it, with its own settings and schedule.

Can I change the folder name parbit? Not without editing the script (DATA= near the top). The fixed name is what makes the script work by just being placed next to it.

Problems

"par2 not found" Install it: sudo pacman -S par2cmdline, sudo apt install par2, or sudo dnf install par2cmdline. On Windows, bin\par2.exe must be next to parbit.ps1.

"another instance is already running" Another Parbit run (perhaps a scheduled one) is working on this folder. Wait for it to end. If none is running, the message can't appear: the lock is released automatically when a run ends, even if it crashed.

A run was interrupted (Ctrl+C, power loss, unplugged drive). Run the same command again. Half-built parity is discarded, and a file that was temporarily renamed is put back automatically (the message Restored … says so).

Notifications don't appear (Linux). notify-send must be installed (package libnotify) and a desktop session running. config NOTIFY all also notifies successful runs, which is handy for a test.

The scheduled check never runs (Linux). parbit.sh schedule status shows the timer. User timers run only while you're logged in, unless lingering is enabled: loginctl enable-linger $USER. Logs: journalctl --user -u 'parbit-*'.

For Windows-specific problems see Windows → Troubleshooting.

Edit this page on GitHub