LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs > GlennsPref
User Name
Password

Notices

Rate this Entry

How to recover lost mp3's for free.

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

Glenn Waller May 2010
How to recover lost mp3's for free.
suitable for one user system users, administrators and technicians
time to do? 45Min approx.
programs used,
GNU/Linux (Mandriva 2010.1) Kernel 2.6.32.3-2mnb_x86_64
Photorec partition data recovery tool
find to list and sort files
EasyTag to recover file names from tags

You'll need root access to use Photorec, su or sudo to root in your shell, type in the root password if required. I think it's because of access to raw (unmounted) file system data. The files will be written as (user and group) root, so we fix the permission changes during this tutorial (you need root access to do this too) back to user-name group and user before doing too much more. This way we can use user-land instead of having to stay as root for long periods of time.

Scenario
Msec was deleting unowned files in the /home partition

moved mp3's off etx3 partition to fat32 partition to share whilst working within windows xp land and out of Msec's long hands. Eventually I had no access to the files permissions from GNU/Linux. During previous attempts to fix the permission problem, I had copied the data off the disk, changed the attributes under ext4 (this time), formatted the disk and copied the...data.....ack. anyway, it didn't work.

The task begins.
Being a long time advocate for Photorec in the past, (recovering music from old damaged cdroms) I knew I could (probably) almost certainly recover the music files from the ext4 formatted partition. There were also a lot of other files on there too, like a backup of HalfLife2 CC:S downloads and games, maps, etc, about 8.5 to 12 gig, and much more.
First things first, you need a partition equal to or greater than in size of the partition you wish to recover. Next you need to run Photorec from the directory from where you wish to store the files Photorec finds. So, make a directory on the partition you are using for the recovered files and cd to the recovery directory, like this (you'll need to change the absolute address to match your folder names)
Code:
mkdir /home/glenn/storage/recovery
cd /home/glenn/storage/recovery
Unmount the drive the data is being recovered from, (/home/glenn/stuff in my case)
Code:
# Entry for /dev/sdb9 : 
UUID=ef444615-fcc7-438d-8711-57fc1571b4c1 /home/glenn/stuff ext4 relatime 1 2
check /etc/fstab in a text file reader, like cat. # Entry for /dev/sdb9 :

Code:
sudo umount /dev/sdb9
Posted in Uncategorized
Views 389 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:51 AM.

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