LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-09-2008, 08:54 AM   #1
Herbivore
LQ Newbie
 
Registered: Mar 2008
Posts: 17

Rep: Reputation: 0
PhotoRec completely filled home - can not remove the recup_dir.# directories


System: Dual boot Win XP and Linux Mint (Cassandra). Running Linux exclusively. Linux file sys is ext3. Swap, root, and home are separate partitions on same hard disk.

1st use of PhotoRec. Wanted to recover deleted 700MB .avi file written to an NTFS partition on a different hard disk from home. File was deleted by mistake when the Del key was accidentally pressed. Didn't realize PhotoRec would write the whole partition to the home directory which consequently got filled to 100%. Attempts to recover space on the home directory from file browser window by deleting the recup_dir directories yields message, "no permission to modify parent folder."

From terminal tried

sudo rm recup_dir.1

Result: rm: cannot remove directory 'recup_dir.1': No such file or directory

ls command shows that the directory is there.



Will try to not reboot and have stopped all activity. Using a second computer to write this. Total newbie needs H e l p!
 
Old 04-09-2008, 11:01 AM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
You can try rm -rf recup_dir.1 which will force the directory deletion recursively (i.e. deleting all files inside it too).

If you can't get the machine running because /home is full, try using a live CD and then mount the drive and delete the directory from the live CD.

I've used photorec many times, and it doesn't copy the whole disk. What it does is search the disk for every single file of the types you've selected. Then it writes all of the files it finds into the directory you're running it from. It doesn't recover just one single file at a time. When you run it, you should make sure you've only checked the boxes for the *.avi files. Then you'll only get all the *.avi files.
 
Old 04-09-2008, 12:04 PM   #3
Herbivore
LQ Newbie
 
Registered: Mar 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Thumbs up Success

Quote:
Originally Posted by pljvaldez View Post
You can try rm -rf recup_dir.1 which will force the directory deletion recursively (i.e. deleting all files inside it too).

If you can't get the machine running because /home is full, try using a live CD and then mount the drive and delete the directory from the live CD.

I've used photorec many times, and it doesn't copy the whole disk. What it does is search the disk for every single file of the types you've selected. Then it writes all of the files it finds into the directory you're running it from. It doesn't recover just one single file at a time. When you run it, you should make sure you've only checked the boxes for the *.avi files. Then you'll only get all the *.avi files.
This worked fine. Home had 122k free. Maybe PhotoRec left a little wiggle room. Thank you! And the information about how PhotoRec works is very helpful. There could easily be too many .avi files for the directory into which it would write. Must be careful.

Thanks again.
 
Old 06-03-2013, 12:47 PM   #4
daddykins
LQ Newbie
 
Registered: Jun 2013
Posts: 1

Rep: Reputation: Disabled
Another method

I'm using Mint 14. I had the recup.dir problem after recovering photos and hd vids from a memory card. I just right-clicked the folder and ran it as root, it was then possible to simply delete it in the usual way (shift+del)
 
  


Reply

Tags
file recovery, permission, photorec, success


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Completely remove Gnome? android6011 Linux - Software 1 10-16-2006 03:15 PM
Root filled when tarring /home aragon127 Linux - Software 4 10-15-2006 02:32 PM
My home partition is getting filled up by something. dYz Linux - Newbie 14 08-09-2006 09:44 AM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
How to remove KDE completely openfun Debian 3 11-16-2005 06:23 AM


All times are GMT -5. The time now is 12:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration