LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Blogs > GlennsPref
User Name
Password

Notices


Rate this Entry

How to recover lost mp3's for free-p2 of 8.

Posted 05-11-2010 at 11:11 PM by GlennsPref

If you can't unmount the drive you may be able to use a bootable GNU/Linux flash-stick, like slax and knoppix live distributions.

I pulled up Photorec on the screen, cli mode, type 'photorec' at the prompt. (reminder, you need to be root)
What is displayed on the screen is a list of physical drives on the system, navigate with the cursor keys and select(hit enter to continue) the drive the data you want to recover may be found (Last Know Address). Make sure you highlight the drive selection, with the up and down arrows and select continue or abort with the left or right arrows, to save unintentional aborting.
The next screen list some details about the drive, continue to the next section about the partition table types, I have a PC and selected the Intel platform. (please don't ask me about the other partition types, I don't know) Now here it gets to the partition level, a note of warning...
Be Careful Here it's easy to begin the recovery of ALL the data on the partition, but I only want songs mp3, wav, ogg, and pictures bmp, jpg, gif, png.
So if you only want certain file types, select 'options' down near the bottom of the partition list (we'll select the partition after we set the file extension filter)
Here you can set the paranoia mode, low ram, and other setting better suited to Forensic file recovery. I usually leave this at the defaults, we just want to do a late backup.
Hit enter to 'quit'.
Scroll across to the 'File Opt' tab and enter into the extension list. Using the arrow keys and space bar to mark the grid for the types you want Photorec to search for.
“Press s for default selection, b to save the settings”
Saving this creates a file that may be called again when you next use Photorec (as root).
Once you had a good search through the list and marked the file types you want return to the partition page and use the arrows to scroll down to the partition you want, in my case .../sdb9.
Photorec is now ready to start, if you are ready highlight the 'search' function and hit enter. You should see a list of file types appear on the screen, they appear as they are found, so don't abort if you don't see the file types you selected in 'File Opt' as soon as it starts. It should also display how long it will take to complete the search. The files still remain on the old partition too in case you need to search harder. Photorec took 21 min to scan 54gig of data spread over a 73Gb partition. And save them neatly in the present working directory (/home/glenn/storage/recovery)

This is the end screen of a “second scan” without 'File Opt' being edited, approx 28minutes
[code]
PhotoRec 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sdb - 250 GB / 232 GiB (RO) - ATA WDC WD2500AAKS-0
Partition Start End Size in sectors
9 L Linux 20859 1 1 30400 254 63 153292167 [stuff]


17647 files saved in /home/glenn/storage/recovery/recup_dir directory.
Recovery completed.
txt: 8728 recovered
mp3: 3345 recovered
mpg: 2351 recovered
gif: 1513 recovered
jpg: 944 recovered
flv: 524 recovered
mov: 91 recovered
Posted in Uncategorized
Views 592 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 04:13 PM.

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