Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

After installing default factory windows xp from VAIO VGN-NR, and hence removing the Ubuntu on its hard drive, the grub does not allow the windows to boot up properly, giving the prompt: "no such partition" and grub rescue appears.

The Windows can not be recovered by rescue mode, since the administrator password of newly installed default windows (from hidden drive on the laptop) is not known to me.

Booting up with live-Ubuntu and trying to erase the MBR did not help a bit.

dd if=/dev/null of=/dev/sdX bs=446 count=1

I can simply install another windows on it, fixmbr and fixboot it and re-install the original factory windows. But I'm not like that. I want to find a way through, not around. Any suggestion?

share|improve this question
It seems, within Ubuntu-live, you can install lilo, and repair your MBR, by sudo apt-get install lilo and sudo lilo -M /dev/sda mbr. Vaio boots all-right now, still any alternative fix are welcome. – Saeed Jul 15 '13 at 13:37
What if you run fdisk /mbr from a windows recovery or dos tool? Or, there is some other similar way of recreating the MBR using a windows recovery prompt. – Halfgaar Jul 15 '13 at 18:22

Your Answer


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

Browse other questions tagged or ask your own question.