Bootcamp files cannot be moved error

What I did and What I found..

Last month I thought of making some extra space for Windows 7 partition on my Mac. What I did was I backed up my windows data and then deleted my windows partition from Disk utility. I then tried to re size the deleted partition from 20Gb to 30Gb but the operation failed with this error.

“The disk cannot be partitioned because some files cannot be moved. Back up the disk and use Disk Utility to format it as a single Mac OS Extended (Journaled) volume. Restore your information to the disk and try using Boot Camp Assistant again.”

I googled this error and found that this may possibly be solved using Disk Defragmentation. One person also suggested that backup all your heavy movie files, delete them and then do the resizing :). Well to me that’s certainly is a little dumb solution. The possible cause to this problem can be the messy data blocks on Hard Disk which during partition cannot be shifted using Disk Utility.

How I solved my..

I inserted my Snow Leopard DVD and used the Disk utility program and repaired my whole HDD using “repair disk”. After disk repair I tried to make a FAT partition of 30GB and it worked! Now I used bootcamp assistant and Windows 7 DVD and found that it cannot be installed on FAT, so I formatted that partition in NTFS using Win 7 utility. I was afraid that it might screw my Mac installation but nothing happened, everything went smoothly.