How to edit grub for Multiple boot options?

March 14, 2011 at 12:37:25
Specs: Linux i686, Core 2 Duo 2.4
Hi all,

I have installed Windows 7 and then installed Windows Server 2003 Enterprise Edition. I have installed both of them on different partitions but still some how at the boot up it is not showing the Win 7. So i did Start-up repair with Win 7 Disk. after that I am directly going to Win 7 and now I am not able to boot Windows Server 2003. So now I have installed Red Hat 5.4 on a different partition. So in grub menu I am able to see the Win 7 and RHEL5. Still I am sure that Windows Server 2003 is still there, on some other partition. (When you log in through win 7 Win Server 2003 partition is 3rd i.e. E:\ ).So please let me know how to add Windows Server 2003 Entry in grub.conf ......... Please Help me on this.
(Please refer to following if needed.

1) Below is my grub.conf after I tried to edited it and add Windows Server 2003 Entry.

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,5)
# kernel /vmlinuz-version ro root=/dev/sda7
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=15
splashimage=(hd0,5)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-164.el5)
root (hd0,5)
kernel /vmlinuz-2.6.18-164.el5 ro root=LABEL=/ rhgb quiet crashkernel=256M@16M
initrd /initrd-2.6.18-164.el5.img
title Windows 7
rootnoverify (hd0,0)
chainloader +1
title Windows Server 2003 Enterprise Edition
rootnoverify (hd0,4)
chainloader +1


----------------------------X-----------------------O-----------------------X----------------------------


2) These are the entries of fdisk -l

[root@dhcppc0 ~]# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 7650 61337600 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 7650 12956 42622976 7 HPFS/NTFS
Partition 3 does not end on cylinder boundary.
/dev/sda4 12957 19456 52211250 f W95 Ext'd (LBA)
/dev/sda5 12957 13593 5116671 7 HPFS/NTFS
/dev/sda6 13594 13606 104391 83 Linux
/dev/sda7 13607 14881 10241406 83 Linux
/dev/sda8 14882 15263 3068383+ 82 Linux swap / Solaris
[root@dhcppc0 ~]#

I hope above info is useful.)


Thanks in advance.

- Red Prince


See More: How to edit grub for Multiple boot options?

Report •

#1
March 14, 2011 at 12:46:04
Hi All,
Below is the same info that is have mentioned above however I have put some spaces in between so it becomes easy to understand. Otherwise it is identical to the above info.


[root@dhcppc0 ~]# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS

Partition 1 does not end on cylinder boundary.

/dev/sda2 13 7650 61337600 7 HPFS/NTFS

Partition 2 does not end on cylinder boundary.

/dev/sda3 7650 12956 42622976 7 HPFS/NTFS

Partition 3 does not end on cylinder boundary.

/dev/sda4 12957 19456 52211250 f W95 Ext'd (LBA)

/dev/sda5 12957 13593 5116671 7 HPFS/NTFS

/dev/sda6 13594 13606 104391 83 Linux

/dev/sda7 13607 14881 10241406 83 Linux

/dev/sda8 14882 15263 3068383+ 82 Linux swap / Solaris

[root@dhcppc0 ~]# uname -r


Report •

#2
March 14, 2011 at 20:12:17
Is that partition (E:) shown as a logical partition or as a primary partition?

Click Here on HowTo ask good Question to get best Help
Let us know, if the problem is solved !!!


Report •

#3
March 15, 2011 at 04:30:26
I suppose that yes, it is. Because when I login through windows 7 I see 3 Drives. those are as follow :

1) C:\ ---- Where there is Windows 7 installed
2) D:\ ---- This one I created through Win 7 for Data Storage
3) E:\ ---- This is where I see all the Win Server 2003 folders and files including the documents and settings, windows, etc.

(I know 1 thing that might help you ie. while windows 7 installation windows 7 creates a default drive of 100 MB for system use. You can't even see that drive in my computer but you can see that at disk management. Going further I suppose win 7 creates that drive before even it creates the C:\ )


Report •

Related Solutions

#4
March 15, 2011 at 05:05:13
The problem is you did not a clean install of the two different Window products. Microsoft always install boot files in Drive C You have to hide the first Window partition so that the second installation is on a fresh empty Drive C.

Report •

#5
March 15, 2011 at 05:27:42
Hi wizard-fred,
I have performed the clean install here but the issue is when you install windows 7 it creates that 100 MB system drive by default that is something default for windows 7 installation.

Report •

#6
March 15, 2011 at 06:54:53
Red Prince,

Windows 7 always creates a 100MB hidden partition and that's no problem.
It's also ok, when you install Windows Server 2003 on drive D or whatever, while C contains Windows 7 and is visible, because during the installation of Windows Server 2003, you are asked for the partition, to install to. No problem.

In Windows 7, take a look at the partitions.
Therefore, rightclick on Computer and choose Manage.
In the management console, select disk management.
In the middle, you will get a list of the partitions of the drives.
The status column will give you information on what partition type it is, primary, logical.

What type is the drive E partition, where your Windows Server is installed to?

Click Here on HowTo ask good Question to get best Help
Let us know, if the problem is solved !!!


Report •

#7
March 15, 2011 at 08:34:46
Hi paulsep,

hey thanks to reply and if you can give me your e-mail ID (If at all possible) I can attach a screenshot and send it to you I am not able to upload or past the screenshot here. I am too confused now where is what after look at that disk management thingy.


Report •

#8
March 15, 2011 at 09:38:21
Sorry, no private e-mail address here.

Do the following:
Client Start Menu button
Rightclick Computer and choose Manage from the context menu
In Computer Management Console click Storage and then Disk Management
Now you should get a list of the hard drives and the partitions.

Click Here on HowTo ask good Question to get best Help
Let us know, if the problem is solved !!!


Report •

Ask Question