Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to create disk image?

How to create disk image?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
8 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jahfer
    wrote on last edited by
    #1

    Hi, I want to copy the entire content of a hard disk to another one. The second hard disk should be an exact image of the original one, after the copying process. How to do this using VC++ or C++ or C? Please suggest me the way of approach that I have to adopt. Hoping to get a reply soon. TIA. regards, Jahfer V P.

    D A J 3 Replies Last reply
    0
    • J jahfer

      Hi, I want to copy the entire content of a hard disk to another one. The second hard disk should be an exact image of the original one, after the copying process. How to do this using VC++ or C++ or C? Please suggest me the way of approach that I have to adopt. Hoping to get a reply soon. TIA. regards, Jahfer V P.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Unless you are looking for something difficult to do, I would spend $20 on a copy of Ghost. It's well worth it.


      "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

      T 1 Reply Last reply
      0
      • J jahfer

        Hi, I want to copy the entire content of a hard disk to another one. The second hard disk should be an exact image of the original one, after the copying process. How to do this using VC++ or C++ or C? Please suggest me the way of approach that I have to adopt. Hoping to get a reply soon. TIA. regards, Jahfer V P.

        A Offline
        A Offline
        Alexander M
        wrote on last edited by
        #3

        If you make any mistake all the data could be lost!!! Don't try it, just do it! ;-)

        1 Reply Last reply
        0
        • J jahfer

          Hi, I want to copy the entire content of a hard disk to another one. The second hard disk should be an exact image of the original one, after the copying process. How to do this using VC++ or C++ or C? Please suggest me the way of approach that I have to adopt. Hoping to get a reply soon. TIA. regards, Jahfer V P.

          J Offline
          J Offline
          John M Drescher
          wrote on last edited by
          #4

          Is this only for one pc or many? Is this for a client? Are the disks the same size? I ask these questions because linux has a very easy utility to do this. The command is dd. I recently found this when partition magic failed to copy a failing hard drive because it han not been unmounted cleanly. Of course it was unmounted cleanly XP locked up when the disk stoped spinning. Good thing after a reboot it started spinning again... I booted off a gentoo linux live cd and at the prompt I typed dd if=/dev/hda of=/dev/hdb bs=8M and in about 1 hour I had a copy of a 40 MB drive on an 80 MB drive. It did not resize the partitions though but after removing the smaller bad disk windows XP booted and ran fine. John

          B 1 Reply Last reply
          0
          • D David Crow

            Unless you are looking for something difficult to do, I would spend $20 on a copy of Ghost. It's well worth it.


            "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

            T Offline
            T Offline
            Toby Opferman
            wrote on last edited by
            #5

            Yes, or setup RAID if that's what you want to accomplish with this. 8bc7c0ec02c0e404c0cc0680f7018827ebee

            1 Reply Last reply
            0
            • J John M Drescher

              Is this only for one pc or many? Is this for a client? Are the disks the same size? I ask these questions because linux has a very easy utility to do this. The command is dd. I recently found this when partition magic failed to copy a failing hard drive because it han not been unmounted cleanly. Of course it was unmounted cleanly XP locked up when the disk stoped spinning. Good thing after a reboot it started spinning again... I booted off a gentoo linux live cd and at the prompt I typed dd if=/dev/hda of=/dev/hdb bs=8M and in about 1 hour I had a copy of a 40 MB drive on an 80 MB drive. It did not resize the partitions though but after removing the smaller bad disk windows XP booted and ran fine. John

              B Offline
              B Offline
              Bob Stanneveld
              wrote on last edited by
              #6

              John M. Drescher wrote: and in about 1 hour I had a copy of a 40 MB drive on an 80 MB drive I sure hope that those MB's were worth the waiting. :-D Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

              J 1 Reply Last reply
              0
              • B Bob Stanneveld

                John M. Drescher wrote: and in about 1 hour I had a copy of a 40 MB drive on an 80 MB drive I sure hope that those MB's were worth the waiting. :-D Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

                J Offline
                J Offline
                John M Drescher
                wrote on last edited by
                #7

                :-O I do this all the time. I guess it shows my age... I actually had both drive sizes on my main computer sometime in the mid to late 80s. I remember that the 80MB drive cost almost $800 and that was for a drive that had hard errors on it. Since dos 3 did not support partitions above 32 MB I remember I had to split it into multiple partitions... John

                B 1 Reply Last reply
                0
                • J John M Drescher

                  :-O I do this all the time. I guess it shows my age... I actually had both drive sizes on my main computer sometime in the mid to late 80s. I remember that the 80MB drive cost almost $800 and that was for a drive that had hard errors on it. Since dos 3 did not support partitions above 32 MB I remember I had to split it into multiple partitions... John

                  B Offline
                  B Offline
                  Bob Stanneveld
                  wrote on last edited by
                  #8

                  What a shame that I didn't had the chance to experiance those good old days... :) Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups