View Full Version : How to add windows 7 in the grub menu list

14th April 2011, 08:13 PM
Dear all,
I have installed f14 in my laptop.
The hard disk partitions are as follows

# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x425a6c6a

Device Boot Start End Blocks Id System
/dev/sda1 * 102402048 155650047 26624000 83 Linux
/dev/sda2 206848 102402047 51097600 7 HPFS/NTFS
/dev/sda3 155650048 618498047 231424000 83 Linux
/dev/sda4 618498048 625141759 3321856 5 Extended
/dev/sda5 618500096 625141759 3320832 82 Linux swap / Solaris

Partition table entries are not in disk order

the /boot/grub/grub.conf contains

# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-[generic-]version.img
title Fedora (
root (hd0,0)
kernel /boot/vmlinuz- ro root=UUID=5112ebb7-111d-417b-ae80-45da150e8840 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet rdblacklist=nouveau vga=0318 nouveau.modeset=0
initrd /boot/initramfs-
title Fedora (
root (hd0,0)
kernel /boot/vmlinuz- ro root=UUID=5112ebb7-111d-417b-ae80-45da150e8840 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /boot/initramfs-
title Windows 7
rootnoverify (hd0,1)
chainloader +1

But I am not able to start windows. It says
"bootmgr is missing. Press ctrl - alt - del to restart"
Can anyone help me in this issue.
thanks in advance

14th April 2011, 08:51 PM
According to the fdisk partition layout, there is only one NTFS partition. It's /dev/sda2, and the grub.conf file correctly designates it as (hd0,1) in the Windows 7 section. So if bootmgr is not in the root directory of /dev/sda2, then it no longer exists. The fdisk output also reveals some empty sectors at the beginning of the drive. Windows 7 often puts its boot loader files in a small partition at the front of the drive. Do you recall deleting a partition since you last booted Windows 7?

15th April 2011, 05:58 AM
Thanks for the reply. Yes, I do have deleted the 100 Mb NTFS partition as I was not able to make 3 partition in linux. I had 2 NTFS, I needed 2 ext for / and home and one swap. So is it possible to get my windows back?

15th April 2011, 04:44 PM
You can try to recover the deleted partition with the free utility known as testdisk. It's easy to find on the Internet and comes in various versions for DOS, Windows, Linux, etc. It's also in the Fedora repos and can be installed with yum. I keep the DOS version on a bootable CD and floppy for emergencies, and I usually install the Linux version in Fedora with yum. It's not a pretty GUI app for the point-and-click crowd. It's a text-based menu-driven utility for serious work, but it is not hard to learn. And there is help and documentation at the web site.

Now, you have filled your partition table with the maximum four primary partitions. Actually, three primaries and one extended. Anyway, the partition table is full. So even though the data in the deleted partition probably is still sitting there unharmed and waiting to be recovered, I don't know if testdisk can recover it since there is no place in the partition table to recover it to. If it is really important to get that Windows system back, you may have to delete one of the other primary partitions. I don't know. Just try it and find out.

If you do have to delete Fedora in order to get the Windows boot partition back, and if you are successful, then make better use of the extended partition when you re-install Fedora. As it is now, the extended partition is wasted by being completely filled by the swap partition. Extended partitions are meant to hold many more logical partitions. It's for situations just like this. In fact, all of Fedora's partitions could have gone into the extended partition. The Windows boot partition did not need to be deleted.

15th April 2011, 08:53 PM
Thanks to you very much stoat for your reply. But for me windows is not in the priority. So I will not delete fedora as I have already installed the useful softwares here. Actually I deleted the partition by mistake. usually I do the extended partition and break the segments from there. Anyway as the c drive is there I can try that the windows bootloader can be reinstalled in c drive from the recovery disk or not. Do you know the procedure?
Otherwise I will delete the windows partition.

16th April 2011, 01:02 AM
It might be possible to recreate/repair the Windows boot loader without having a separate boot partition by copying the relevant files from somewhere (I don't know where) to the root directory of /dev/sda2. Then do the usual Windows startup repair stuff. If nobody here has the knowledge or details, you might try a Windows forum.

16th April 2011, 06:09 PM
Thanks stoat, I will try the step 4 of this link,
lets see what happens

---------- Post added at 10:39 PM ---------- Previous post was at 01:58 PM ----------

Hello stoat, I finally able to start windows. I posted in sevenforums and they guided me to recover that.

Thanks for your help too.