LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-20-2013, 01:02 AM   #1
rng
Member
 
Registered: Aug 2011
Posts: 747

Rep: Reputation: 23
Undelete files from a folder only


Is it possible to undelete files from one folder only (on an ext4 partition)? If so, do I need to mount the partition first? And what would be the exact command? I need to undelete *.xz files deleted from a folder named myfolder on a partition abcd which is usually mounted on /media/abcd/myfolder. Can I add an option to recover only files created later than 10th Feb, 2013?

I checked and found several utilities for recovering deleted files: extundelete, foremost, scalpel, photorec of testdisk etc. I tried extundelete and foremost but they search entire partition for deleted files and hence take a long time for unnecessary files.

Thanks for your help.

Last edited by rng; 02-20-2013 at 01:05 AM.
 
Old 02-20-2013, 01:27 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
I don't think so, because files aren't in fact stored under a dir (physically).
The inode entry just tells the OS where to find the data blocks in the partition. They can be anywhere.
http://216.147.18.102/unixfaq/filesystem.shtml

As an example, this is why quotas are only set at the filesystem/partition level http://www.linuxtopia.org/online_boo...sk-quotas.html
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac File Undelete Software, Undelete Mac files liesnsys Linux - Hardware 3 07-23-2009 10:50 PM
undelete folder including files p41elvis Linux - General 6 10-20-2006 03:56 AM


All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
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