Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried to go into the red folder (deleted folder) but it would not allow me to. I did press c to copy and it just copied over a filename of the deleted directory with no data.
I must be missing something if this program has great success
What happened when you tried to open the folder? Did you try with different folders? When I used testdisk I could open the deleted folders (just press Enter) and see a list of files that could be restored. Maybe it's different when you have LVM? I haven't tried testdisk with that.
Yeah, youre right but the disk was 1tb and im trying to recover +800GB.
I tried extundelete and when I would run extundelete /dev/sda2 --restore-all (sda2 is an lvm) i get an error regarding "bad magic number". Is that something i can fix to get extundelete to work?
Would it be that you have the drive # wrong? After making this statement.
Quote:
i was afraid that was going to be my only option. Another forehead flicker was it was my backup i oof'd up. i was in the middle of rebuilding when i realized i rm * my ext hdd. I know I know i should slap myself ..and i did.
You should at least know that if the inodes are already gone, recovering large files would be difficult. You'll probably recover segments of those but hardly as a whole. Or if you're lucky some would be recovered completely if they were stored contiguously on the disk. Smaller files like images could be easier.
Thanks guys. Yeah i think i agree with konsolebox. I may have done too much damage to repair it. My newbie move got me and you guys are right i need to use rm almost never.
I tried hitting enter on the red labeled folders but i couldnt get into it. I must be doing it wrong or it just must be unrecoverable
[...]I tried extundelete and when I would run extundelete /dev/sda2 --restore-all (sda2 is an lvm) i get an error regarding "bad magic number". Is that something i can fix to get extundelete to work?
I just noticed this. Your problem here is that this is the partition containing the volume group. (That's why there no "magic numbers" to be found on it.)
Try running the extundelete on the actual logical partition in /dev/mapper/....
If you actually let any "undelete" program write to /dev/sda2 your logical volumes will (most likely) be corrupted beyond recovery.
Last edited by PTrenholme; 04-16-2013 at 09:04 PM.
I just noticed this. Your problem here is that this is the partition containing the volume group. (That's why there no "magic numbers" to be found on it.)
Try running the extundelete on the actual logical partition in /dev/mapper/....
If you actually let any "undelete" program write to /dev/sda2 your logical volumes will (most likely) be corrupted beyond recovery.
You know! I think this might work! It started recovering files but it stopped because it was saving on my thumb drive. I'm going to have to figure out how to specify a destination. Many many thanks! Ill post updates.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.