I needed to install Windows XP on my MacBook, but whenever I tried to partition my drive, Boot Camp would give an error which said "Verification Failed" and tell me to use Disk Repair on my Leopard CD.

Problem is that most of the time it says that the disk doesn't need repair and thus the error remains.

If you have the same problem, you can to the following to sort it out:

Restart your Mac.

As soon as it turns on, even before you hear it go bong, hold down Cmd+S.

The system will boot showing a lot of text. If it doesn't and you see the Apple logo, you've waited too long. Reboot and try again.

When at the prompt type fsck -f. If changes are successfully made it will repeat the process then say "Modifications have been made".

Then simply type in reboot and you should be able to partition your drive successfully.

[kirkmc adds: This is not the only cause of such an error. When partitioning hard disks, Leopard uses the resizeVolume command which moves files as necessary to be able to partition the disk. When doing so, it may encounter files that it cannot move - system or metadata files - and this will give you a Verification Failed error, with no other explanation. You can learn more about how this command works in a Macworld article I wrote last year.]