Go Back   CodeCall Programming Forum > Software Development > C and C++
Register Blogs Search Today's Posts Mark Forums Read

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-27-2009, 02:51 AM
Newbie
 
Join Date: Jun 2009
Posts: 7
krishnampkkm is an unknown quantity at this point
How to copy an NTFs partition?

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 problem.then I did with readfile() and WriteFile() instead of Copyfile() again speed is a problem.

How can 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 .....

Any idea to help me...

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....


But that one does not give reasonable speed......


Any idea to help...

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


Any idea to help me...???



-----------------------
Thanking you
------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-27-2009, 09:25 AM
WingedPanther's Avatar
Super Moderator
 
Join Date: Jul 2006
Age: 36
Posts: 11,435
WingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud of
Re: How to copy an NTFs partition?

Wait, are you trying to copy files between partitions, or an entire partition? They are two very different tasks.
__________________
CodeCall Blog | CodeCall Wiki | Shareware
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-28-2009, 12:15 PM
Newbie
 
Join Date: Jun 2009
Posts: 7
krishnampkkm is an unknown quantity at this point
Re: How to copy an NTFs partition?

Actually I wanna copy the entire partition...

But only the used data from the source partition....


So to take the used data.....( i try to copy filessss...)

And apart from that I tried to copy used clusters...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-28-2009, 12:21 PM
Newbie
 
Join Date: Jun 2009
Posts: 7
krishnampkkm is an unknown quantity at this point
Re: How to copy an NTFs partition?

Thanks for the reply.....


Can you give me any links to the "white papers related to this section""

Any body know Any new algorithms......for the fast copy operation...

I searched but no way to get........



--------------------
Thanking you
------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-28-2009, 02:02 PM
WingedPanther's Avatar
Super Moderator
 
Join Date: Jul 2006
Age: 36
Posts: 11,435
WingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud of
Re: How to copy an NTFs partition?

OK, you keep saying contradictory things. You can do one of two things:
1) copy the ENTIRE partition. This is a pretty low-level operation and is NOT trivial.
2) copy selected files from one partition to another. This is a completely different activity, and really has nothing to do with whether the partition is NTFS, FAT32, etc.
__________________
CodeCall Blog | CodeCall Wiki | Shareware
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-29-2009, 12:53 AM
Newbie
 
Join Date: Jun 2009
Posts: 7
krishnampkkm is an unknown quantity at this point
Re: How to copy an NTFs partition?

First thanks for reply from your side...



Okkk.....I wanna do the first thing..... "copy the ENTIRE partition."

How to do that one....??




---------------
Thanking you
---------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-29-2009, 11:59 AM
WingedPanther's Avatar
Super Moderator
 
Join Date: Jul 2006
Age: 36
Posts: 11,435
WingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud of
Re: How to copy an NTFs partition?

You will have to write a program that can be run while you are NOT in the OS on the host partition. I would recommend using one of the freely available tools rather than try to write your own.
__________________
CodeCall Blog | CodeCall Wiki | Shareware
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate partition makes problems? krishnampkkm C and C++ 2 06-14-2009 11:52 PM
Adding NTFS Support to your Linux Distribution Affix Linux Tutorials, Guides and Tips 2 03-02-2009 10:53 PM
installing ubuntu with ntfs partitions amrosama Linux Installation & Configuration 4 01-28-2009 05:04 PM
How can I recover data from lost/deleted partitions? NTFS, FAT32 & HFS+ Panarchy Computer Software/OS 5 11-21-2008 01:16 AM
Copy hard disk or partition image to another system using a network and netcat (nc) kernel Linux News 0 08-13-2007 05:46 AM


All times are GMT -5. The time now is 10:59 AM.


vBulletin v3.8.0 ©2010, Jelsoft Enterprises Ltd.


no new posts

LinkBacks Enabled by vBSEO 3.1.0