LinuxQuestions.org
Help answer threads with 0 replies.
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 02-25-2010, 03:58 PM   #1
deaddogger
LQ Newbie
 
Registered: Nov 2008
Posts: 11

Rep: Reputation: 0
Grub Loader cant boot from partition but other boots can see partition


I having a problem getting my grub loader to see one of my hard drives.

I added a drive, and my grub loader lost track of where everything was. I couldn't get my old linux (Red Hat 9) so I installed SuSe on my new hard drive. But I need my be able to boot from my old hard drive because it has apps that only run on the earlier version.

From /proc/partitions the old hard drive is sdd

******

major minor #blocks name



8 0 976762584 sda

8 1 2104483 sda1

8 2 20972857 sda2

8 3 953682660 sda3

8 16 488386584 sdb

8 17 131074303 sdb1

8 18 357309697 sdb2

8 32 488386584 sdc

8 33 488375968 sdc1

8 48 244198584 sdd

8 49 8193118 sdd1

8 50 10241437 sdd2

8 51 225761445 sdd3


*******

I edited my fstat and can mount the three partitions just fine.

*******

/dev/sdd1 /home2 ext3 rw,suid,dev,exec,auto,user,sync 0 0

/dev/sdd2 /other2 ext3 rw,suid,dev,exec,auto,user,sync 0 0

/dev/sdd3 /data2 ext3 rw,suid,dev,exec,auto,user,sync 0 0


*******

I edited my device.map and assigned (hd4) /dev/sdd and also tried (hd4) /dev/sdd


*******

(hd5) /dev/disk/by-id/usb-WD_3200BMV_External_575848363038333532383431-0:0

(hd3) /dev/disk/by-id/usb-Maxtor_3200_2CAH834P-0:0

(hd6) /dev/disk/by-id/usb-Maxtor_3200_2CAH7Q1W-0:0

(hd4) /dev/hdd

(hd2) /dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403

(hd1) /dev/disk/by-id/ata-SAMSUNG_HD502IJ_S13TJ9AQ718861

(hd0) /dev/disk/by-id/ata-SAMSUNG_HD502IJ_S13TJ1KQB14894


*******



I then put that info into the grub loader, when it trys to boot, it says that the disk doesn't exist

*******

title Red Hat Linux 9 with kernel (2.4.20-8)

root (hd4,0)

kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/

initrd-2.4.20-8.img


*******

Does anyone see where this might be going wrong
 
Old 02-25-2010, 04:13 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
(hd4) is the 5th disk as far as grub is concerned
(hd3) would be the 4th.

so sdd should be (hd3)

http://www.gnu.org/software/grub/man...ing-convention
 
1 members found this post helpful.
Old 02-25-2010, 07:04 PM   #3
deaddogger
LQ Newbie
 
Registered: Nov 2008
Posts: 11

Original Poster
Rep: Reputation: 0
grub loader can see drive, but now it can't see the root path

Smoker,
Thanks that did the trick, but now I have fallen into yet another pitfall. The grub starts to boot off the disk, but then says it can't see the root= and tells me to use proper root= options.

I have tried using a label via e2label, also i've tried /dev/sdd1, /dev/hdd1, hd3, hd4

Do you have any suggestions.

I have pasted my grub loader below

Thanks

# Modified by YaST2. Last modification on Wed Jul 15 19:42:00 BST 2009
default 4
timeout 18
gfxmenu (hd2,1)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.1 - 2.6.27.23-0.1 (pae)
root (hd2,1)
kernel /boot/vmlinuz-2.6.27.23-0.1-pae root=/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part2 resume=/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part1 splash=silent showopts vga=0x31a
initrd /boot/initrd-2.6.27.23-0.1-pae

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.1 - 2.6.27.23-0.1 (pae)
root (hd2,1)
kernel /boot/vmlinuz-2.6.27.23-0.1-pae root=/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part2 showopts ide=nodma apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x31a
initrd /boot/initrd-2.6.27.23-0.1-pae

title Red Hat Linux 9 with kernel (2.4.20-8)
root (hd3,0)
kernel /boot/vmlinuz-2.4.20-8 ro root=/dev/sdd1
initrd-2.4.20-8.img


###Don't change this comment - YaST2 identifier: Original name: windows 2###
title Windows XP (default)
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
makeactive
chainloader +1
 
Old 02-25-2010, 09:48 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Did you change the device.map file too ? (I guess if it's trying to boot then yes)

And your kernel line says :

Code:
kernel /boot/vmlinuz-2.4.20-8 ro root=/dev/sdd1
what is the ro for ? (read only ?)

I don't think your root is on /dev/sdd1 you called it /home2 and you don't usually have root inside /home

And surely your initrd should be in /boot as well ?

Last edited by smoker; 02-25-2010 at 10:55 PM.
 
Old 02-25-2010, 10:44 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,625

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
You might need to bust open that initrd and see if it enumerates the fifth drive.
 
Old 02-26-2010, 04:50 AM   #6
deaddogger
LQ Newbie
 
Registered: Nov 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Removed the ro and cleaned up the drive names .. no success

Again, thanks for the suggests and the help on this.

I have gone in and assigned the hard drive id as the dev rather than the allocated accronym. I have also called the boot directory "rootdir2" to remove any home dir references.

In case I am making something harder than it should be, here is what i have. That being said, looking at smashing open the initrd file would appear to be up there.

I have four disks.
One has SuSe 11 on it, (SAMSUNG_HD103UJ_S13PJ90S309403)
Two has Windows on it (SAMSUNG_HD502IJ_S13TJ9AQ718861 and SAMSUNG_HD502IJ_S13TJ1KQB14894)
and the one I am trying to boot from has Red Hat 9 on it HDT722525DLAT80_VD041BT4DKLKZK.

I currently can dual boot from the windows and SuSe drives, but not the Red Hat. However, before I installed the new drives / motherboard I was dual booting from this Red Hat drive and a Windows drive (Physically different )

So here are the various files

Grub loader
Code:
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.1 - 2.6.27.23-0.1 (pae)
    root (hd2,1)
    kernel /boot/vmlinuz-2.6.27.23-0.1-pae root=/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part2 resume=/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part1 splash=silent showopts vga=0x31a
    initrd /boot/initrd-2.6.27.23-0.1-pae

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.1 - 2.6.27.23-0.1 (pae)
    root (hd2,1)
    kernel /boot/vmlinuz-2.6.27.23-0.1-pae root=/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part2 showopts ide=nodma apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x31a
    initrd /boot/initrd-2.6.27.23-0.1-pae

title Red Hat Linux 9 with kernel (2.4.20-8)
    root (hd3,0)
    kernel /boot/vmlinuz-2.4.20-8       root=/dev/disk/by-id/ata-HDT722525DLAT80_VD041BT4DKLKZK-part1  splash=silent showopts vga=0x31a
    initrd /boot/initrd-2.4.20-8.img
The device map
Code:
(hd5)   /dev/disk/by-id/usb-WD_3200BMV_External_575848363038333532383431-0:0
(hd3)   /dev/disk/by-id/usb-Maxtor_3200_2CAH834P-0:0
(hd6)   /dev/disk/by-id/usb-Maxtor_3200_2CAH7Q1W-0:0
(hd4)   /dev/disk/by-id/ata-HDT722525DLAT80_VD041BT4DKLKZK
(hd2)   /dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403
(hd1)   /dev/disk/by-id/ata-SAMSUNG_HD502IJ_S13TJ9AQ718861
(hd0)   /dev/disk/by-id/ata-SAMSUNG_HD502IJ_S13TJ1KQB14894
The fstab
Code:
/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part1 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part2 /                    ext3       acl,user_xattr        1 1
/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part3 /home                ext3       acl,user_xattr        1 2
/dev/disk/by-id/ata-HDT722525DLAT80_VD041BT4DKLKZK-part1 /rootdir2            ext3       defaults              0 0 
/dev/disk/by-id/ata-HDT722525DLAT80_VD041BT4DKLKZK-part2 /other2              swap       defaults              0 0
/dev/disk/by-id/ata-HDT722525DLAT80_VD041BT4DKLKZK-part3 /data2               ext3       defaults              0 0
/dev/disk/by-id/ata-SAMSUNG_HD502IJ_S13TJ9AQ718861-part1 /windows/C           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
/dev/disk/by-id/ata-SAMSUNG_HD502IJ_S13TJ9AQ718861-part2 /windows/D           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
/dev/disk/by-id/ata-SAMSUNG_HD502IJ_S13TJ1KQB14894-part1 /windows/E           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
and the partitions from /proc/partions
Code:
major minor  #blocks  name

   8     0  976762584 sda
   8     1    2104483 sda1
   8     2   20972857 sda2
   8     3  953682660 sda3
   8    16  488386584 sdb
   8    17  131074303 sdb1
   8    18  357309697 sdb2
   8    32  488386584 sdc
   8    33  488375968 sdc1
   8    48  244198584 sdd
   8    49    8193118 sdd1
   8    50   10241437 sdd2
   8    51  225761445 sdd3
 
Old 02-26-2010, 05:38 AM   #7
deaddogger
LQ Newbie
 
Registered: Nov 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Last 12 lines of the boot log

I couldn't find the actual log so I copied it out in case this could help

Quote:
VFS: Mounted root ( etc2 filesystem)
Red Hat nash version 3.4.42 starting
Loading jbd.o module
Journalled Block Device driver loaded
Loading ext3.0 module
Mounting /proc filesystem
Creating block devices
kmod failed to exec /sbin/modprobe -s -k block-major-8, errno=2
VFS cannot open root device “/disk/by-id/ata-HDT722525DLAT80_VD041BT4DKLKZK-part1” or 08:32
Please append a correct “root=” option
Kernel Panic: VFS: Unable to mount fs on 08:32
 
Old 02-26-2010, 05:55 AM   #8
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
I guess it all depends on where you installed the bootloader for RH9 in the first place.
Did you install it on the same disk or on the windows drive ?
 
Old 02-27-2010, 03:00 AM   #9
deaddogger
LQ Newbie
 
Registered: Nov 2008
Posts: 11

Original Poster
Rep: Reputation: 0
The old RH9 bootloader (at the least the menu.lst) is on the RH9 hard drive. The new bootloader is on a new disk that has SuSe 11 on it.
 
Old 02-27-2010, 04:11 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,625

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
Go get the bootinfoscript from sf.net. Run it (from Linux) and post the RESULTS.txt - that way we can see what bootloaders are where.
 
Old 02-28-2010, 12:42 AM   #11
deaddogger
LQ Newbie
 
Registered: Nov 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Great script. Thanks Here is the "mored" output.
Quote:
more RESULTS.txt
Boot Info Script 0.55 dated February 15th, 2010


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

=> Windows is installed in the MBR of /dev/sda
=> Acer 3 is installed in the MBR of /dev/sdb
=> Grub 0.97 is installed in the MBR of /dev/sdc and looks on boot drive #3
in partition #2 for /boot/grub/stage2 and /boot/grub/menu.lst.
=> Grub is installed in the MBR of /dev/sdd and looks at sector 248921 on
boot drive #3 for the stage2 file, but no stage2 files can be found at
this location.

sda1: _________________________________________________________________________

File system: ext3
Boot sector type: Unknown
Boot sector info: Operating System: Red Hat Linux release 9
(Shrike) Kernel on an
Boot files/dirs: /boot/grub/menu.lst /boot/grub/grub.conf /etc/fstab

sda2: _________________________________________________________________________

File system: ext3
Boot sector type: -
Boot sector info: Operating System: Red Hat Enterprise Linux Server
release 5.2 (Tikanga) Kernel on an
Boot files/dirs: /boot/grub/menu.lst /boot/grub/grub.conf /etc/fstab

sda3: _________________________________________________________________________

File system: ext3
Boot sector type: -
Boot sector info: Operating System:
Boot files/dirs:
sdb1: _________________________________________________________________________

File system: swap
Boot sector type: -
Boot sector info:
sdb2: _________________________________________________________________________

File system: ext3
Boot sector type: Grub
Boot sector info: Grub 0.97 is installed in the boot sector of sdb2 and
looks at sector 21084774 of the same hard drive for
the stage2 file. A stage2 file is at this location on
/dev/sdb. Stage2 looks on partition #2 for
/boot/grub/menu.lst.
Operating System: Welcome to openSUSE 11.1 -
Kernel ().
Boot files/dirs: /boot/grub/menu.lst /etc/fstab

sdb3: _________________________________________________________________________

File system: ext3
Boot sector type: -
Boot sector info: Operating System:
Boot files/dirs:
sdc1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sdd1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sdd2: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _________________________________________________
____

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x58ee4c60

Partition Boot Start End Size Id System

/dev/sda1 * 63 16,386,299 16,386,237 83 Linux
/dev/sda2 16,386,300 36,869,174 20,482,875 83 Linux
/dev/sda3 36,869,175 488,392,064 451,522,890 83 Linux

Drive: sdb ___________________ _________________________________________________
____

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x000820d7

Partition Boot Start End Size Id System

/dev/sdb1 63 4,209,029 4,208,967 82 Linux swap / Solar
is
/dev/sdb2 * 4,209,030 46,154,744 41,945,715 83 Linux
/dev/sdb3 46,154,745 1,953,520,064 1,907,365,320 83 Linux

Drive: sdc ___________________ _________________________________________________
____

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xd20cd20c

Partition Boot Start End Size Id System

/dev/sdc1 * 63 976,751,999 976,751,937 7 HPFS/NTFS

Drive: sdd ___________________ _________________________________________________
____

Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x47242b25

Partition Boot Start End Size Id System

/dev/sdd1 63 262,148,669 262,148,607 7 HPFS/NTFS
/dev/sdd2 * 262,148,670 976,768,064 714,619,395 7 HPFS/NTFS

blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL


/dev/sda1 fb4aacbc-c4fb-4c0f-8362-ae53cae44896 ext3 /

/dev/sda2 1ee6de7e-882b-4551-a364-d583e3d4b7af ext3 /12

/dev/sda3 d1f2937a-70a6-447d-9652-9b6ad7ee663b ext3 /home

/dev/sdb1 78b6b247-1fed-4d66-86d1-8843ca591b4f swap

/dev/sdb2 f8f5afc8-714d-44b0-b929-12e587b6be03 ext3

/dev/sdb3 ceeaf1c3-73e1-4dd8-9d0a-a36400ec9bfc ext3

/dev/sdc1 56743CB7743C9BA5 ntfs 500G

/dev/sdd1 1224362824360EEB ntfs 128G

/dev/sdd2 0098AA7898AA6C3A ntfs 340GB


============================ "mount | grep ^/dev output: ======================
=====

Device Mount_Point Type Options

/dev/sdb2 / ext3 (rw,acl,user_xattr)
/dev/sdb3 /home ext3 (rw,acl,user_xattr)
/dev/sdc1 /windows/C fuseblk (rw,noexec,nosuid,nodev,all
ow_other,default_permissions,blksize=4096)
/dev/sdd1 /windows/D fuseblk (rw,noexec,nosuid,nodev,all
ow_other,default_permissions,blksize=4096)
/dev/sdd2 /windows/E fuseblk (rw,noexec,nosuid,nodev,all
ow_other,default_permissions,blksize=4096)

========================== sda1/boot/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 do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd2,0)
# kernel /boot/vmlinuz-version ro root=/dev/hdc1
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd2,0)/boot/grub/splash.xpm.gz
password --md5 $1$WIDCAhQ/$g73GUVHgmUmvF0NGfLFJ90
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi hde=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title DOS
rootnoverify (hd2,0)
chainloader +1

=============================== sda1/etc/fstab: ===============================

LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb2 swap swap defaults 0 0
/none /proc/bus/usb usbfs defaults 0 0

/dev/disk/by-id/ata-HDT722525DLAT80_VD041BT4DKLKZK-part2 /data1 au
to noauto,user 0 0
/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part1 /data2 sw
ap default 0 0
/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part2 /data1 au
to noauto,user 0 0
/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part3 /data1 au
to noauto,user 0 0
/dev/disk/by-id/ata-SAMSUNG_HD502IJ_S13TJ1KQB14894-part1 /windows/C nt
fs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-SAMSUNG_HD502IJ_S13TJ9AQ718861-part1 /windows/D nt
fs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-SAMSUNG_HD502IJ_S13TJ9AQ718861-part2 /windows/E nt
fs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0

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

7.0GB: boot/grub/grub.conf
7.0GB: boot/grub/menu.lst
7.0GB: boot/grub/stage2
.1GB: boot/initrd-2.4.20-8.img
2.2GB: boot/initrd-2.4.20-8.img.backup
.3GB: boot/vmlinuz
.3GB: boot/vmlinuz-2.4.20-8

========================== sda2/boot/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 do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd3,1)
# kernel /boot/vmlinuz-version ro root=/dev/hdc2
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd3,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-92.el5)
root (hd3,1)
kernel /boot/vmlinuz-2.6.18-92.el5 ro root=LABEL=/12 rhgb quiet
initrd /boot/initrd-2.6.18-92.el5.img
title Other
rootnoverify (hd1,0)
chainloader +1
title Red 9
rootnoverify (hd3,0)
chainloader +1

=============================== sda2/etc/fstab: ===============================

LABEL=/12 / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/hdc1 /apps1 ext3 defaults 0 0
/dev/hdc3 /data1 ext3 defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

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

17.8GB: boot/grub/grub.conf
17.8GB: boot/grub/menu.lst
17.8GB: boot/grub/stage2
17.8GB: boot/initrd-2.6.18-92.el5.img
17.8GB: boot/vmlinuz-2.6.18-92.el5

=========================== sdb2/boot/grub/menu.lst: ===========================

# Modified by YaST2. Last modification on Fri Feb 26 20:46:46 UTC 2010
default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,1)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.1 - 2.6.27.7-9
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.7-9-pae root=/dev/disk/by-id/ata-SAMSUNG_HD103UJ
_S13PJ90S309403-part2 resume=/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-
part1 splash=silent showopts vga=0x31a
initrd /boot/initrd-2.6.27.7-9-pae

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.1 - 2.6.27.7-9
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.7-9-pae root=/dev/disk/by-id/ata-SAMSUNG_HD103UJ
_S13PJ90S309403-part2 showopts ide=nodma apm=off noresume nosmp maxcpus=0 edd=of
f powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x3
1a
initrd /boot/initrd-2.6.27.7-9-pae

###Don't change this comment - YaST2 identifier: Original name: Red Hat Linux (
2.4.20-8) (/dev/sda1)###
title Red Hat Linux (2.4.20-8)
root (hd3,0)
kernel /media/-/boot/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /media/-/boot/initrd-2.4.20-8.img

rootnoverify (hd3,0)
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: Red Hat Linux (
2.4.20-8) (/dev/sda1)###
title Red Hat Linux (2.4.20-8) (/dev/sda1)
rootnoverify (hd3,0)
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: Red Hat Enterpr
ise Linux Server (2.6.18-92.el5) (/dev/sda2)###
title Red Hat Enterprise Linux Server (2.6.18-92.el5) (/dev/sda2)
root (hd3,1)
configfile /boot/grub/menu.lst

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title windows 1
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
makeactive
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title windows 2
map (hd2) (hd0)
map (hd0) (hd2)
rootnoverify (hd2,0)
makeactive
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: windows 3###
title windows 3
map (hd2) (hd0)
map (hd0) (hd2)
rootnoverify (hd2,1)
makeactive
chainloader +1

=============================== sdb2/etc/fstab: ===============================

/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part1 swap sw
ap defaults 0 0
/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part2 / ex
t3 acl,user_xattr 1 1
/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403-part3 /home ex
t3 acl,user_xattr 1 2
/dev/disk/by-id/ata-SAMSUNG_HD502IJ_S13TJ1KQB14894-part1 /windows/C nt
fs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
/dev/disk/by-id/ata-SAMSUNG_HD502IJ_S13TJ9AQ718861-part1 /windows/D nt
fs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
/dev/disk/by-id/ata-SAMSUNG_HD502IJ_S13TJ9AQ718861-part2 /windows/E nt
fs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

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

10.8GB: boot/grub/menu.lst
10.7GB: boot/grub/stage2
10.8GB: boot/initrd
10.8GB: boot/initrd-2.6.27.7-9-pae
10.8GB: boot/vmlinuz
10.8GB: boot/vmlinuz-2.6.27.7-9-pae

================================ sdc1/boot.ini: ================================

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Media Center Edition" /n
oexecute=optin /fastdetect

================================ sdd1/boot.ini: ================================

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows XP Professional" /n
oexecute=optin /fastdetect
=========================== Unknown MBRs/Boot Sectors/etc ======================
=

Unknown BootLoader on sda1

00000000 eb 48 90 00 00 00 00 00 00 00 00 00 00 00 00 00 |.H..............|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 02 |................|
00000040 82 00 00 80 af 0a d2 00 00 08 fa ea 50 7c 00 00 |............P|..|
00000050 31 c0 8e d8 8e d0 bc 00 20 fb a0 40 7c 3c ff 74 |1....... ..@|<.t|
00000060 02 88 c2 52 be 76 7d e8 34 01 f6 c2 80 74 54 b4 |...R.v}.4....tT.|
00000070 41 bb aa 55 cd 13 5a 52 72 49 81 fb 55 aa 75 43 |A..U..ZRrI..U.uC|
00000080 a0 41 7c 84 c0 75 05 83 e1 01 74 37 66 8b 4c 10 |.A|..u....t7f.L.|
00000090 be 05 7c c6 44 ff 01 66 8b 1e 44 7c c7 04 10 00 |..|.D..f..D|....|
000000a0 c7 44 02 01 00 66 89 5c 08 c7 44 06 00 70 66 31 |.D...f.\..D..pf1|
000000b0 c0 89 44 04 66 89 44 0c b4 42 cd 13 72 05 bb 00 |..D.f.D..B..r...|
000000c0 70 eb 7d b4 08 cd 13 73 0a f6 c2 80 0f 84 f3 00 |p.}....s........|
000000d0 e9 8d 00 be 05 7c c6 44 ff 00 66 31 c0 88 f0 40 |.....|.D..f1...@|
000000e0 66 89 44 04 31 d2 88 ca c1 e2 02 88 e8 88 f4 40 |f.D.1..........@|
000000f0 89 44 08 31 c0 88 d0 c0 e8 02 66 89 04 66 a1 44 |.D.1......f..f.D|
00000100 7c 66 31 d2 66 f7 34 88 54 0a 66 31 d2 66 f7 74 ||f1.f.4.T.f1.f.t|
00000110 04 88 54 0b 89 44 0c 3b 44 08 7d 3c 8a 54 0d c0 |..T..D.;D.}<.T..|
00000120 e2 06 8a 4c 0a fe c1 08 d1 8a 6c 0c 5a 8a 74 0b |...L......l.Z.t.|
00000130 bb 00 70 8e c3 31 db b8 01 02 cd 13 72 2a 8c c3 |..p..1......r*..|
00000140 8e 06 48 7c 60 1e b9 00 01 8e db 31 f6 31 ff fc |..H|`......1.1..|
00000150 f3 a5 1f 61 ff 26 42 7c be 7c 7d e8 40 00 eb 0e |...a.&B|.|}.@...|
00000160 be 81 7d e8 38 00 eb 06 be 8b 7d e8 30 00 be 90 |..}.8.....}.0...|
00000170 7d e8 2a 00 eb fe 47 52 55 42 20 00 47 65 6f 6d |}.*...GRUB .Geom|
00000180 00 48 61 72 64 20 44 69 73 6b 00 52 65 61 64 00 |.Hard Disk.Read.|
00000190 20 45 72 72 6f 72 00 bb 01 00 b4 0e cd 10 ac 3c | Error.........<|
000001a0 00 75 f4 c3 00 00 00 00 00 00 00 00 00 00 00 00 |.u..............|
000001b0 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

=============================== StdErr Messages: ===============================

mdadm: No arrays found in config file or automatically
 
Old 02-28-2010, 06:18 AM   #12
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Well the grub is looking on the right drive.
I notice you had RH9 set up as rootnoverify in the el5 grub settings and the YAST settings. Perhaps you should try that again.
Code:
title Red Hat Linux (2.4.20-8) (/dev/sda1)
rootnoverify (hd3,0)
chainloader +1
 
Old 03-04-2010, 05:46 PM   #13
deaddogger
LQ Newbie
 
Registered: Nov 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Ok, i have tried every variation i can think of with no luck

A couple of observations.

First my ide drive is being given a scsi designation (ie sdd)

Second I am confused as to when the fstab is executed.
(ie is it at grub/menu.lst or is it after the selection is made from the grub menu.lst

What i guess i am asking does all the linux OS boot off of the one fstab or does each os boot off of their own.

Thirdly, my SUSE 11.2 is booting off of my first hard drive sda partition 2 (hd0,1), my RH9 is located on a separate hard drive (sdd) and partition 1 (hd3,0). Prior to the rebuild, RH9 was launching from (hd0,0)

So do I have to re-establish my RH9 as hd0 and try to either re-install SUSE onto a now "higher" drive. I am truly at my wits end.

Any guidance would be much appreciated.

Thanks

DD
 
Old 03-04-2010, 10:59 PM   #14
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,625

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
Sorry, somehow I managed to unsubscribe from this thread even though I asked for that data.
I don't know how any of that boots at all - I don't know what the loader is on that SuSE drive, but it seems to do the job.
You need to pick a configuration (I'd suggest SuSE as BIOS boot drive) then leave it alone. No changes after that. Looks like we should be able to work with that.
Reboot and go to command mode (hit the "c" key) from there enter the following commands one at a time - this will allow you (us) to work out which drive grub sees as what
Code:
geometry (hd0)
geometry (hd1)
geometry (hd2)
geometry (hd3)
geometry (hd4)
(post it all here).
As to your question, fstab is independent of grub. Gets run by the initscripts - so it is per system.
 
Old 03-05-2010, 07:11 AM   #15
deaddogger
LQ Newbie
 
Registered: Nov 2008
Posts: 11

Original Poster
Rep: Reputation: 0
The grub wouldn't allow simply a "C" to enter into the grub command mode, so instead I opened a superuser window, entered grub and issued the geometry commands.

Here is the output
Code:
grub> geometry (hd0)
drive 0x80: C/H/S = 56065/255/63, The number of sectors = 1953525168, /dev/disk
/by-id/ata-SAMSUNG_HD103UJ_S13PJ90S309403
   Partition num: 0,  Filesystem type unknown, partition type 0x82
   Partition num: 1,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 2,  Filesystem type is ext2fs, partition type 0x83

grub> geometry (hd1)
drive 0x81: C/H/S = 60801/255/63, The number of sectors = 976773168, /dev/disk/
by-id/ata-SAMSUNG_HD502IJ_S13TJ1KQB14894
   Partition num: 0,  Filesystem type unknown, partition type 0x7

grub> geometry (hd2)
drive 0x82: C/H/S = 60801/255/63, The number of sectors = 976773168, /dev/disk/
by-id/ata-SAMSUNG_HD502IJ_S13TJ9AQ718861
   Partition num: 0,  Filesystem type unknown, partition type 0x7
   Partition num: 1,  Filesystem type unknown, partition type 0x7

grub> geometry (hd3)
drive 0x83: C/H/S = 30401/255/63, The number of sectors = 488397168, /dev/disk/
by-id/ata-HDT722525DLAT80_VD041BT4DKLKZK
   Partition num: 0,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 1,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 2,  Filesystem type is ext2fs, partition type 0x83

grub> geometry (hd4)

Error 21: Selected disk does not exist

grub> geometry (hd5)

Error 21: Selected disk does not exist
Help me out. Your comment
Quote:
You need to pick a configuration (I'd suggest SuSE as BIOS boot drive) then leave it alone. No changes after that. Looks like we should be able to work with that.
What exactly are you referring to that I should choose and then leave alone

Thanks again for your assistance.

DD
 
  


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
Unable to boot into GRUB loader: GRUB command shell boots up: urgent issue wombat53 Linux - Software 9 09-04-2009 06:20 AM
How to save the GRUB loader to the Linux boot partition? bettyhills Linux - Newbie 1 05-27-2008 03:06 PM
grub boots into wrong partition. davemar Ubuntu 3 08-29-2007 04:32 PM
GRUB boots XP RECOVERY partition instead of XP. Miah Linux - Newbie 3 06-06-2006 11:00 AM
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 04:53 PM


All times are GMT -5. The time now is 12:51 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