copying vdi file from one partition to an other is slow...

Discussions related to using VirtualBox on Windows hosts.
Post Reply
isrc
Posts: 13
Joined: 19. Nov 2008, 14:24

copying vdi file from one partition to an other is slow...

Post by isrc »

Hi folks,
I'm just wondering if there's a way to speed up vdi copy on windows host. Right now, on a fairly standart computer (sata disk), it takes nearly half an hour to copy a 5GB dynamic disk :-/

I guess that i'm doing something wrong but dunno what

The basic idea is too clone a master vdi (read only mode) file in order to use the clone for testing purpose...


Thanks.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Check your drive for errors. Is there enough free space left on the destination partition and isn't the free space heavily fragmented? How fast can you write other files to it? What did you use to copy the vdi?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

With a modern PC you should get 20Mb/sec I/O rate to a spindle minimum. Modern SATA disks will do double this so this size of copy should less than 8 mins. For it taking 30 mins, you must either have a really old ATA disk over IDE33 or your files system is fragmented to hell and therefore the copy involves a high frequency of disk seeks. Unfortunately defragmenting a badly fragmented NTFS volume is difficult with the standard Windows told, especially if the volume is over 75% full. One of the problems with the standard MS utility is that if you have a big file (such as a VDI) in a few hundred fragments then it won't move it unless there is a contiguous gap to fit in in. You could also try the Sysinternals contig tool.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
isrc
Posts: 13
Joined: 19. Nov 2008, 14:24

Post by isrc »

Thanks guys, will check all those things first ! This isn't a hardware issue as i've tested on several boxes with sata hard drives :(

Thanks !
whoisrich
Posts: 8
Joined: 23. Nov 2008, 14:17
Location: UK
Contact:

Post by whoisrich »

If you have a virus scanner or anti-spyware scanner, try disabling the on access scan, as it can also slow the copying of large files.
Post Reply