Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

A folder was created when I used a utility to recover pictures from a cd card that I deleted by mistake.

Now I can't delete it or move it. I am told I am not the owner of it even when I am logged on as root.

How can I delete the recup_dir.1 folder from my machine?

share|improve this question
add comment

4 Answers

When logged in as root open up a terminal, the command you should use is rm -rf ./recup_dir.1

share|improve this answer
    
Copied rm -rf ./recup_dir.1 from your post and entered it into a terminal and this was the output. –  Bob Brazie Feb 4 '12 at 23:05
    
Sorry about that. <g> bob@bob-HP:~$ rm -rf ./recup_dir.1 The folder is still locked and I can not delete it. –  Bob Brazie Feb 4 '12 at 23:06
add comment

I found this on launchpad and it answered my question. Thanks for the hilp.

I am not completely sure where these files are coming from, but http://www.aypcservices.com/?p=5525 (middle part of the page) indicates that they might be reconstructed picture files from the PhotoRec program (part of the testdisk package).

It seems they have been created in a way that they are owend by 'root', and you do not have access rights to look at them. To overcome that restriction you can do the following:

Open a terminal (Applications -> Accessories -> Terminal, or press ALT+F2, or press Ctrl+Alt+T) and in the window that opens enter "gksudo nautilus" (without the quotes). This will ask for your password and open a new file browser window with access rights as if logged in as root.

Now you should be able to browse all files.

Please use extreme caution when using this technique, because in that window the restrictions imposed on a 'normal user' (like: no rights to delete important system files) are temporarily overridden.

share|improve this answer
    
If you found an answer, you should mark it as Answer. See blog.stackoverflow.com/2011/07/… –  Olli Feb 3 at 18:13
add comment
sudo rm -r /home/elrafie/recup_dir.1
sudo rm -r /home/elrafie/recup_dir.2
share|improve this answer
add comment
sudo rm -r /home/elrafie/recup_dir.*
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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