Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

My friend (on windows xp) recently compressed his entire C:/ drive and consequently, his laptop won't boot, he gets "BOOTMGR is compressed Press Ctrl+Alt+Del to restart". This happens every time! I can boot ubuntu from the usb so I was wondering if it was possible to fix this issue? Thanks in advance, ell.

EDIT: His laptop does not have a cd drive

share|improve this question
I doubt you can fix this with Ubuntu. Not having a CD drive is another issue, but what OS does he use? If the message contains BOOTMGR it's cetainly not Windows XP. – htorque Nov 9 '10 at 18:51
up vote 4 down vote accepted

If it's Windows XP and the NTLDR is compressed, then maybe this will work:

  1. Install 'ntfsprogs'
  2. Mount the Windows partition (eg. /dev/sda1):

    sudo mount /dev/sda1 /mnt/winxp
  3. Copy the ntldr to your home dir (or somewhere else):

    cp -p /mnt/winxp/ntldr ~
  4. Delete or backup the original ntldr file:

    sudo mv /mnt/winxp/ntldr /mnt/winxp/ntldr.bak
  5. Copy the ntldr from your home folder back to the Windows partition using 'ntfscp' (this should uncompress it). You first need to unmount the partition:

    sudo umount /mnt/winxp

    then do:

    ntfscp -v /dev/sda1 ~/ntldr ntldr
  6. To check if the operation was successful, you can run 'ntfsinfo':

    sudo ntfsinfo -v -F /ntldr /dev/sda1

    If this shows:

    File attributes: (0x00000000)

    then the loader is fixed and you can try to boot (and I suggest you then untick the "Compress this Drive To Save Space" in C: properties).
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.