defrag for virtual disk

Discussions about using Windows guests in VirtualBox.
Post Reply
vbvip
Posts: 3
Joined: 6. Oct 2011, 04:10
Primary OS: PCLinuxOS
VBox Version: OSE other
Guest OSses: Win 7

defrag for virtual disk

Post by vbvip »

Hi, I know even in real Windows system, it rarely requires disk defragment. But just for the sake of knowing, does a windows virtual drive get fragmented and if defrag program helps?
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

Re: defrag for virtual disk

Post by Sasquatch »

Windows is known to fragment it's files like no other, so it happens on a virtual system too. But it won't help you in any way, because the fragmentation is not the same on the Host side. VDI files are build with 1 MB chunks. So for example, if you have a file of 5 MB that's fragmented in the Guest, it is very likely to be continuous on the Host because 5 blocks of 1 MB are written right after each other.

This discussion has been done in the past. Please use Google as described in my signature for more information about this subject.
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.
Post Reply