<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Ntfs on Haseeb Majid</title>
    <link>https://haseebmajid.dev/tags/ntfs/</link>
    <description>Recent content in Ntfs on Haseeb Majid</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Wed, 06 Dec 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://haseebmajid.dev/tags/ntfs/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>TIL: How to Fix a NTFS Drive on NixOS</title>
      <link>https://haseebmajid.dev/posts/2023-12-06-til-how-to-ntfs-drive-on-nixos/</link>
      <pubDate>Wed, 06 Dec 2023 00:00:00 +0000</pubDate>
      <author>Me</author>
      <guid>https://haseebmajid.dev/posts/2023-12-06-til-how-to-ntfs-drive-on-nixos/</guid>
      <description>&lt;p&gt;&lt;strong&gt;TIL: How to NTFS Drive on NixOS&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;nix-shell -p ntfs3g
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;ntfsfix /dev/sda1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Where &lt;code&gt;/dev/sda1&lt;/code&gt; is the broken drive. This was enough for me to be able to mount the drive and access the files on it.
I didn&amp;rsquo;t need to fix it on a Window machine.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><strong>TIL: How to NTFS Drive on NixOS</strong></p>
<p>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.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nix-shell -p ntfs3g
</span></span><span class="line"><span class="cl">ntfsfix /dev/sda1
</span></span></code></pre></div><p>Where <code>/dev/sda1</code> is the broken drive. This was enough for me to be able to mount the drive and access the files on it.
I didn&rsquo;t need to fix it on a Window machine.</p>
]]></content:encoded>
    </item>
    
  </channel>
</rss>
