LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2009, 10:53 PM   #1
jrod2sc
LQ Newbie
 
Registered: Sep 2006
Posts: 6

Rep: Reputation: 0
Reinstalling GRUB on RH Enterprise WS 4 in dual boot system


I have a two HD dual boot system with Widows XP and RH Enterprise WS 4. I had to reinstall Windows XP and lost GRUB. I am not able to fix the problem using the following procedure:

1. I boot using the RedHat DVD
2. At the command line I type: linux rescue
3. I answer a few questions and get to command line again
4. Next, I type the following command at the following prompt:

~/bin/sh-3.00# chroot /mnt/sysimage

5. Then, I try to restore the boot loader by typing at the following prompt:

sh-3.00# grub-install /dev/hd0
(I have also tried grub-install /dev/hda)

However, I get the following error:
/dev/hd0: Not found or not a block device
(or /dev/hda: Not found or not a block device)


Any suggestions on where I am going wrong?

Thanks in advance.
 
Old 06-24-2009, 11:08 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,072
Blog Entries: 3

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
grub wants to know where the file /boot/ <-- is so it can load the file grub in it.
that would be /dev/hda1 then the boot loader will be /dev/hda. try running grubconfig
grub install is part of that program. grubconfig simple install /dev/hda1 put it on the mbr /dev/hda or
down load super grub do a manual linux boot and then your in your system and reinstall it from there.
good luck.

Last edited by Drakeo; 06-24-2009 at 11:12 PM.
 
Old 06-24-2009, 11:22 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,832

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Seeing as you have (had) a working grub environment just use that - as root, try this
Code:
grub
find /grub/stage1      use the response in next command
root (hd?,?)               (from previous command)
setup (hd0)
quit
If the find command fails, use "/boot/grub/stage1"

Last edited by syg00; 06-24-2009 at 11:24 PM.
 
Old 06-24-2009, 11:35 PM   #4
jrod2sc
LQ Newbie
 
Registered: Sep 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Seeing as you have (had) a working grub environment just use that - as root, try this
Code:
grub
find /grub/stage1      use the response in next command
root (hd?,?)               (from previous command)
setup (hd0)
quit
If the find command fails, use "/boot/grub/stage1"
Did this and now when I go to boot I get
GRUB Loading stage1.5.
Grub loading, please wait...
Error 17
 
Old 06-24-2009, 11:41 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,832

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Go to sf.net and get the bootinfo script - run it from your sysimage chroot and post the RESULTS.txt
 
Old 06-25-2009, 12:32 AM   #6
jrod2sc
LQ Newbie
 
Registered: Sep 2006
Posts: 6

Original Poster
Rep: Reputation: 0
============================= Boot Info Summary: ==============================

=> Windows is installed in the MBR of /dev/sda
=> No known boot loader is installed in the MBR of /dev/sdb

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Mounting failed:
mount: fs type ntfs not supported by kernel
/root/Desktop/boot_info_script032.sh: line 1114: ntfs-3g: command not found

sdb1: _________________________________________________________________________

File system: ext2
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/menu.lst /grub/grub.conf

sdb2: _________________________________________________________________________

File system:
Boot sector type: -
Boot sector info:
Mounting failed:
mount: fs type not supported by kernel

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders, total 78125000 sectors
Units = sectors of 1 * 512 = 512 bytes


Partition Boot Start End Size Id System

/dev/sda1 * 63 78,108,029 78,107,967 7 HPFS/NTFS


Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders, total 156250000 sectors
Units = sectors of 1 * 512 = 512 bytes


Partition Boot Start End Size Id System

/dev/sdb1 * 63 208,844 208,782 83 Linux
/dev/sdb2 208,845 156,248,189 156,039,345 8e Linux LVM


blkid -c /dev/null: ____________________________________________________________

/dev/sda1: TYPE="ntfs"
/dev/sdb1: LABEL="/boot" UUID="225b7d57-0c0a-40e3-89cd-69b778a294dc" SEC_TYPE="ext3" TYPE="ext2"
/dev/VolGroup00/LogVol00: UUID="cf35cce0-d3ac-43b4-821e-8a8074cfa464" SEC_TYPE="ext3" TYPE="ext2"
/dev/VolGroup00/LogVol01: TYPE="swap"

=============================== "mount" output: ===============================

/dev/VolGroup00/LogVol00 on / type ext3 (rw,defaults)
/dev/sdb1 on /boot type ext3 (rw,defaults)
none on /proc type proc (rw,defaults)
none on /sys type sysfs (rw,defaults)


============================= sdb1/grub/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 (hd2,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd2,0)/grub/splash.xpm.gz
hiddenmenu
password --md5 $1$rZNJWR42$iNXAMFlFyXUroQZX89mZ10
title Red Hat Enterprise Linux WS (2.6.9-78.0.17.ELsmp)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.17.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.17.ELsmp.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.17.EL)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.17.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.17.EL.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.13.ELsmp)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.13.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.13.ELsmp.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.13.EL)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.13.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.13.EL.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.8.ELsmp)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.8.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.8.ELsmp.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.8.EL)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.8.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.8.EL.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.5.ELsmp)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.5.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.5.ELsmp.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.5.EL)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.5.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.5.EL.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.1.EL)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.1.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.1.EL.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.1.ELsmp)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.1.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.1.ELsmp.img
title Red Hat Enterprise Linux WS (2.6.9-5.ELsmp)
root (hd2,0)
kernel /vmlinuz-2.6.9-5.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-5.ELsmp.img
title Red Hat Enterprise Linux WS-up (2.6.9-5.EL)
root (hd2,0)
kernel /vmlinuz-2.6.9-5.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-5.EL.img
title Other
rootnoverify (hd0,0)
chainloader +1

=================== sdb1: Location of files loaded by Grub: ===================


.0GB: grub/grub.conf
.0GB: grub/menu.lst
.0GB: grub/stage2
.0GB: initrd-2.6.9-5.EL.img
.0GB: initrd-2.6.9-5.ELsmp.img
.0GB: initrd-2.6.9-78.0.13.EL.img
.0GB: initrd-2.6.9-78.0.13.ELsmp.img
.0GB: initrd-2.6.9-78.0.17.EL.img
.0GB: initrd-2.6.9-78.0.17.ELsmp.img
.0GB: initrd-2.6.9-78.0.1.EL.img
.0GB: initrd-2.6.9-78.0.1.ELsmp.img
.0GB: initrd-2.6.9-78.0.5.EL.img
.0GB: initrd-2.6.9-78.0.5.ELsmp.img
.0GB: initrd-2.6.9-78.0.8.EL.img
.0GB: initrd-2.6.9-78.0.8.ELsmp.img
.0GB: vmlinuz-2.6.9-5.EL
.0GB: vmlinuz-2.6.9-5.ELsmp
.0GB: vmlinuz-2.6.9-78.0.13.EL
.0GB: vmlinuz-2.6.9-78.0.13.ELsmp
.0GB: vmlinuz-2.6.9-78.0.17.EL
.0GB: vmlinuz-2.6.9-78.0.17.ELsmp
.0GB: vmlinuz-2.6.9-78.0.1.EL
.0GB: vmlinuz-2.6.9-78.0.1.ELsmp
.0GB: vmlinuz-2.6.9-78.0.5.EL
.0GB: vmlinuz-2.6.9-78.0.5.ELsmp
.0GB: vmlinuz-2.6.9-78.0.8.EL
.0GB: vmlinuz-2.6.9-78.0.8.ELsmp
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown MBR on /dev/sdb

00000000 90 e9 7d 01 fa 33 c0 8e d0 8e c0 8e d8 bc 00 7c |..}..3.........||
00000010 8b f4 fb bf 00 06 b9 00 01 f3 a5 bb 20 06 ff e3 |............ ...|
00000020 90 90 be 7d 07 81 3c aa 55 75 11 e8 58 00 73 0c |...}..<.Uu..X.s.|
00000030 e8 65 00 72 07 e8 b1 00 72 3b eb 2c be 7d 07 c7 |.e.r....r;.,.}..|
00000040 04 00 00 ba 80 00 be be 07 b9 04 00 f6 04 80 75 |...............u|
00000050 07 83 c6 10 e2 f6 eb 1d 8a 74 01 8b 4c 02 bb 00 |.........t..L...|
00000060 7c b8 01 02 cd 13 72 0d 81 3e fe 7d 55 aa 75 05 ||.....r..>.}U.u.|
00000070 ea 00 7c 00 00 be 6a 07 ac 0a c0 74 fe bb 07 00 |..|...j....t....|
00000080 b4 0e cd 10 eb f2 bb 00 7e c6 07 13 c6 47 01 00 |........~....G..|
00000090 b2 80 b8 00 e0 cd 13 c3 bf 00 7e ba f0 01 b3 a0 |..........~.....|
000000a0 e8 84 00 72 0c b1 01 e8 48 00 72 05 e8 19 00 73 |...r....H.r....s|
000000b0 16 f6 c3 10 75 05 80 cb 10 eb e5 81 fa 70 01 74 |....u........p.t|
000000c0 05 ba 70 01 eb d8 f9 c3 81 bd fe 01 55 aa 75 17 |..p.........U.u.|
000000d0 8b 75 02 81 fe be 01 77 0e 03 f7 81 3c aa 55 75 |.u.....w....<.Uu|
000000e0 06 f6 44 02 01 75 01 f9 c3 bf 00 7c b1 0a e8 01 |..D..u.....|....|
000000f0 00 c3 52 57 83 c2 02 b0 01 ee 42 8a c1 ee 42 32 |..RW......B...B2|
00000100 c0 ee 42 ee 42 8a c3 ee 42 b0 20 ee e8 33 00 ec |..B.B...B. ..3..|
00000110 24 fd 3c 58 75 0d 83 ea 07 b9 00 01 fa f3 6d fb |$.<Xu.........m.|
00000120 f8 eb 01 f9 5f 5a c3 52 83 c2 07 ec a8 80 75 0f |...._Z.R......u.|
00000130 4a 8a c3 ee 42 ec 24 d0 3c 50 75 03 f8 eb 01 f9 |J...B.$.<Pu.....|
00000140 5a c3 51 8b 0e 6c 04 83 c1 12 81 c2 ff 01 ec 8a |Z.Q..l..........|
00000150 e0 80 e4 d8 80 fc 58 74 06 3b 0e 6c 04 75 ef 81 |......Xt.;.l.u..|
00000160 ea ff 01 b9 00 20 e2 fe 59 c3 0d 0a 45 72 72 6f |..... ..Y...Erro|
00000170 72 20 4c 6f 61 64 69 6e 67 20 4f 53 00 aa 55 00 |r Loading OS..U.|
00000180 00 e9 80 fe 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001b0 00 00 00 00 00 00 00 00 b0 19 3d 01 00 00 80 01 |..........=.....|
000001c0 01 00 83 fe 3f 0c 3f 00 00 00 8e 2f 03 00 00 00 |....?.?..../....|
000001d0 01 0d 8e fe ff ff cd 2f 03 00 b1 f8 4c 09 00 00 |......./....L...|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
 
Old 06-25-2009, 01:58 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,832

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
That's not making a lot of sense - you say grub boots ?.
What values did you use in those commands I gave you ?.
 
Old 06-25-2009, 02:21 AM   #8
jrod2sc
LQ Newbie
 
Registered: Sep 2006
Posts: 6

Original Poster
Rep: Reputation: 0
find /grub/stage1 gives:
(hd1,0)
 
Old 06-25-2009, 02:31 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,832

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
As soon as you get the loading 1.5" message, hit the <Esc> key - see if you get a menu.
If so, follow the messages at the bottom to edit an entry, and change the "root (hd2,0)" to "root (hd1,0)" and see if it boots. This is a temporary change only.
 
Old 06-25-2009, 02:45 AM   #10
jrod2sc
LQ Newbie
 
Registered: Sep 2006
Posts: 6

Original Poster
Rep: Reputation: 0
nothing happens.
 
Old 06-25-2009, 03:11 AM   #11
jrod2sc
LQ Newbie
 
Registered: Sep 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Not sure if this helps, but before my c drive took a dump and I had to reinstall Windows XP, I had two other HDs that I used for backup and that were formatted for Windows.

I reconnected both of these HDs to the computer, installed a new MBR from the widows xp cd, and again ran bootinfo.

Here is what I got, does this help?


============================= Boot Info Summary: ==============================

=> Windows is installed in the MBR of /dev/sda
=> No known boot loader is installed in the MBR of /dev/sdb
=> Windows is installed in the MBR of /dev/sdc
=> Windows is installed in the MBR of /dev/sdd

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Mounting failed:
mount: fs type ntfs not supported by kernel
/root/Desktop/boot_info_script032.sh: line 1114: ntfs-3g: command not found

sdb1: _________________________________________________________________________

File system: ext2
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/menu.lst /grub/grub.conf

sdb2: _________________________________________________________________________

File system:
Boot sector type: -
Boot sector info:
Mounting failed:
mount: fs type not supported by kernel

sdc1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Mounting failed:
mount: fs type ntfs not supported by kernel
/root/Desktop/boot_info_script032.sh: line 1114: ntfs-3g: command not found

sdd1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Mounting failed:
mount: fs type ntfs not supported by kernel
/root/Desktop/boot_info_script032.sh: line 1114: ntfs-3g: command not found

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders, total 78125000 sectors
Units = sectors of 1 * 512 = 512 bytes


Partition Boot Start End Size Id System

/dev/sda1 * 63 78,108,029 78,107,967 7 HPFS/NTFS


Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders, total 156250000 sectors
Units = sectors of 1 * 512 = 512 bytes


Partition Boot Start End Size Id System

/dev/sdb1 * 63 208,844 208,782 83 Linux
/dev/sdb2 208,845 156,248,189 156,039,345 8e Linux LVM


Drive: sdc ___________________ _____________________________________________________

Disk /dev/sdc: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders, total 78125000 sectors
Units = sectors of 1 * 512 = 512 bytes


Partition Boot Start End Size Id System

/dev/sdc1 * 63 78,108,029 78,107,967 7 HPFS/NTFS


Drive: sdd ___________________ _____________________________________________________

Disk /dev/sdd: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders, total 781422768 sectors
Units = sectors of 1 * 512 = 512 bytes


Partition Boot Start End Size Id System

/dev/sdd1 * 63 781,417,664 781,417,602 7 HPFS/NTFS


blkid -c /dev/null: ____________________________________________________________

/dev/sda1: TYPE="ntfs"
/dev/sdb1: LABEL="/boot" UUID="225b7d57-0c0a-40e3-89cd-69b778a294dc" SEC_TYPE="ext3" TYPE="ext2"
/dev/sdc1: TYPE="ntfs"
/dev/sdd1: TYPE="ntfs"
/dev/VolGroup00/LogVol00: UUID="cf35cce0-d3ac-43b4-821e-8a8074cfa464" SEC_TYPE="ext3" TYPE="ext2"
/dev/VolGroup00/LogVol01: TYPE="swap"

=============================== "mount" output: ===============================

/dev/VolGroup00/LogVol00 on / type ext3 (rw,defaults)
/dev/sdb1 on /boot type ext3 (rw,defaults)
none on /proc type proc (rw,defaults)
none on /sys type sysfs (rw,defaults)


============================= sdb1/grub/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 (hd2,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd2,0)/grub/splash.xpm.gz
hiddenmenu
password --md5 $1$rZNJWR42$iNXAMFlFyXUroQZX89mZ10
title Red Hat Enterprise Linux WS (2.6.9-78.0.17.ELsmp)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.17.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.17.ELsmp.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.17.EL)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.17.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.17.EL.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.13.ELsmp)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.13.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.13.ELsmp.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.13.EL)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.13.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.13.EL.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.8.ELsmp)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.8.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.8.ELsmp.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.8.EL)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.8.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.8.EL.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.5.ELsmp)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.5.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.5.ELsmp.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.5.EL)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.5.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.5.EL.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.1.EL)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.1.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.1.EL.img
title Red Hat Enterprise Linux WS (2.6.9-78.0.1.ELsmp)
root (hd2,0)
kernel /vmlinuz-2.6.9-78.0.1.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-78.0.1.ELsmp.img
title Red Hat Enterprise Linux WS (2.6.9-5.ELsmp)
root (hd2,0)
kernel /vmlinuz-2.6.9-5.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-5.ELsmp.img
title Red Hat Enterprise Linux WS-up (2.6.9-5.EL)
root (hd2,0)
kernel /vmlinuz-2.6.9-5.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-5.EL.img
title Other
rootnoverify (hd0,0)
chainloader +1

=================== sdb1: Location of files loaded by Grub: ===================


.0GB: grub/grub.conf
.0GB: grub/menu.lst
.0GB: grub/stage2
.0GB: initrd-2.6.9-5.EL.img
.0GB: initrd-2.6.9-5.ELsmp.img
.0GB: initrd-2.6.9-78.0.13.EL.img
.0GB: initrd-2.6.9-78.0.13.ELsmp.img
.0GB: initrd-2.6.9-78.0.17.EL.img
.0GB: initrd-2.6.9-78.0.17.ELsmp.img
.0GB: initrd-2.6.9-78.0.1.EL.img
.0GB: initrd-2.6.9-78.0.1.ELsmp.img
.0GB: initrd-2.6.9-78.0.5.EL.img
.0GB: initrd-2.6.9-78.0.5.ELsmp.img
.0GB: initrd-2.6.9-78.0.8.EL.img
.0GB: initrd-2.6.9-78.0.8.ELsmp.img
.0GB: vmlinuz-2.6.9-5.EL
.0GB: vmlinuz-2.6.9-5.ELsmp
.0GB: vmlinuz-2.6.9-78.0.13.EL
.0GB: vmlinuz-2.6.9-78.0.13.ELsmp
.0GB: vmlinuz-2.6.9-78.0.17.EL
.0GB: vmlinuz-2.6.9-78.0.17.ELsmp
.0GB: vmlinuz-2.6.9-78.0.1.EL
.0GB: vmlinuz-2.6.9-78.0.1.ELsmp
.0GB: vmlinuz-2.6.9-78.0.5.EL
.0GB: vmlinuz-2.6.9-78.0.5.ELsmp
.0GB: vmlinuz-2.6.9-78.0.8.EL
.0GB: vmlinuz-2.6.9-78.0.8.ELsmp
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown MBR on /dev/sdb

00000000 90 e9 7d 01 fa 33 c0 8e d0 8e c0 8e d8 bc 00 7c |..}..3.........||
00000010 8b f4 fb bf 00 06 b9 00 01 f3 a5 bb 20 06 ff e3 |............ ...|
00000020 90 90 be 7d 07 81 3c aa 55 75 11 e8 58 00 73 0c |...}..<.Uu..X.s.|
00000030 e8 65 00 72 07 e8 b1 00 72 3b eb 2c be 7d 07 c7 |.e.r....r;.,.}..|
00000040 04 00 00 ba 80 00 be be 07 b9 04 00 f6 04 80 75 |...............u|
00000050 07 83 c6 10 e2 f6 eb 1d 8a 74 01 8b 4c 02 bb 00 |.........t..L...|
00000060 7c b8 01 02 cd 13 72 0d 81 3e fe 7d 55 aa 75 05 ||.....r..>.}U.u.|
00000070 ea 00 7c 00 00 be 6a 07 ac 0a c0 74 fe bb 07 00 |..|...j....t....|
00000080 b4 0e cd 10 eb f2 bb 00 7e c6 07 13 c6 47 01 00 |........~....G..|
00000090 b2 80 b8 00 e0 cd 13 c3 bf 00 7e ba f0 01 b3 a0 |..........~.....|
000000a0 e8 84 00 72 0c b1 01 e8 48 00 72 05 e8 19 00 73 |...r....H.r....s|
000000b0 16 f6 c3 10 75 05 80 cb 10 eb e5 81 fa 70 01 74 |....u........p.t|
000000c0 05 ba 70 01 eb d8 f9 c3 81 bd fe 01 55 aa 75 17 |..p.........U.u.|
000000d0 8b 75 02 81 fe be 01 77 0e 03 f7 81 3c aa 55 75 |.u.....w....<.Uu|
000000e0 06 f6 44 02 01 75 01 f9 c3 bf 00 7c b1 0a e8 01 |..D..u.....|....|
000000f0 00 c3 52 57 83 c2 02 b0 01 ee 42 8a c1 ee 42 32 |..RW......B...B2|
00000100 c0 ee 42 ee 42 8a c3 ee 42 b0 20 ee e8 33 00 ec |..B.B...B. ..3..|
00000110 24 fd 3c 58 75 0d 83 ea 07 b9 00 01 fa f3 6d fb |$.<Xu.........m.|
00000120 f8 eb 01 f9 5f 5a c3 52 83 c2 07 ec a8 80 75 0f |...._Z.R......u.|
00000130 4a 8a c3 ee 42 ec 24 d0 3c 50 75 03 f8 eb 01 f9 |J...B.$.<Pu.....|
00000140 5a c3 51 8b 0e 6c 04 83 c1 12 81 c2 ff 01 ec 8a |Z.Q..l..........|
00000150 e0 80 e4 d8 80 fc 58 74 06 3b 0e 6c 04 75 ef 81 |......Xt.;.l.u..|
00000160 ea ff 01 b9 00 20 e2 fe 59 c3 0d 0a 45 72 72 6f |..... ..Y...Erro|
00000170 72 20 4c 6f 61 64 69 6e 67 20 4f 53 00 aa 55 00 |r Loading OS..U.|
00000180 00 e9 80 fe 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001b0 00 00 00 00 00 00 00 00 b0 19 3d 01 00 00 80 01 |..........=.....|
000001c0 01 00 83 fe 3f 0c 3f 00 00 00 8e 2f 03 00 00 00 |....?.?..../....|
000001d0 01 0d 8e fe ff ff cd 2f 03 00 b1 f8 4c 09 00 00 |......./....L...|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
 
Old 06-25-2009, 10:30 AM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Your last post shows you have four hard drives. Three of these have windows in their master boot record (sda, sdc and sdd). The fourth drive (sdb) does not have any bootloader in the master boot record. So that means you don't have Grub installed. You will either have to modify your windows boot loader file or re-install Grub to (hd1)

Log in as root.
Enter grub at prompt in terminal so you get the grub prompt (grub>)
Here you type:

root (hd1,0)
setup (hd1)
quit

This should put the Grub stage1 file in the master boot record of sdb pointing to the remaining Grub files on (hd1,0) or sdb1. You will then need to set sdb as first boot priority. You may need to manually edit the menu.lst file to put entries for windows.
 
Old 06-25-2009, 11:27 AM   #13
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,072
Blog Entries: 3

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
Quote:
kernel /vmlinuz-2.6.9-5.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-5.EL.img
did you realize it is looking for /boot/vmlinuz-2.6.9-5.EL .
Quote:
title Linux sdb1 ----------<-change to your hard drive
root (hd1,0) ---------<-change to your hard drive (hd0,0)=sda1 or hda1 (hd1,0)=sdb1
configfile /boot/grub/menu.lst
Now reboot your machine and select Linux sdb1 grub will now go to that hardware search for
/boot/grub/menu.lst file read it and load it you will see a new selection. select your system it will be on top as default. all is well. if you moved any of your hard drives or changed there priority in bios then you will need to put things back to the way you installed your systems.

Last edited by Drakeo; 06-25-2009 at 11:33 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Solved: Dual boot, deleted /boot and all linux partitions, system boots to grub> cuco76 Linux - Software 0 01-06-2009 06:27 PM
Reinstalling Mandriva on Dual-boot system PCalitrack Mandriva 11 08-07-2006 08:38 PM
reinstalling winXP on an existing dual boot system with winXP and FC4 grub not workin champion Fedora - Installation 3 02-13-2006 03:37 PM
DualBoot Fail: System Rebuild: Error upon reinstalling FC4 in Dual boot config krnlkule Linux - Newbie 1 09-06-2005 11:56 PM
How to Uninstall RedHat Enterprise on dual-boot system w/XP kenk50 Linux - Newbie 1 02-25-2005 06:49 PM


All times are GMT -5. The time now is 01:45 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration