Prepare Exfat Ntfs Drives 130 Hold To Keep Existing Cache -
When you write a file to a USB drive, the computer often stores it in RAM (cache) before actually writing it to the physical disk. This is faster, but if you pull the drive out before the cache is flushed, you lose data.
umount /dev/sdX1
After the quick format, the file system sees an empty directory tree. Your cache is still there in raw sectors, but invisible. To “re-import” the cache:
For NTFS, use ntfsrecover to scan for orphaned MFT entries:
ntfsrecover -s $dev1 -o /mnt/recovered_cache/
For exFAT, use exfatfsck -V Then mount with -o ro and a custom cluster map. prepare exfat ntfs drives 130 hold to keep existing cache
Simpler approach for video/audio caches:
Most applications (DaVinci Resolve, Adobe Media Encoder) store cache files with predictable names. After the new format, remount the drive and let the application verify existing files. Since the sectors weren’t overwritten, a chkdsk or fsck will find the old directory structure.
# Mount the newly prepared exFAT drive
mount -t exfat -o ro,loop,offset=1048576 $dev1 /mnt/cache_hold
If you are encountering a specific error or prompt containing "130," it may relate to a specific software environment.
Option A: Repair exFAT (keeps cache)
# Linux
fsck.exfat /dev/sdX1 -y
# This fixes error 130 (corrupt allocation bitmap)
Option B: Convert NTFS to exFAT (preserve cache via temporary copy) If you need to switch file systems but keep cache: When you write a file to a USB
Option C: Shrink/Expand partition to resolve "130 hold" Error 130 can mean the cache is at the physical end of the drive. Use:
# Shrink NTFS from the end (keeps cache safe at the start)
ntfsresize -s 120G /dev/sdX1 --no-action
# Then adjust partition table with fdisk
After running the above, verify cache integrity:
| Test | exFAT | NTFS |
|------|-------|------|
| List hidden cache dir | ls -la /mnt/.cache/ | ls -la /mnt/\$Extend/ |
| Check file checksum | md5sum /mnt/cache.bin | same |
| System cache retention flag | cat /sys/block/sdX/device/hold130 (if exposed) | same |
If any checksum fails, the 130 hold was not honored – immediately remount read-only and restore from backup. After the quick format, the file system sees
This is the critical step: you need to resize or recreate the file system header while leaving the cache data blocks untouched.
Recommended tool: gparted (Linux) or DiskGenius (Windows) – these support "move/resize without formatting."
Most mkfs commands destroy data. However, you can use a hold pattern: