2

I seek a way to copy the raw data. Specifically, I seek a way to clone a removable disk, and another hard drive to an image file (ISO, IMG, ...), so you can re-use on another computer through appropriate software.

Do you know a way to perform this action.

Kara
  • 6,115
  • 16
  • 50
  • 57
Atoxis
  • 48
  • 2
  • 9
  • Did a quick search for ya: http://www.codeproject.com/Articles/24544/Burning-and-Erasing-CD-DVD-Blu-ray-Media-with-C-an – Tudor Feb 24 '12 at 10:30

4 Answers4

3

As you added C# tag, I assume you want to do this by writing some code.

What you could do is to read the disk (RAW access), sector by sector, and copy all those bytes into a file that has the *.iso extension. An ISO image is only a copy of every written sector of a disk.

See my previous answer that explains how to read (RAW access) a disk or drive.

Community
  • 1
  • 1
ken2k
  • 48,145
  • 10
  • 116
  • 176
1

Have a look at DiskUtils on Codeplex. From the site: DiscUtils is a .NET library to read and write ISO files and Virtual Machine disk files (VHD, VDI, XVA, VMDK, etc). DiscUtils is developed in C# with no native code (or P/Invoke).

Khadaji
  • 2,147
  • 2
  • 17
  • 19
0

AFAIK you can use isoburn.exe to burn images from the command line (at least in Win7):

isoburn.exe /q "{drive letter}:\{path to image file}"

Now all you have to do is create a new Process from your C# app and run the above code.

Tudor
  • 61,523
  • 12
  • 102
  • 142
  • 1
    I left your principle and I used DSFO.exe. This command line utility makes a copy of the raw data and the image file can be used by all tools that allow reading raw image (HDDGURU Raw Copy Tool for example). – Atoxis Mar 09 '12 at 09:53
0

PowerIso would work just fine if i understand the need

tofwiz
  • 3
  • 5