diff --git a/content/posts/2023-12-06-til-how-to-ntfs-drive-on-nixos/images/cover.png b/content/posts/2023-12-06-til-how-to-ntfs-drive-on-nixos/images/cover.png new file mode 100644 index 0000000..f76903b Binary files /dev/null and b/content/posts/2023-12-06-til-how-to-ntfs-drive-on-nixos/images/cover.png differ diff --git a/content/posts/2023-12-06-til-how-to-ntfs-drive-on-nixos/index.md b/content/posts/2023-12-06-til-how-to-ntfs-drive-on-nixos/index.md new file mode 100644 index 0000000..435f23e --- /dev/null +++ b/content/posts/2023-12-06-til-how-to-ntfs-drive-on-nixos/index.md @@ -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.