LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-10-2003, 06:18 PM   #1
richardg
LQ Newbie
 
Registered: Jul 2003
Location: Southwest USA
Distribution: FC25
Posts: 23

Rep: Reputation: 0
2 disks, 2 OS, but GRUB hangs


Hi!
I have RH8.0 and Win98, win98 is on hda. I have RH8.0 on hdb. Everything is working fine, but I have to place the boot disk I made during installation in, and boot from BIOS, which is exactly what I want except I want to have RH8.0 boot from hdb, when I select that from the BIOS menu of bootable media. My RH8.0 is a new install, with all the errata from RHN installed. I did install grub on (hd1,0), I think, during install.
However, when I use the BIOS to boot from IDE1 (the RH disk), I get this:

GRUB

and then the system hangs. recover with a soft reboot. All very reproducable. The cursor stops one space away from the B in GRUB, if that helps.

I hope you want to see 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 (hd1,0)
# kernel /boot/vmlinuz-version ro root=/dev/hdb1
# initrd /boot/initrd-version.img
#boot=/dev/hdb1
default=0
timeout=10
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-19.8)
root (hd1,0)
kernel /boot/vmlinuz-2.4.20-19.8 ro root=LABEL=/ hdd=ide-scsi
initrd /boot/initrd-2.4.20-19.8.img
title Red Hat Linux (2.4.18-14)
root (hd1,0)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/ hdd=ide-scsi
initrd /boot/initrd-2.4.18-14.img
title DOS
rootnoverify (hd0,0)
chainloader +1


and the current partitioning ( from fdisk )

Disk /dev/hda: 255 heads, 63 sectors, 4998 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 4998 40146403+ c Win95 FAT32 (LBA)


Disk /dev/hdb: 255 heads, 63 sectors, 9729 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 1275 10241406 83 Linux
/dev/hdb2 1276 1530 2048287+ 82 Linux swap
/dev/hdb3 1531 2805 10241437+ b Win95 FAT32
/dev/hdb4 2806 9729 55617030 83 Linux


So, I do have a desire not to mess with hda (windows) and to be able to boot (from bios) the RH8.0. Why do I hang on GRUB?

Thanks very much...
 
Old 08-11-2003, 11:31 PM   #2
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Rep: Reputation: 35
hi richardg,

I think I have a better idea here for you, but that's totally up to you whether you like it or not .

Since you're having 2 HDDs, I'd recommend you to use 1 HDD for both o/s and the second for the "linux" extension.

What I mean is the following:

You install Windows 98 on the first HDD after you have created a primary partition for it while you leave some space (probably more for linux than windows as I assume you're running Windows for some applications or games). After Windows 98 is installed, install Linux on the first HDD on the "unpartitioned" space.

During the setup of RH 8.0, make sure that you select hda to be automatically set up (unless u wanna do it by yourself).
At that point you can create 2 partitions for your 2nd HDD

2 partitions as the following:

hdb:
- /home
- /data

of course you can call the /data partition antyhing you like to call (examples: /mp3 or /backup or /stuff or whatever...you can even create more partitiions for each different aspect)

also install the boot manager (grub i think is what u prefer) using the MBR

now the best part is - with this setup, you can easily reinstall linux or even windows whenever you have to and you still get to keep all your user's information since it's all stored in the second HDD (/dev/hdb /home/...). pretty neat eh?

Now if you have questions on how to work together with windows and linux - windows 98 will be running on fat16 ...maybe even fat32 (i can't really remember) and u can mount it to the extend of writing/reading on it which allows u to share files easily.

So what do you think?

Let me know if I can be of any further assistance hehe...
 
Old 08-13-2003, 03:55 PM   #3
richardg
LQ Newbie
 
Registered: Jul 2003
Location: Southwest USA
Distribution: FC25
Posts: 23

Original Poster
Rep: Reputation: 0
Thanks very much for your thoughts, setting up disks are quite, what? personal? idiosyncratic? Anyway, I am already doing (planning to do) sort of what you suggest. I will make a linux partition on hd1 and a windows disk on hd2 and use linux and the large space on hd2 for backup (including other computers on the network... Afraid to mess with the working disk too much. Yea, yea if I screw it up i can always fdisk /mbr.
ANYWAY, I can refine my question a bit more.

I can boot linux from a floppy. I can boot from a CD i made (using mkbootdisk and mkisofs ). I made grub the installer on the second disk, with a grub.conf as above. booting from the second disk always hangs with a kernel panic, which I will post exactly in a minute. I made a GRUB disk, which also hangs.
SO. The question is, what GRUB commands will boot me?
 
Old 08-13-2003, 04:42 PM   #4
richardg
LQ Newbie
 
Registered: Jul 2003
Location: Southwest USA
Distribution: FC25
Posts: 23

Original Poster
Rep: Reputation: 0
OK, so I tried the grub command line(s) again and this boots me

root (hd1,0)
kernel /boot/vmlinuz ro root=/dev/hdb1 hdd=ide-scsi
boot

I will try putting that into grub.conf. The kernel arguments are suggested by the original grub.conf. Any suggestions?
Posted in the spirit of presenting the solution: sure hate seeing posts about problems similar to whatever I am working on, but then either end, or end with a "thanks, I got it". How? I will post step by step ( for newbies) making a bootable CD, if anyone cares. There are good sources out there.
 
Old 08-15-2003, 08:13 PM   #5
richardg
LQ Newbie
 
Registered: Jul 2003
Location: Southwest USA
Distribution: FC25
Posts: 23

Original Poster
Rep: Reputation: 0
OK, last post on this topic, for completeness sake.
If grub is installed on hd1, then it seems that (for grub purposes), that disk is hd0.
Thus, running grub from a floppy, use 'root (hd1,0)'
running grub from hd1 use 'root (hd0,0)'

Makes sense, I guess, that the bootloader considers the disk it finds itself on as hd0, and counts up from there. From linux, all the device.map and fstab seem fine and work ok.
 
  


Reply



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
Lilo hangs on XP load : XP & Linux on diff. disks Lagg Linux - Software 6 08-29-2005 03:25 AM
Grub on 2 hard disks ninadb Linux - General 1 03-28-2005 06:57 AM
Install GRUB On Both Disks in RAID 1 Pair? doctorcisco Linux - Software 2 02-21-2005 02:43 AM
grub/lilo problem with 2 scsi-disks finky Linux - Software 5 12-03-2004 06:39 AM
Grub And Raid 1 Root Disks Super_Z Linux - General 0 06-14-2004 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:38 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
Open Source Consulting | Domain Registration