Skip to content

Instantly share code, notes, and snippets.

View rafaell-lycan's full-sized avatar
💣
(╯°□°)╯ ︵ ┻━┻

Rafaell Lycan rafaell-lycan

💣
(╯°□°)╯ ︵ ┻━┻
View GitHub Profile
@ChenxiSSS
ChenxiSSS / fix_exfat_drive.md
Last active May 31, 2023 22:45 — forked from scottopell/fix_exfat_drive.md
Fix corrupted exFAT disk macOS/OSX

exFAT support on macOS seems to have some bugs since exFAT drives may or maynot randomly get corrupted.

In my case, "not ejected properly" often casue the drive in Resource busy, Volume on xxx failed to mount, File system check exit code is 1, or Timed out waiting, when try to use both Disk Utility or diskutil to mount, repair, or first aid the disk.

Possible fix is this:

  1. Use diskutil list to find the right drive id.
    • You want the id under the IDENTIFIER column, it should look like disk1s1.
    • disk1 marks the entire Disk. disk1s1 or disk1s2 marks each Volume.
  2. Usually, you want to check if the disk is occupied by one or many process.
@scottopell
scottopell / fix_exfat_drive.md
Last active March 9, 2024 12:08
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?
@singhshivam
singhshivam / Immutable JS Examples
Last active August 5, 2023 19:16
Immutable JS Examples
List()
var list = Immutable.List([1,2,3])
// [1, 2, 3]
List.isList()
Immutable.List.isList(list)
// true
List.of()
var list = Immutable.List.of(1,2,3);
@jonschlinkert
jonschlinkert / markdown-cheatsheet.md
Last active April 11, 2024 04:45
A better markdown cheatsheet.
@rafaell-lycan
rafaell-lycan / Sublime Preference Settings
Last active December 17, 2015 03:29
Sublime Text 2: Preferences.sublime-settings - User
// Packages Installed (Package Control)
// - AdvancedNewFile
// - All Autocomplete
// - AngularJS
// - AutoFileName
// - Better JavaScript
// - BracketHighlither
// - Emmet
// - FileDiffs
// - JavaScript Console