dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: RE: recover lost recording file

RE: recover lost recording file

From: VanBaren, Gerald (AGRE) <"VanBaren,>
Date: Fri, 8 Oct 2004 07:04:22 -0600

> -----Original Message-----
> From:
> []On Behalf Of Linus
> Nielsen Feltzing
> Sent: Friday, October 08, 2004 8:46 AM
> To: Uwe Freese
> Subject: Re: recover lost recording file
> wrote:
> > If Rockbox closes the file each time it writes the buffer into the
> > file while recording, how much slower would that be? As far as I
> > understand it, this problem with a lost recording wouldn't
> be possible
> > anymore then. So how about changing this behaviour, or, if
> it's slower
> > (more hdd uptime), add an option for that.
> We did that back in 2003, but we replaced that with the
> fsync() function
> instead, which does the same thing. Unless there is a bug in fsync(),
> the recorded file should be up-to-date on disk at all times
> (except for
> the RAM buffer contents of course).
> I can't really understand why the file disappeared in this
> particular case.
> Linus

The file doesn't disappear, it wasn't closed so, to the FAT file system, it apparently never existed. It apparently is in a different state than "deleted." There are many "undelete" tools that know how to recover deleted files, but I haven't found a tool to recover a file that wasn't closed. Note that I haven't looked very hard.

You can duplicate this at will by recording for long enough to write data to the disk and then holding the "off" button until the AJR turns off.

In my case, I've successfully recovered the Rockbox-recorded data from at least two files that were not closed properly. However I have not needed to since the "double click to turn off" improvement (<stand>clap clap clap</stand>).


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.
Received on 2004-10-08

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