Super User is a question and answer site for computer enthusiasts and power users. 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

I've installed Debian 6 32bit on the same HDD but different partition along with Windows 7 64bit, and now my laptop only boots to Debian 6 where I want both Windows / Debian.

How can I edit GRUB to show both windows and debian?

share|improve this question

migrated from Nov 2 '11 at 0:05

This question came from our site for system and network administrators.

Look in /boot/grub/menu.lst, there is an example setup with windows on the first disk first partition (hd0,0) and Linux on the first disk second partition (hd0,1). Beyond that you see the active entries. If windows is on the first partition, your active part should look similar like this:

title         Windows 7
root          (hd0,0)
chainloader   +1

title         Debian Linux Default

(Don't modify the Linux entry)

With the next boot it should appear in the boot menu.

share|improve this answer

It looks like you might have corrupted your Master Boot Record - open up the terminal and run the following commands:

//you will be asked to give the root password
//grub will once again take a look at the OSs on your HDD
//it will probably find the windows install this time

That's it! If it works, Grub will tell you it found Windows 7. Then you simply need to restart and boot to windows :) I suspect the above will also work with sudo update-grub but I did not try that...

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .