Buy Linux Terminal Books

The Linux Command Line, 2nd Edition: A Complete Introduction

Linux Pocket Guide

Category: Linux Terminal

Added: 23rd of March 2016

Viewed: 2103 times

Unable to access files on external drive, change ownership and group using chown -R

After creating a new user account on Linux Mint and then logging in, I plugged in my external hard drive only to find I was unable to access any of the files on the drive, as the ownership and group was assigned to the other user

To solve this issue I did the following:

First of all I located the path to my external hard drive by entering the following command

cd /media/{username}

I then ran the following command to display the contents of the media directory, which displayed UUID number for my external drive.
dir

After this I changed ownership and group of the drive using the chown -R command.
sudo chown -R {username}:{username} /media/{username}/b69e1300-73a6-423d-bfaa-90827fe412fe/

I was then able to access all the files on the drive.

Other Tips & Tutorials

Linux Terminal

Capture screenshots of websites using cutycapt in different formats using the terminal in Ubuntu and Ubuntu based distributions

Posted: 15th of November 2020

Views: 69

Linux Terminal

Display a calendar in the terminal

Posted: 6th of November 2020

Views: 67

Linux Terminal

Create a simple cronjob in Linux

Posted: 20th of October 2020

Views: 161

Linux Terminal

Create a new folder and file using the mkdir and touch commands using the terminal in Linux

Posted: 16th of August 2020

Views: 219

Linux Terminal

Convert a PDF document to text or html using pdftotext, pdftohtml in Linux using the terminal

Posted: 3rd of August 2020

Views: 254

Linux Terminal

List files in a directory using the ls command

Posted: 22nd of July 2020

Views: 232

Linux Terminal

How to access HP Linux Imaging and Printing System set up on Ubuntu using the terminal

Posted: 13th of November 2019

Views: 540

Linux Terminal

Where are the log files located in Linux

Posted: 16th of October 2019

Views: 643

Linux Terminal

Oracle VirtualBox, Unable to insert virtual optical disk

Posted: 11th of October 2019

Views: 2177

Linux Terminal

Oracle VirtualBox only displaying 32-bit version(s), when setting up new Virtual Machine on Linux

Posted: 11th of October 2019

Views: 715