problem in dual boot win 7 and ubuntu

Asked by prassu

i installed ubuntu and win 7 ( ubuntu installed first and win 7 )
i restore the grub , but cont able make enable window 7 in boot option
 can any one explain wht is this really mean
............................................................................................
 Edit Grub to List Windows 7. In the terminal type this
“sudo gedit /boot/grub/menu.lst”
After a large text file opens leave a line and write this
title windows 7
root (hd0,1)
savedefault
makeactive
chainloader +1...........................................................................................
1.where should we have to edit grub in live cd or installed ubuntu
2. how to edit grub
3. what is root (hd0,1) in my case it is (hd0,4)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

1) booting from installed ubuntu
2) open a terminal from Application→Accessories → Terminal and type:

sudo gedit /boot/grub/menu.lst

if the system ask you a password give your user password, you will not see nothing when you type it, then press enter

Modify save and exit

3) to discover your disk parttions please type in a terminal

sudo fdisk -l

if the system ask you a password give your user password, you will not see nothing when you type it, then press enter

in grub disks and partitions reference number are starting numbering from 0 zero...

So

/dev/sda -> hd0
/dev/sdb -> hd1

/dev/sda1 -> ( hd0,0 )
/dev/sda2 -> ( hd0,1 )

/dev/sdb1 -> ( hd1,0 )
/dev/sdb2 -> ( hd1,1 )

Hope this helps

Revision history for this message
Rajinder Sandhu (sandy744) said :
#2

you have to repair your windows7 MBR only
just run the win7 DVD and select repair then first option fix booting problem there after you will be able to boot into both the OSs

Can you help with this problem?

Provide an answer of your own, or ask prassu for more information if necessary.

To post a message you must log in.