Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

How to read disk by sector ?

SergeantSergeant Posts: 1Member
Hello,

I want to read a disk by sector and store this as image
on harddrive. Also I want to write this image from the
harddrive onto another disc, so this new disc becomes
an exact copy of the original one. This means, that a
copy of a boot disk also will be bootable. Must only work
with 1.44 MB disk-drives.

On my first C compiler MS-Quick C 2.5 for DOS (long time
ago, got it 1989 !) I found a function called _bios_disk(),
which was able to read a disk by sector using INT13.
Also in old Turbo C++ 3.0 for DOS there was a function
called absread()

But how I can read/write disc by sector using Visual C++ 6.0?

It must be possible unter Windows, because there is a Win32
program called 'Winimage' which does this. But I want to
do this by myself, so I need some information.

So many thanks everybody for any hints!

Regards

Sergeant

Comments

  • abcabc Posts: 443Member
    : But how I can read/write disc by sector using Visual C++ 6.0?

    use DeviceIoControl()
    be advised that it works differently on win9x and winNT - see the msdn for details.
  • brycebryce Posts: 25Member
    : Hello,
    :
    : I want to read a disk by sector and store this as image
    : on harddrive. Also I want to write this image from the
    : harddrive onto another disc, so this new disc becomes
    : an exact copy of the original one. This means, that a
    : copy of a boot disk also will be bootable. Must only work
    : with 1.44 MB disk-drives.
    :
    : On my first C compiler MS-Quick C 2.5 for DOS (long time
    : ago, got it 1989 !) I found a function called _bios_disk(),
    : which was able to read a disk by sector using INT13.
    : Also in old Turbo C++ 3.0 for DOS there was a function
    : called absread()

    Norton makes an excellent dos based program named ghost. You
    should make your customer purchase 2 hardrives. You can amazingly
    restore business systems along with the OS such as win98/2000 in
    less than 20 minutes.

    Bryce
    :
    : But how I can read/write disc by sector using Visual C++ 6.0?
    :
    : It must be possible unter Windows, because there is a Win32
    : program called 'Winimage' which does this. But I want to
    : do this by myself, so I need some information.
    :
    : So many thanks everybody for any hints!
    :
    : Regards
    :
    : Sergeant
    :
    :

  • brycebryce Posts: 25Member
    : : Hello,
    : :
    : : I want to read a disk by sector and store this as image
    : : on harddrive. Also I want to write this image from the
    : : harddrive onto another disc, so this new disc becomes
    : : an exact copy of the original one. This means, that a
    : : copy of a boot disk also will be bootable. Must only work
    : : with 1.44 MB disk-drives.
    : :
    : : On my first C compiler MS-Quick C 2.5 for DOS (long time
    : : ago, got it 1989 !) I found a function called _bios_disk(),
    : : which was able to read a disk by sector using INT13.
    : : Also in old Turbo C++ 3.0 for DOS there was a function
    : : called absread()
    :
    : Norton makes an excellent dos based program named ghost. You
    : should make your customer purchase 2 hardrives. You can amazingly
    : restore business systems along with the OS such as win98/2000 in
    : less than 20 minutes.
    :
    : Bryce
    : :
    : : But how I can read/write disc by sector using Visual C++ 6.0?
    : :
    : : It must be possible unter Windows, because there is a Win32
    : : program called 'Winimage' which does this. But I want to
    : : do this by myself, so I need some information.
    : :
    : : So many thanks everybody for any hints!
    : :
    : : Regards
    : :
    : : Sergeant

    Why would you not use ghost? It is already designed and more
    cost effective.
    Bryce
    : :
    : :
    :
    :

Sign In or Register to comment.