LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-16-2013, 01:17 AM   #16
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85

Quote:
Originally Posted by Jslo040809 View Post
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.
 
Old 04-16-2013, 01:33 AM   #17
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
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.
 
Old 04-16-2013, 01:34 AM   #18
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
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.
 
Old 04-16-2013, 10:29 AM   #19
Jslo040809
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-16-2013, 07:46 PM   #20
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by Jslo040809 View Post
[...]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.
 
Old 04-16-2013, 11:40 PM   #21
Jslo040809
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by PTrenholme View Post
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.
 
  


Reply



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
I ran the makefile. Now what do I do? Rituparna Linux - Newbie 8 06-25-2009 08:08 PM
Hi, I ran this following code...... need help on this. LinuxInfo Programming 1 10-06-2008 03:01 PM
i think i ran out of space simeandrews Linux - General 6 09-01-2005 02:54 PM
Can't get X to come up after I ran FSCK zLinuxz Linux - General 3 08-10-2005 03:51 PM
When is /etc/profile ran? mcostello1 Linux - Software 2 09-21-2004 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:36 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
Open Source Consulting | Domain Registration