Developing a sector based partition copying program?

Posted by baltusaj on Stack Overflow See other posts from Stack Overflow or by baltusaj
Published on 2010-05-28T06:54:11Z Indexed on 2010/05/28 7:12 UTC
Read the original article Hit count: 205

Filed under:
|
|
|
|

Hi,

I want to develop a program that copies a partition's 'data' only, to another partition. And I want to do it such that the program starts from the first sector of source partition and checks if a sector is used.

If it is used copy it to the destination parition. Else don't copy.

In other words it's like copying only the contents of a partition to another, sector-by-sector.

Question: Is there a way to check if a particular sector on harddisk is used or not?

The programming language I am using is C++ and the underlying filesystem in NTFS.

Thanks a lot.

© Stack Overflow or respective owner

Related posts about c++

Related posts about Windows