LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-09-2012, 02:38 PM   #1
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Rep: Reputation: 15
Installing Windows 7 and RHEL5 Facing problem


Hi All

I recently install windows 7 first and then RHEL 5, now i can only boot into my linux machine, upon installing the RHEL5 i choose windows7 as a default os, but i cant boot my windows 7 anymore after rhel5 installation, below is the output of my default grub.conf file and output of fdisk command. grub is installed in /dev/sdb,
Please help me out.

[grub.conf]

# 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 (hd1,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00_root/LogVol00_root
# initrd /initrd-version.img
#boot=/dev/sdb
default=1
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-128.el5xen)
root (hd1,0)
kernel /xen.gz-2.6.18-128.el5
module /vmlinuz-2.6.18-128.el5xen ro root=/dev/VolGroup00_root/LogVol00_root rhgb quiet
module /initrd-2.6.18-128.el5xen.img
title Other
rootnoverify (hd1,4)
chainloader +1

[fdisk -l]


Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda4 4476 77825 589183875 5 Extended
/dev/sda5 4998 9567 36700160 7 HPFS/NTFS
/dev/sda6 9567 12753 25599546 8e Linux LVM
/dev/sda7 12754 14665 15358108+ 8e Linux LVM
/dev/sda8 14666 15187 4192933+ 82 Linux swap / Solaris

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
224 heads, 19 sectors/track, 459004 cylinders
Units = cylinders of 4256 * 512 = 2179072 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 49 102400 7 HPFS/NTFS
/dev/sdb2 49 49276 104755200 7 HPFS/NTFS
/dev/sdb3 49276 98551 104857600 7 HPFS/NTFS
/dev/sdb4 98551 172464 157286400 7 HPFS/NTFS
 
Old 04-09-2012, 03:21 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,431

Rep: Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471
What's on sda5? That's where your grub.conf file entry for windows is pointing (hd1,4) and that is the drive where your Red Hat install is. I doubt that is correct. The most logical place for your windows would be sdb1 as it is a windows partition and is marked active. Try the entry below:

Quote:
title Other
rootnoverify (hd0,0)
chainloader +1
If that doesn't work, post back with any error(s) as the entry may need to be mapped.
 
1 members found this post helpful.
Old 04-10-2012, 12:05 AM   #3
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by yancek View Post
What's on sda5? That's where your grub.conf file entry for windows is pointing (hd1,4) and that is the drive where your Red Hat install is. I doubt that is correct. The most logical place for your windows would be sdb1 as it is a windows partition and is marked active. Try the entry below:



If that doesn't work, post back with any error(s) as the entry may need to be mapped.
Thanks for your reply yancek i changed to (hd0,0) now its working , and i can log in to my windows , thanks a lot sir
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FACING PROBLEM IN ORACLE 10g INSTALLATION ON RHEL5 crahuldba@gmail.com Linux - Newbie 8 09-16-2010 10:18 AM
Facing problem while installing wireshark on free bsd vnaveen *BSD 1 08-11-2009 05:37 PM
Facing problem while installing VLC player? rafimd786 Linux - Software 5 07-11-2009 09:07 AM
Help me - Facing problem to boot windows XP after installing Fedora 8 harishsunquest Linux - Software 5 02-26-2009 09:13 AM
Facing problem in installing gcc zener Linux - Software 3 06-19-2006 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration