Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I've been trying for the last few days to access a hard disk in windows and be able to read in raw format (a la dd).
I've tried many ways and somewhat been successful but not good enough. I tried forking dd and then read its output, but on large disks the buffer just grows too much and the program dies. I need to be able to control the buffer, so I guees I must open the file in perl without using an external program.
I have been trying using the Win32API, but without success. The following code works on a normal file, but not when i try to open a partition or a physical disk. The Function OsFHandleOpen just dies saying wrong parameter. Any ideas on how can i fix this, or some other way to read the raw disk in perl?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading a physical disk in windows as a File
by BrowserUk (Patriarch) on Sep 03, 2002 at 21:51 UTC | |
by John M. Dlugosz (Monsignor) on Sep 03, 2002 at 22:00 UTC | |
by BrowserUk (Patriarch) on Sep 03, 2002 at 22:21 UTC | |
|
Re: Reading a physical disk in windows as a File
by John M. Dlugosz (Monsignor) on Sep 03, 2002 at 21:59 UTC | |
|
Re: Reading a physical disk in windows as a File
by flounder99 (Friar) on Sep 04, 2002 at 11:09 UTC | |
by John M. Dlugosz (Monsignor) on Sep 04, 2002 at 14:44 UTC |