Fix NTFS Partition on Ubuntu

I just installed Kubuntu 19.04 on my office PC, and it is a cool toy to play with, and what’s cooler is its name (Disco Dingo) and its features. Earlier I was running Windows 10 (Build 1809) on it. I was watching a youtube video on the latest distro’s of Linux, and people were praising for Disco Dingo lineup like anything. So I thought to give it a try. I have been using Linux on other computers I use, with different flavors and this isn’t my first encounter with KDE. But a new version is always something to be excited about.

When the installation finished Plasma desktop 5.15 bounced up before me and the first expression was “Wow”, the look and feel were fresh and the overall functioning was smooth as butter. I like everything about it. Now being a command line guy, I tweaked the terminal profile a little its transparent background with blur effect makes it look even more stunning.

Anyway, so I was using this PC with two other Hard Disk partitions for Official and Personal stuff, and while installation they were listed as sda5 and sda6 respectively. But I noticed that my Dolphin file manager was able to mount these partitions, but I could access my data on these drives in read-only mode. Checked all the mount permissions everything was correct but still, I was not able to write on these drives. So after some hit and trial, the following command did the job perfectly and without any complication.

If you face a similar issue, just use the following command in your terminal window.

~$ sudo ntfsfix /dev/sdaX
(Where X is drive number) if you have multiple physical hard disks, you might also need to mention the dev number as well.

In my case it was /dev/sda5 and /dev/sda6, so change the drive number and partition number according to your system. I executed the command separately for each partition.

NTFX FIX command and Linux partition Manager in ubuntu
NTFX FIX command and Linux partition Manager

Now if you are wondering how to check the partition number in Linux, just search for KDE Partition Manager in the application, when you open it, it will show all the physical drives and their logical partitions with appropriate details.

or there is a command line syntax as well which identifies the drives and partitions and works on all distro’s of Linux. simply give this command in your Linux Terminal/Konsole

~$ df -h

This will show the attached Drive and Partition information in the same terminal window like this.

Show Disk information in Linux Terminal
Shows Disk information in Linux Command Interface

There you go, That’s an easy fix and works perfectly.