Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been using VirtualBox for some time now and always end up making a new "virtual" hard drive when making a new machine. I only just wondered -- what exactly am I making? If I set the size to 8GB, will it actually take 8GB of space on my physical disk? How are these like real hard drives?

share|improve this question
up vote 4 down vote accepted

Basically there's part of the file that says 'this file can be this big' and as data is filled up, it expands, up and until the maximum filesize is reached. Internally a basic image is identical to a dded hard drive - just a set of values - more advanced formats may have some form of compression, or other fancy features.

A drive is just a way to store zeros and ones, a disk image is a file that has the same charecteristics a plain old direct copy of a file has - so much so that a bit for bit copy of a hard drive can be used for forensic investigation of a physical drive.

share|improve this answer
I'm just amazed at how a file can pretend to be "partitioned" – n0pe May 20 '11 at 1:17
same way you can DD an entire drive, and the partitions are there too? – Journeyman Geek May 20 '11 at 1:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .