Solved Formatted partition showing read only

Solution
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?

View attachment 383
If your system is debain based (ubuntu, mint, kali...)

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

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

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

Both of the above command changes permissions, do use this with caution.
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?

View attachment 383
If your system is debain based (ubuntu, mint, kali...)

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

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

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

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

Sponsored