LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 11-05-2004, 01:57 PM   #1
Xylite
LQ Newbie
 
Registered: Aug 2004
Distribution: SuSE 9.1
Posts: 3

Rep: Reputation: 0
Grub stalls when adding hard drives


I have 2 hard drives, the first with Windows XP and the second with fedora core 2. I installed Grub onto the mbr of the windows drive and everything works fine. What doesn't work is when I try to add extra hard drives. This causes Grub to stop after displaying the string "GRUB" but before displaying "loading stage2." I tried re-installing fedora/Grub with the hard drives in, but the same thing happens unless i remove the extra hard drives. Any ideas would be appreciated.
 
Old 11-05-2004, 02:35 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,917

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Post how the drives are configured i.e. master / slave before and after you add the drives.

I would say that when you add the drives the drive with linux is no longer where grub thinks it should be. It is based on how the drives are recognized by the BIOS.
 
Old 11-05-2004, 03:10 PM   #3
Xylite
LQ Newbie
 
Registered: Aug 2004
Distribution: SuSE 9.1
Posts: 3

Original Poster
Rep: Reputation: 0
The windows drive is SATA and is set to the first boot device in BIOS. The linux drive is the secondary master (IDE) and is set to the second boot device. the two additional drives are on primary master/primary slave, with boot order 3 and 4. The order of the first two devices does not change, and grub is read from the MBR of the windows drive, but the OS select menu is never reached. Also, when grub is installed with all the hard drives preasent, the error still occurs, so I would think that it would be able to locate the drive. Not sure though.
 
Old 11-05-2004, 04:16 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,917

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
grub is a 2 stage boot loader and needs to know the location of the linux drive. grub will use the BIOS to determine recognized drives and any drives on the primary controller will be found first. So grub will try to find the 2nd stage on the primary master instead of the secondary master.

Now did you reinstall the OS or just grub when the extra hard drives were present? If you just reinstalled grub without making any changes to menu.lst file you would still have the same problems.

You can boot using the install CD select rescue mode. The root partition will be mounted at /mnt/sysimage. Now type in the command:
chroot /mnt/sysimage
Edit the /etc/grub.conf file using the vi editor
vi /etc/grub.conf

Look at line that says root(hdx,y)
The first recognized dirve is 0, next is 1 and so on. I assume that this line is root (hd1,0). With the extra drives installed it is now
root (hd3,0). Basically just add 2 to the x value.

In using vi press the Insert key. use the arrows to navigate to the lines, delete then type in the new values.

To save the file press the escape key to exit insert mode then press the keys
:wq

To exit vi without saving the command is:
:q!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding hard drives to exising raid1 ccross Linux - Hardware 4 10-26-2005 07:36 PM
FC4, Adding Hard drives for storage. How and what FS? A6Quattro Linux - Hardware 7 07-21-2005 04:41 PM
Adding Hard drives from former XP o/s theonlylivinggo Linux - Hardware 8 02-09-2004 09:29 PM
E-Smith 5.6 adding Hard Drives mickboda Linux - Networking 0 01-26-2004 09:56 PM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM


All times are GMT -5. The time now is 07:11 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration