Re: Multiple files with same filename on FAT
- From: Vicne <vicnevicne@xxxxxxxxx>
- Date: Tue, 30 Oct 2007 16:24:50 -0700
On Oct 30, 7:54 pm, Antonio Pasini
<removethis_antonio.pas...@xxxxxxxx> wrote:
I would try the following:
1) Create a raw dump of your whole disk in a file; you can use DD on
linux, or WinHex (need registration) or similar utilities; you could
also try rawcopy.zip fromhttp://www.ltr-data.se/opencode.html#ImDisk,
which is free. I didn't try that.
2) From the link above, use ImDisk to mount your image file as a a
virtual drive. I used the control panel, but you can do by command line
also.
3) You can access the virtual drive using low level functions (sector by
serctor) from WinXP using CreateFileA(), ReadFile and WriteFile().
Have a look to:http://www.codeguru.com/cpp/w-p/system/misc/article.php/c5765/
This snippet is very interesting. Indeed, if I go the XP way, that's
exactly what I need.
However, I always fear XP will mess with the drive, forcing me to do
the imaging step as you describe, which is rather time consuming (1h30
for the 160 Gb drive). So I'm more tempted to go the minimal OS route,
and I'm currently thinking of using FreeDOS to perform the copy
operation, directly reading from the PVR drive...
You can also find a lot of FAT code on the net... I would try EFSL
library; you could hack that to follow your "double name" FAT arrangement.
Oh yes, that's interesting too. I'll have a deeper look into that lib
for sure.
Using the above snippets, I was able to test my FAT code very very
easily under XP with VisualC++ Express without messing up my drives. It
was very handy to have different image files for the different "corner"
cases to test.
Yes, image is definitely the way to go during the trial phase.
Thanks a lot for your advice and pointers.
Vicne
.
- References:
- Re: Multiple files with same filename on FAT
- From: Antonio Pasini
- Re: Multiple files with same filename on FAT
- Prev by Date: Re: [ANN] Timing Diagram Font - free
- Next by Date: Re: [ANN] Timing Diagram Font - free
- Previous by thread: Re: Multiple files with same filename on FAT
- Index(es):
Relevant Pages
|