Review your favorite Linux distribution.
Go Back > Blogs > GlennsPref
User Name


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
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.

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 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)
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)
# 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 :

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




All times are GMT -5. The time now is 07:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration