Formatted partition showing read only

I formatted a partition from NTFS to ext4 using Gparted in linux. But now it is a read only file system. It is also showing root as the owner.
how to fix it and make it writable?

[ATTACH type=“full” width=“359px” alt=“Screenshot_2021-07-14_01-36-22.jpg”]383[/ATTACH]

If your system is debain based (ubuntu, mint, kali…)

 [code]sudo chown -R $(whoami):$(whoami) /media/$(whoami)/*[/code]

if your system is vanilla (arch, lfs, redhat)

sudo chown -R $(whoami):$(whoami) /run/media/$(whoami)/*

Both of the above command changes permissions, do use this with caution.

2 Likes

Ok. Thanks. It worked.

2 Likes