Locked HDD / can't save files on it on Linux

mehmetkay-sudo

New Member
Joined
Jan 19, 2024
Messages
4
Reaction score
0
Credits
31
Hi,

i want to record my screen on OBS-Studio and save the video files on an external HDD.
My OS tells me, that the HDD is locked and nothing can be saved on it.

Is there any command to unlock the HDD with chmod or something similiar, so i can save files on the HDD again?

The path to my HDD would be something like run/media/[HDD]...

Thanks for the help in advance.

I can attach screenshots, if needed.

Bests,
mehmetkay-sudo
 


Welcome to the forum first off

What you need to do first is run from the terminal with the drive plugged in
ls -la /media
This will tell you who actually owns the drive whether it is you or root

My guess it is root then what you can do is change the owner of the partition with the command:
sudo chown -R user:user /partition (where user is your_username),
and optionally change the permissions of the partition, at least to save your data. After that I would reformat the disk, repartition, give it an appropriate label, then put your data back onto it
 
Thanks! Nice to be here.

Thank you very much for your support. I will try it out.

Bests,
MKS
 
When i use the command:

Code:
sudo chown -R mehmetkay-sudo:mehmetkay-sudo /partition (where user is your_username)

with the right partition path, the terminal says chown: invalid group in german.

The owner of the partition is not root. It is my username.
 
tune2fs can be used to force the kernel to mount a Linux file system read-only. Use the mount command to see if this has happened.

Signed,

Matthew Campbell
 

Members online


Top