Linux – How to get read and write permissions to a hard drive in Ubuntu Linux

hard drivelaptoplinuxpermissionsUbuntu

I have a rather unique situation:

I have a laptop which boots its Linux OS (Ubuntu 18.04.2 LTS) from a USB drive.

I also have a internal hard drive installed.

I would like to edit the hard drive, but unfortunately, the drive is in "Read only" state.

The disk has been "salvaged" from a dead Windows based pc (the OS was not installed on that particular drive).

How can I have both Read and Write access to that HDD so i could edit some data in it?

Best Answer

To install ntfs-3g in Ubuntu (since you use Ubuntu and not Arch), do

sudo apt-get install ntfs-3g

Then find the name of the HDD

sudo fdisk -l | grep NTFS

Edit the list of drives to be mounted after making a backup copy of the fstab file

sudo cp /etc/fstab /etc/fstab.bak
sudo nano /etc/fstab

And follow the examples in these instructions so the drive will be mounted R/W

Related Question