Giter VIP home page Giter VIP logo

exfat_clean's Introduction

Clean Dirty ExFAT Partition

macOS has a very dumb ExFAT driver compare to the one on Windows. The mac driver currupts ExFAT formatted portatable drive very often and take forever to repair. Bootcamp into Windows was my only option to clean currpted ExFAT hard drive. Now with exfat_clean you can solve this in under 1 second :)

WARNING

This may result in data loss, only use it if you are 100% sure the driver is being dumb and the hard drive is not actually corrupted.

How to use

  1. Find out your hard drive's ID
$ diskutil list
... (skipped)
/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *1.0 TB     disk2
   1:               Windows_NTFS Portable Drive          1.0 TB     disk2s1
  1. Now fix it
$ ./exfat_clean /dev/rdisk2s1

Note we are using the raw disk id for the partition rdisk2s1

How does this work

Long story short in the ExFAT partition header there is a bit called dirty bit. This program changes dirty bit to clean so the system assume the drive is already repaired (it was never broken to began with)

exfat_clean's People

Contributors

zzh8829 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

exfat_clean's Issues

Works under Linux

If you comment out #include<sys/disk.h>, one can straight compile and run under LInux. Thanks for this!

"vbr read failed" on Mac

I'm trying out your tool on my mac for a hard drive which often gets disconnected easily.
And it takes forever to do the fsck check.

I used your tool, and it gave me the following error: "vbr read failed"
I couldn't figure out the problem here as I am not proficient in C++.

What could be the isssue here?

$ ./exfat_clean /dev/rdisk2s2/
vbr read failed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.