Skip to content

Commit

Permalink
feat: how to fix ntfs drive
Browse files Browse the repository at this point in the history
  • Loading branch information
hmajid2301 committed Dec 6, 2023
1 parent c14a9f2 commit aee3442
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions content/posts/2023-12-06-til-how-to-ntfs-drive-on-nixos/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: "TIL: How to NTFS Drive on NixOS"
date: 2023-12-06
canonicalURL: https://haseebmajid.dev/posts/2023-12-06-til-how-to-ntfs-drive-on-nixos
tags:
- ntfs
- nixos
series:
- TIL
---

**TIL: How to NTFS Drive on NixOS**

Recently, I was trying to open an NTFS drive on my NixOS machine; however, the drive was corrupted. So I did the
following to fix the drive.

```bash
nix-shell -p ntfs3g
ntfsfix /dev/sda1
```

Where `/dev/sda1` is the broken drive. This was enough for me to be able to mount the drive and access the files on it.
I didn't need to fix it on a Window machine.

0 comments on commit aee3442

Please sign in to comment.