LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-03-2008, 12:29 PM   #1
NMY
Member
 
Registered: Aug 2008
Posts: 34

Rep: Reputation: 15
Help me find 'Linux File Recovery' software for Linux OS.


I'm using [k]Ubuntu 8.04.1. KDE

I did google it, but without any luck.

Adept offers only gddrescue.

I did 'shift+delete' one folder this morning and now I want to get it back >.<
 
Old 08-03-2008, 02:01 PM   #2
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
http://recover.sourceforge.net/linux/
 
Old 08-03-2008, 02:05 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Here is a article at InformationWeek.com that discusses several tools for file recovery. I hope one of them works for you.
http://www.informationweek.com/news/...yText=&isPrev=
 
Old 08-03-2008, 05:45 PM   #4
NMY
Member
 
Registered: Aug 2008
Posts: 34

Original Poster
Rep: Reputation: 15
I thank both of you. Cookies for all
 
Old 08-03-2008, 06:19 PM   #5
NMY
Member
 
Registered: Aug 2008
Posts: 34

Original Poster
Rep: Reputation: 15
Now I have this dumb situation. I've downloaded 'pmagic-3.0.iso.zip' from http://exo.enarel.eu/mirror/partedmagic/. I did extract the zip file and I got *.iso file. I did mount *.iso file in /mnt/iso and I have no clue what to do next??

http://img165.imageshack.us/img165/5...reen001bd6.jpg
 
Old 08-03-2008, 06:31 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Depends..
Let us assume that you want to create a usable partition magic CD.

I haven't a clue what OS you are using (Oh, yes I do-- Kubuntu ).. OK, You can either use something like k3b to burn the ISO to a CD, or you can do what I would do (because I have never tried out k3b) and burn the image to a CD using the following command in a terminal (konsole) window:

root# cdrecord dev=/dev/hdc speed=4 padsize=63s -pad -dao -v -eject ./path/to/file.iso

And just substitute in your own /dev/h?? for your burning device, and fill in the right path to the ISO image file. That should do it. Then you can reboot and boot up the pmagic CD.

Sasha
 
Old 08-03-2008, 07:00 PM   #7
NMY
Member
 
Registered: Aug 2008
Posts: 34

Original Poster
Rep: Reputation: 15
I did speed it up. Gone for reboot.
Quote:
cdrecord dev=/dev/scd0 speed=52 padsize=63s -pad -dao -v -eject /home/raimonds/Downloads/pmagic*.iso
TOC Type: 1 = CD-ROM
wodim: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.scsidev: '/dev/scd0'
devname: '/dev/scd0'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Wodim version: 1.1.6
SCSI buffer size: 64512
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'LITE-ON '
Identification : 'COMBO SOHC-5232K'
Revision : 'NK0G'
Device seems to be: Generic mmc2 DVD-ROM.
Current: 0x0009 (CD-R)
Profile: 0x002B (DVD+R/DL)
Profile: 0x0010 (DVD-ROM)
Profile: 0x000A (CD-RW)
Profile: 0x0009 (CD-R) (current)
Profile: 0x0008 (CD-ROM)
Profile: 0x0002 (Removable disk)
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE FORCESPEED
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1424896 = 1391 KB
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
FIFO size : 12582912 = 12288 KB
Track 01: data 44 MB padsize: 126 KB
Total size: 51 MB (05:04.60) = 22845 sectors
Lout start: 51 MB (05:06/45) = 22845 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Is not unrestricted
Is not erasable
Disk sub type: Medium Type A, high Beta category (A+) (3)
ATIP start of lead in: -11634 (97:26/66)
ATIP start of lead out: 359846 (79:59/71)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
Blocks total: 359846 Blocks current: 359846 Blocks remaining: 337001
Forcespeed is OFF.
Speed set to 9173 KB/s
Starting to write CD/DVD at speed 52.0 in real SAO mode for single session.
Last chance to quit, starting real write i 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Sending CUE sheet...
Writing pregap for track 1 at -150
Starting new track at sector: 0
Track 01: 44 of 44 MB written (fifo 100%) [buf 99%] 27.2x.
Track 01: writing 126 KB of pad data.
Track 01: Total bytes read/written: 46657536/46786560 (22845 sectors).
Writing time: 29.585s
Average write speed 15.2x.
Min drive buffer fill was 96%
Fixating...
Fixating time: 5.463s
BURN-Free was never needed.
wodim: fifo had 735 puts and 735 gets.
wodim: fifo was 0 times empty and 455 times full, min fill was 96%.
 
Old 08-03-2008, 08:07 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Not to dampen your enthusiasm but in general with filesystems, especially journalling ones, the decrease in recovery success can be counted in seconds. Especially if they continue to see read/writes after the incident. Once a file is gone the system should be "frozen" immediately (ALT+PRN+U or forced power-off) and not used anymore. Short and simple: if the directory you deleted was in /home/raimonds, then by using it to surf the 'net, posting your question and downloading the ISO and burning it chances of recovery, let alone full recovery are near nill. What should have been done was power off the system right after the deletion, make an image of the partition and *then* investigate options for recovery.

Unfortunately you didn't know that and nobody told you.

[EDIT]Lets hope that's Parted Magic you burned and not Partition Magic. (I suggest a Live CD like HELIX). Mount the "victim" drive read-only, then mount another partition in read-write mode (preferably a clean external drive) and use photorec in "test" mode to see what it thinks it can find. If it doesn't find enough for your taste you can tweak options before letting it recover data which may (or may not) be a lenghty process.

Last edited by unSpawn; 08-03-2008 at 08:22 PM. Reason: more
 
Old 08-03-2008, 10:51 PM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
@ UnSpawn-- Oops, I should have been more concise in my above post. Yes, I suspect it is Parted Magic, rather than Partition Magic, that the OP has downloaded. I downloaded the same one a few weeks back.

Also, to the OP (and others) -- Something I never clued into until several months ago, was the fact that Midnight Commander (our favorite console file manager) is quite capable of easily UNdeleting recently deleted stuff.
It never occurred to me before, that the red colored filenames prepended with exclamation points were deleted files, and that they could be theoretically restored right there on the spot.

NOTE: In my case, this is an Ext2 file system. I cannot speak to other file systems and UNdeleting stuff, with or without MC.
NOTE 2: Also, I am not sure how exactly the OP lost his/her files, but FWIW, I have also had more success than failure (albeit tedious at times) restoring files that have wound up in "Lost & Found" during power outage induced shutdowns or FSCK-ups or whatever; there's a thread around here with "Lost and Found" in the title, in which someone explains to me a method of restoring stuff from there, if you feel like searching for it. But in the case of non-binary files in Lost&Found, it's a matter of simply opening & reading the #123456 files in there and figuring out what they used to be called and where they were lost from. For binaries, you kinda need to have an idea what they were, or else you need to play "Let's execute it and see what it does/says"

SVA
 
Old 08-04-2008, 09:23 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Indeed, but MC, "recover" or "debugfs" won't show the same results with Ext3 compared to Ext2 (BTW the thread you mean is http://www.linuxquestions.org/questi...ntents-550845/) and binary remains in L+F have a different cause. But let's see what the OP comes up with next...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 01:21 PM
Data Recovery Software for Linux WarlockofVirgo Linux - Software 1 10-06-2004 06:23 PM


All times are GMT -5. The time now is 12:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration