LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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
  Search this Thread
Old 07-05-2004, 09:03 AM   #1
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Rep: Reputation: 15
FD2 boots from Sata, add a new ide drive and ssyeme won't boot


Hi Folks,

I have machine that just has a 40Gb sata drive, I have succesfully installed Fedora Core 2 and it works just fine. The machine has a cdrom on the ide channel. If I add a second ide hard drive on the same channel as the cdrom and change cs to master and make the hd slave the machine won't boot. I don't get the main grub window, just GRUB with a blinking cursor. I tried swapping the master/slave assignment.

My bios shows the two ide devices and the sata drive, but is extremely limited in terms of the boot order (it shows the nic, cdrom, harddrive and floppy). The fact that it doesn't show two hard drives is strange.

The machine is a Dell PowerEdge 700.

Can anybody help? Thanks.

Hube
 
Old 07-05-2004, 11:36 AM   #2
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
hube; ? are u still covered by warranty, if so contact dell for assistance. it maybe propietary components. have u done bios arranging before? it is not
complicated, tricky yes but not difficult. just be careful,meticuluos and patient. rearranging boot order easy if done correctly. which ever u want to
boot 1sr then hd or cd etc. not to familiar with sata sorry.
 
Old 07-05-2004, 04:47 PM   #3
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
Thanks Penguin4.

I'm,pretty happy messing around with the Bios. It's really stange that I can't see the two hd's in the boot order. Have been playing around with grub and the mbr, tried re-establihing my mbr by using the Fedora boot cd etc etc (you can use it to repair the system), still can't get it to work, once I put the stupid ide drive in it all goes haywire!

Anybody else got any bright ideas I'd be very grateful.

Thanks.
 
Old 07-05-2004, 07:20 PM   #4
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
hube; not familiar with sata but have seen article some where on howto
just don,t recall where. sorry. keep looking for help via howto,s.
 
Old 07-07-2004, 02:25 PM   #5
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
Thought I would follow up just in case anybody ever needs this information...

It goes something like this:

sata drive was hd0 to the grub boot loader, as soon as I added the ide drive the sata drive got bumped to hd1 and the ide drive became hd0. grub has a number of 'boot' stages (there is info out there that better explains this so I'll leave it to the grub masters!). Basically stage 1 is written to the master boot record (mbr). Since the mbr is rather small it can't hold all the required code for grub so more code has to be read from another place (this is known as stage2). When grub starts you see something like:

Loading grub stage2...

This is the mbr stage1 loading the code in stage2. Now the mbr has a pointer for where to find stage2. It is something like (hd0,1)/boot/grub/stage2

Which translates to something like /dev/sda2/boot/grub/stage2

However as soon as I added the ide drive this ended up looking at /dev/hda2 which happens to be my cdrom! and so stage2 can't be found and grub just sits there doing nothing! (GRUB...)

I fixed this by doing the following:

Insert a blank floppy.

cd /boot/grub (this may be different on other platforms)
dd if=stage1 of=/dev/fd0 bs=512 count=1
dd if=stage2 of=/dev/fd0 bs=512 seek=1

copies stage1 and stage2 to a floppy disk.

reboot the computer with the floppy disk inserted, you may need to change the boot order in your bios so that the computer boots from the floppy before the hard drive or cdrom.

You will see something like:

grub>

This is the grub command shell:

now for my system I typed (all one line):

install (hd1,1)/boot/grub/stage1 d (hd0) (hd1,1)/boot/grub/stage2 p (hd1,1)/boot/grub/grub.conf

This does the following:

install is a grub command to tell grub to install the stage1 from (hd1,1)/boot/grub/stage1 to (hd0) the d option is used to tell grub that it's a different disk

(hd1,1)/boot/grub/stage2 tells grub where to find stage2

p (hd1,1)/boot/grub/grub.conf tells grub where to find the configuration file - again more details can be found on the web...

As soon as I fixed the mbr I was up and running again. A quick fix to the /etc/fstab file and my disk is visible again...

Hope this helps some poor unsuspecting soul :-)

The website that helped me most was:

http://www.linuxgazette.com/issue64/kohli.html

Thanks and acknowledgement go to Jaswinder Singh Kohli

Hube

P.s, don't forget that grub.conf will also need modifying as it references (hd0,0) etc.
 
  


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
Dual Boot XP/Ubuntu on SATA and IDE... snapmando Ubuntu 4 09-08-2005 02:55 PM
add a IDE hard drive in Fedora pkuer Linux - Hardware 2 07-25-2005 11:31 PM
slackware 10 sata and ide drive problem RadixInsurgio Slackware - Installation 3 07-18-2005 11:12 PM
Installing grub onto sata drive to redirect to ide in Suse 9.3 d3viant Linux - Hardware 2 06-21-2005 09:14 AM
how to add ide cdrom drive joe_stevensen Debian 3 07-27-2003 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration