Diks Imaging Utilities
Set of disk imaging command line utilities for Windows. (See Screenshot). These work on device level and allow direct reads/writes on fixed and removable media. DIMG allows reading and writing raw disk images, either whole disk, a partition, or custom portion in sectors may be specified. WIPE securely erases data on disk, and CFRESET is a little tool for restoring default partition table (one partition with all free space assigned) on compact flash (USB pen) drives.
Apparently don't work properly on Win7 (probably some safety related access denials) I'll fix that when I find a reason to upgrade.
Downloads
Windows Executables: dimg.zip
These programs are freeware and may be used for any purpose. No warranty provided whatsoever.
If you're interested then grab the C source code which is thereby public domain:
dimg-src.zip
Command Line Quick Reference
DIMG - Read/Write raw disk image.
dimg c|w [switches] device file | l [switches]
| Command | Description | Switches |
|---|---|---|
| c | Write disk contents to image. | -p n: only read specified partition. -r offset-extent: only read specified range (in sectors). |
| w | Write image to disk. | -o offset: starting position (in sectors) |
| l | List available devices. | -r: removable media only -f: fixed media only |
| h | Show usage information. |
WIPE - Wipe disk data.
wipe l [-r/f] | s [-p partition] device
| Command | Description | Switches |
|---|---|---|
| w | Erase data on the disk and fill with zeroes | -p partition: Wipe specified partition. |
| l | List available devices. | -r: removable media only -f: fixed media only |
| h | Show usage information. |
CFRESET - Reset CF partition table.
cfreset l | h | device
| Command | Description | Switches |
|---|---|---|
| l | List available devices. | -r: removable media only -f: fixed media only |
| h | Show usage information. |