La Boina Roja

Linux, the struggles are real!

How to change permissions on an external drive

Leave a comment

Yes I am back again, and yes this how-to sucks major ass. But fuck it, I wrote it for ME not for you  photo fpuh.gif It took me way too fucking long to figure out, how to change the permissions on my new external 1TB hard drive  photo piangry.gif  After formatting and mounting it, the fuckface turned out to be read only. I formatted the drive to ext4, yes I love pain in the ass, how did you guess  photo emo.gif Anyways, here we go:

First find out what the new drive is called, we do this by typing:

 sudo fdisk -l

When asked, type your password.

finddriveIn my case the external hard drive is /dev/sdb1, then you need to find /dev/sdb1‘s mountpoint.

Type:

lsblk

mount

Now we know /dev/sdb1‘s mountpoint, we can type

sudo chown -R username:username /path/to/mounted/drive

Which in my specific case would look like:

sudo chown -R roja:roja /run/media/roja/6e197c29-4c0a-4172-a802-fe3068801a89/

Don’t worry peepz  photo emo.gif I used tab completion.

writing

After you typed your password, there will be no screen activity. But trust me, you can write + x to your external hard drive now  photo honger.gif

(The last command will change the owner and group of all the files on the drive, so be aware. I was so pissed in figuring this out, I didn’t give a fuck  photo emo.gif Also you can always do the cliccie for a larger piccie  photo puh2.gif)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s