How can i delete the old folder recovered using Testdisk

Hello,

Last month one of my folder disappeared on /dev/sda1.
After searching online i found that my data was corrupted and recovered it using testdisk
However my old folder still occupies capacity of my disk.
How i can delete the old folder with data inside it and free capacity from my disk

Welcome to the forum!

I’m afraid you are being much too vague for anyone to even understand what you’re talking about, so I can only offer you an equally vague solution.

If the folder is owned by you, then — assuming that it’s called some_folder — issue the following command: :arrow_down:

rm -rf some_folder

Replace some-folder by the name and path of the folder you want to delete. If the folder is not owned by you, you’ll have to prefix the command with sudo, and then you will be prompted for a password.

If the file system is badly damaged, it may be impossible to delete the folder.

You can then try to “repair” the file system. However, this could backfire and cause more damage. So you must first have a good backup of ALL the data in that filesystem.

It may be necessary to delete and recreate the partition. After that, restore your backup.

BUT no one can give good tips with so little information!


Welcome to Manjaro! :smiling_face_with_three_hearts:

  1. Please read the information behind this link. It will help you to post necessary information. [HowTo] Provide System Information
  2. Please press the three dots below your post and then press the :pencil2:
  • If you give us information about your system, we can see what we’re talking about and make better suggestions.
  • You can do this by using inxi in a terminal or in console.
inxi --admin --verbosity=7 --filter --no-host --width
  • Personally identifiable information such as serial numbers and MAC addresses are filtered out by this command
  • Presenting the information in this way allows everyone to be familiar with the format and quickly find the items they need without missing anything.
  1. Copy the output from inxi (including the command) and paste it into your post.
  • To make it more readable, add 3 backticks ``` on an extra line before and after the pasted text.
    (Wisdom lies in reading :wink: )
1 Like