Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: RE: recover lost recording file

RE: recover lost recording file

From: VanBaren, Gerald (AGRE) <"VanBaren,>
Date: Thu, 7 Oct 2004 08:45:01 -0600

> -----Original Message-----
> From: rockbox-bounces_at_cool.haxx.se
> [mailto:rockbox-bounces_at_cool.haxx.se]On Behalf Of Linus
> Nielsen Feltzing
> Sent: Thursday, October 07, 2004 10:11 AM
> To: Rockbox development
> Subject: Re: recover lost recording file
>
>
> devtrick wrote:
> > i was searching for hints about the naming of these
> > temp files - have they a name? where are they stored
> > at (usually at the record folder defined in the
> > options menue - or root - or .rockbox)?
>
> There is no temp file. The file is named after the time of day you
> started the recording, eg "RYYYYMMDD-HHMMSS.mp3" in the
> directory where
> you have selected to put the recordings.
>
> YYYY = year
> MM = month
> DD = day
> HH = hour
> MM = minute
> SS = second
>
> Linus

Devtrick:

BE VERY CAREFUL of what you do with the unit before you have recovered the file. DO NOT WRITE ANYTHING TO THE AJR DISK!

The problem is that Rockbox did not close the file. It is all there on the disk (except perhaps a couple of seconds at the end that were in RAM and not flushed to disk) and will normally be stored contiguously... that is very helpful because you won't have to go through the FAT information.

You simply need to find the first cluster of the affected recording and save until the end cluster. You can guess the end based on the time duration of the recording times the bit rate

I used the shareware "directory snoop" program.
  http://www.briggsoft.com/dsnoop.htm
IIRC, "unerase" doesn't work because the file wasn't closed. The cluster after the _last properly closed_ file will likely be the first cluster of the file you want to recover. I used the Cluster Search to find the directory entry of the unclosed file which then told me what the first used cluster was. Based on the recording duration and rate, estimate where the end of the file will be and browse the disk sectors around that area: usually you can discern were the end of the recording is because the bit pattern goes from "noise" (MP3 recording) to a more predictable pattern (unwritten). At this point you can use the "Cluster Copy to File" command to save the raw data into a file ON YOUR PC'S HARD DRIVE, NOT on the AJR!!!! Play the resulting file: if you got it right, you will hear your recording. You may need to trim the end, but that is easy (especially compared to what you did up to this point ;-).

Suggestion: Do a practice run on a properly closed file first. The previous file (last properly closed file) is a good one to practice on.

gvb

******************************************
The following messages are brought to you by the Lawyers' League of IdioSpeak:

******************************************
The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
******************************************
_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on 2004-10-07

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy