Server Fault is a question and answer site for system and network administrators. 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 Windows 7 Ultimate x64 on a machine running Arch Linux the MBR became rewritten (I do not think GRUB has been uninstalled). Arch is now unbootable except if I use the live-CD to boot, and then choose from the local drives.

The disk where Win7 was installed is hd0 and the one where Arch is hd1.

Is there a way to restore GRUB and make the system dual-booting? It would be best if it could be done from within the Arch environment (after all I have found the workaround with the live-CD).

share|improve this question

Try runing "grub-install" from your arch enviroment. If you didn't have windows before, edit the grub configuration and add windows to your config.

share|improve this answer
up vote 0 down vote accepted

After quite some digging, I found what I was looking for, so here is what worked for me.

Arch has always been on hd1 and windows on hd0. Grub was never uninstalled from hd1 where he was initially placed during the Arch installation. It was "just" the boot sector that got removed by the Win7 installation (if I am mistaken you are welcome to correct me).

What I did was run grub in the terminal so that I get its CLI. This is what I typed afterwards:

    find /boot/grub/stage1
    root (hd1,1)
    setup (hd0)

The last line was counterintuitive (at least for me) because I expected it to be "hd1" in order to correspond with where the Arch installation was.

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.