LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   FD2 boots from Sata, add a new ide drive and ssyeme won't boot (https://www.linuxquestions.org/questions/linux-hardware-18/fd2-boots-from-sata-add-a-new-ide-drive-and-ssyeme-wont-boot-201322/)

Hube 07-05-2004 09:03 AM

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

penguin4 07-05-2004 11:36 AM

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.

Hube 07-05-2004 04:47 PM

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.

penguin4 07-05-2004 07:20 PM

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.

Hube 07-07-2004 02:25 PM

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.


All times are GMT -5. The time now is 08:10 AM.