Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
htp raid problems with grub
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
markyd
n00b
n00b


Joined: 16 Apr 2002
Posts: 44

PostPosted: Fri Apr 26, 2002 12:26 am    Post subject: htp raid problems with grub Reply with quote

Hi there,
I have been using gentoo for some time now and it is great! The only problem is that I have to boot off a floppy because every time I install grub it corrupts my raid array. I'm using a highpoint 370 controller in a stripe config. Does anyone know how to avoid grub clobbering my array? How many people have got it working?

Thanks,
Mark
Back to top
View user's profile Send private message
Guest






PostPosted: Fri Apr 26, 2002 4:16 pm    Post subject: Reply with quote

I have it working great on my machine with HPT370 RAID-0. To get GRUB working you must install it using a bootable GRUB floppy, and delete the stage 1.5 {ext2|xfs|reiserfs} file in your boot partition. Once that's done it should work fine.
Back to top
rommel
Veteran
Veteran


Joined: 19 Apr 2002
Posts: 1145
Location: Williamsburg Virginia

PostPosted: Fri Apr 26, 2002 5:19 pm    Post subject: Reply with quote

hey how did you get gentoo to install using the controller....i remember trying on a dual plll board and it would go to patition check hdg and just sit there with a blinking cursor....is there a howto or any doc on that
Back to top
View user's profile Send private message
markyd
n00b
n00b


Joined: 16 Apr 2002
Posts: 44

PostPosted: Sun Apr 28, 2002 3:53 pm    Post subject: How to install gentoo with hpt 370 Reply with quote

I believe I have already written something like this before but here we go again...

The reason that the partition check fails is due to the way that the auto-tuning is handled by the kernel. So to get the cd to boot pass the kernel ide3=noautotune ide4=noautotune (ide3 and 4 are the htp370 controller).

The cd should now boot as usual and when you get to the boot prompt. Install the drivers for the raid by typing the following....
insmod ataraid
insmod hptraid

Your raid drive should be now located under /dev/ataraid/disc0/disc

Hope this helps.
Back to top
View user's profile Send private message
markyd
n00b
n00b


Joined: 16 Apr 2002
Posts: 44

PostPosted: Sun Apr 28, 2002 3:56 pm    Post subject: Boot floppy Reply with quote

Hey what do you mean install grub from a floppy? Also if I install grub and then delete stage 1.5, shouldn't that screw up grub? Any info would be appreciated.
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Apr 28, 2002 7:55 pm    Post subject: Reply with quote

hey i wanted to know this too....but how do you append the ide3 and ide4 to noautotune on a cd?...i am installing on a two clean drives...btw highpoint has released binaries for the 370 controller that can be compiled to your system.
sorry if these are really noob questions but i really would like to install gentoo on this board...i was going to use an epox 8kha+ but the agp controller went bad and after a little while the video goes out.....so that leaves me with a dual plll tulatin dvd266u-rn and it would be cool to have use of all the ide channels doesnt have to be raid enabled
Back to top
Guest






PostPosted: Sun Apr 28, 2002 8:05 pm    Post subject: Reply with quote

ok is it done by issuing the ide3=noautorun/ide4=noautorun at the boot prompt before you gentoo loads the kernel and begins its system check...if so how would it look?
and did you set up your drives to raid 0 using the htp bios and then load gentoo on them as a striped array...i just wanted functionailty for the ide 3 and 4 so i could use lsr.
can you run and post an hdparm of say your /dev/sda3 or what ever your root directory is?
Back to top
Guest






PostPosted: Sun Apr 28, 2002 9:08 pm    Post subject: Reply with quote

Hi, I'm the guest above with the working RAID-0 array on a HPT370 (using ABit KT7A-RAID motherboard). I setup the RAID array using the Highpoint BIOS and then installed Gentoo after moprobing hptraid from the stage1 install CD. I don't have to pass any extra options to the kernel, but I am using the latest Highpoint BIOS (2.31) so updating that may help (supposedly there is a performance increase as well).

I got grub working by executing the following at a console, with a floppy in the first floppy drive

Code:

mke2fs /dev/fd0
mount /dev/fd0 /mnt/floppy
mkdir /mnt/floppy/boot
mkdir /mnt/floppy/boot/grub
cp /usr/share/grub/i386-pc/stage1 /mnt/floppy/boot/grub
cp /usr/share/grub/i386-pc/stage2 /mnt/floppy/boot/grub


Then, to install GRUB to the disk, execute grub as root and then type this
Code:

root (fd0)
setup (fd0)
quit


Then after the disk has been created, mount your boot partition on your harddrive and delete the ext2_stage1_5 (replace ext2 with your filesystem type). This is necessary because it seems that GRUB's method of reading the ext2 partition when using stage 1.5 does not work with the Highpoint RAID controller.

Make sure that you've created a menu.lst at /boot/grub/menu.lst on your RAID array as well, mine looks like this (notice the root partition definition):

Quote:

default 0
timeout 5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux Kernel 2.4.18 Framebuffer
root (hd0,0)
kernel /boot/bzImage root=/dev/ataraid/disc0/part2 vga=0x317 hda=scsi hdc=scsi


After all this is done, reboot with the GRUB floppy in the drive and type this at the GRUB prompt:

Code:

root (hd0,0)
setup (hd0)
reboot


You need to replace (hd0,0) and (hd0) in the above example with the locations of your boot partition and bootable harddrive respectively. When booted from the GRUB floppy, if you have only one Highpoint RAID array and no other harddrives on any onboard ide controllers, the above will probably be fine (replace the partition number with the location of your root partition however). Then take the floppy out and it should work, does for me anyway!

I found all the info I needed for GRUB from the great tutorial by Daniel Robbins, available from

http://www.gentoo.org/index-articles.html

Hope that all makes sense


Dave
Back to top
Guest






PostPosted: Sun Apr 28, 2002 11:32 pm    Post subject: Reply with quote

aaagghhh....dude thanks...it was the 1.1a cd i was using...i found the 16mb stage one i downloaded first and it went right past the patition check thing no problem...i modprobed the eth0 and then the hptraid like you said and it shows the two disks ...let you know what happens...lol...but thanks for answering...finally i can use this board for something useful
Back to top
Guest






PostPosted: Mon Apr 29, 2002 1:58 pm    Post subject: Reply with quote

man i have done two installs today....each time the hptraid.o doesnt compile into the kernel...i tried once compiling it in and the second as a module both times i get an error at boot saying the 'HPT370A was detected but the driver was NOT COMPILED IN TO THE KERNEL....i have to go to sleep now but does anyone know why it wont take?....do i need to do something additional then adding it to the kernel when running menuconfig.

ciao

oh btw your grub from floppy and link to that article worked perfectly
Back to top
Guest






PostPosted: Mon Apr 29, 2002 3:56 pm    Post subject: Reply with quote

If you'e using the gentoo-sources kernel version (highly patched kernel 2.4.18) then I don't think Highpoint software RAID will work. I tried it, and the kernel would boot, but panic when it couldn't mount my RAID array (/dev/ataraid/disc2). I had definitely compiled Highpoint support into my kernel, and devfs was also mounted so that couldn't be the problem. In the end I switched back to the stable 2.4.18 kernel (vanilla-sources) and everything now works fine.

HTH



Dave
Back to top
Guest






PostPosted: Mon Apr 29, 2002 3:57 pm    Post subject: Reply with quote

Of course, my raid array described above should be /dev/ataraid/disc0/part2 !
Back to top
Guest






PostPosted: Mon Apr 29, 2002 8:09 pm    Post subject: Reply with quote

you serious....lol...i am on the third install from stage1 in 24hrs....LOL...man i dont know what to do now...guess i should wipe out the /usr/src/linux and emerge the vanilla sources then...but again your floppy thing did the trick....so i trust ya...lol
i thought it was a dual cpu hptraid linux issue that was causing the trouble...i remembered reading that it did work with mutltiple processors yet....of corse i remembered this after the second failure...lol
Back to top
Guest






PostPosted: Mon Apr 29, 2002 8:59 pm    Post subject: Reply with quote

aarrgghhh its not working....just keeps schrolling down listing the drives over and saying lost interupt

hde: lost interrupt
hde: lost interrupt
hdg: lost interrupt

and so on and so on...like the energizer penguin....lol

when you ran fdisk on your drives and wrote the table and exited do you remember if it gave you an error messege like it couldnt set the table and it would do it the next time you booted or something?
Back to top
amigadave
n00b
n00b


Joined: 29 Apr 2002
Posts: 55
Location: UK

PostPosted: Mon Apr 29, 2002 9:27 pm    Post subject: Reply with quote

Yes, I did get a message from fdisk saying that it couldn't sync the partition table and that I should reboot. I can't remember whether I did or not though. Probably best to assume that I did and reboot yourself, if you haven't already of course! You also might want to check that the IRQ of your HPT controller is not being shared with other devices (does this cause a lost interrupt?) and if so try moving your PCI cards around until nothing else is sharing.
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Apr 30, 2002 12:12 am    Post subject: Reply with quote

well...lol....i just got bacj from running and i am gonna try it again...this time from a stage3 install...lol....so if it doesnt work its not such a big deal...well doesnt matter anyway but i'll be able to try it again sooner...hey thanks for all your input...you've been really helpful and made this pretty fun even if it aint working for me as of yet...lol

merwan
Back to top
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum