0

So I installed it on a dual-boot on my Main drive, with the intention of this space being for the os and a few programs as this is my SSD with less space. I went back later and used GParted to make another partition for stuff I want to install on ubuntu on another hard drive, I have done this, and now I'm back in Ubuntu but I can't do anything to the drive as the owner is root.

I've looked online for help with this but all I can find is how to edit individual files on a root drive. how do I permanently become the owner?

if relevant the file system type is ext3/ext4

1
0

Hopefully the following will answer your question:

Change owner of internal hard drive partition from root to user

It says:

If the partition is called party, your user is called cyrex and it is in /media just do for example:

sudo chown cyrex:cyrex /media/cyrex/party -R (The R is for recursive so it affects all directory/files and subdirectory.

This would help you locate your drive:

How can I list the hard drive and all its partitions including size from terminal?

It says:

If you have an MBR partition table:

sudo fdisk -l

For both GPT and MBR partition tables:

?sudo parted -l

4
  • 1
    thanks, but it still isnt working, i'm doing sudo chown simon:simon /media/simon/1c512beb-7a97-4cf3-a4c9-70b77521ed -R as my terminal says that partition is that but it is saying their is no such file or directory. i have also tried it with /dev/sdb2 infront of it. am i doing something wrong? – SparkLX Nov 21 '18 at 22:09
  • is your partition really "/media/simon/1c" – Aubs Nov 21 '18 at 22:18
  • i used the command in the second link "lsblk" and got the mount point from the partition. – SparkLX Nov 21 '18 at 22:19
  • Sorry, I'd edited my previous comment - you can look at linuxandubuntu.com/home/… to get the list - sudo fdisk -l – Aubs Nov 21 '18 at 22:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.