IT Community - Software Programming, Web Development and Technical Support

How to copy a hard disk partition?

This is a discussion on How to copy a hard disk partition? within the C and C++ Programming forums, part of the Software Development category; You cannot vote again or vote on your own post. 0 Hii I wanna copy an NTFs partition to another ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 06-29-2009, 09:49 PM
krishnampkkm krishnampkkm is offline
D-Web Trainee
 
Join Date: Jun 2009
Posts: 2
krishnampkkm is on a distinguished road
Talking How to copy a hard disk partition?

You cannot vote again or vote on your own post.
0
Hii

I wanna copy an NTFs partition to another partition of same type and same size.And I tried with windows function
Copyfile() and it worked but slow speed is a problem.Then I did with readfile() and WriteFile() instead of Copyfile() again speed is a problem.

How can I get a better speed...??

I did the same operation in kernel mode and getting slow performance using zwCreatefile() ,zwReadfile() & zwWriteFile()...

How can I get a better speed .....?

I want to copy a hard disk partition into another partition. My source and destination partitions are of NTFs and same size. For that purpose first I did by copying all sectors and it is working, But I wanna copy only used sectors…

Then I find the used clusters by reading the FSCTL_VOLUME_BITMAP. But this one also a slow one ..I want to get better speed. And I tried to get the used clusters by using the FSCTL_GET_RETEIVAL_POINTER also. But it's a slow one.....



At last I tried the windows API CopyFile() also…But everything gives a slow performance…


I know fundamentally Kernel mode(ring 0) is slower than User mode in speed ,(even if ring 0 can access Hardware directly).....


Apart them these I tried also Asynchronous operation by setting OVERLAPPED flag in CreateFile.... getting small improvement....

And I've taken snapshot (Volume shadow copy)of the Volume and copied the files using Hobo copy method...but everything gives the same speed.....





Any idea to help...

I have used the Software Acronis Disk director suite .I exclaimed after finding it's speed......!!!!!!


Any idea to help me...to get a good speed.......???

Any links to the white papers related to this section...???




-----------------------
Thanking you
------------------------
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-19-2009, 09:01 AM
Nucler2009 Nucler2009 is offline
D-Web Trainee
 
Join Date: Jul 2009
Posts: 2
Nucler2009 is on a distinguished road
Default Re: How to copy a hard disk partition?

netcat utility (nc command) considered as TCP/IP swiss army knife. It reads and writes data across network connections, using TCP or UDP protocol. It is designed to be a reliable "back-end" tool that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities.

I also install the netcat package for administering a network and you'd like to use its debugging and network exploration capabilities.

One my favorite usage is to migrating data between two server hard drives using netcat over a network. It is very easy to copy complete drive image from one server to another.

You can also use ssh for the same purpose, but encryption adds its own overheads. This is tried and trusted method (hat tip to karl) .

Make sure you have backup of all important data.

Last edited by arjkhanna : 07-19-2009 at 07:39 PM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Hard Disk drive gone bad arjkhanna Networking & Internet Connectivity 8 08-07-2009 06:28 PM
Index Full Hard Disk llowlene_discuss_me Introductions 9 07-05-2009 01:20 AM
iPod as a hard disk prasannavigneshr Technology BUZZzzzzz 4 01-30-2008 05:25 PM
Where are cookie files actually stored on the hard disk? itbarota HTML, CSS and Javascript Coding Techniques 1 09-13-2007 04:18 AM
can i format the hard disk without deleting some files saravanan Computer Hardware 3 09-04-2007 06:11 AM


All times are GMT -7. The time now is 06:34 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0