 |
|
| Linux Forum Index » Linux - Gentoo Forum » Getting Gentoo to work on a Asus P5Q Pro mobo with... |
|
Page 1 of 1 |
|
| Author |
Message |
| Wim Cossement... |
Posted: Sun Jul 26, 2009 11:11 am |
|
|
|
Guest
|
Hello Gentoo'ers,
It's been a long time since I had some installation related problems but
now I've got some new hardware and would like to use Gentoo on that too,
yay!
I knew there was a good article on the Gentoo wiki explaining kinda
everything but the site seems down..
As I mentioned in the subject I just got a P5Q Pro motherboard that has
an Intel ICH10R chip on it (there's a Silicon Image Sil5723 on it too
but I've read that the Intel stuff is way better and better supported on
Linux) that allows you to hook up some SATA disks and now I've got 2 1TB
disks attached and would like to use them in RAID 0.
The BIOS has a setting for this controller that allows you to either
select IDE, RAID and AHCI so I selected RAID and then created a volume
in a BIOS utility buy adding both disks (since I intend to install
Windoze on it too for gaming) but I guess this info is irrelevant.
I've booted with the SystemRescueCD (with the dodmraid flag) since this
one has the driver for my NIC on it.
It booted up fine and one big drive of almost 2 TB was detected so I
partitioned successfully it with gparted into a /boot (ext2), swap and /
(xfs) partition.
This gave me dm-x files I could use to mount, chroot in to and follow
most of the standard installation procedure but then I had to divert
when compiling my kernel.
I built in everything I could, including ramdisk/initrd stuff (but I
don't need to use that I guess or not?), device
mapper and RAID support, some SATA drivers but I can't seem to get my
root file system mounted.
Configuring GRUB was a bit akward but it seems to work.
This is what I did:
grub --device-map=/dev/null
grub> device (hd0) /dev/mapper/isw_bffdiiiage_Volume0
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,0)
This went okay and /etc/fstab should be fine too (using /dev/dm-1 and so
on) but when I rebooted my machine I get the Grub screen and then the
kernel gets loaded but then it panics because of an unmountable root
file system.
This is my grub.conf snippet:
splashimage (hd0,0)/grub/splash.xpm.gz
title Gentoo 2.6.29-r5
kernel /boot/kernel-2.6.29-r5 root=/dev/mapper/isw_bffdiiiage_Volume03
dodmraid udev
Anything I'm doing wrong?
Regards,
Wimmy |
|
|
| Back to top |
|
|
|
| AZ Nomad... |
Posted: Mon Jul 27, 2009 7:11 am |
|
|
|
Guest
|
Easiest way to set up an initrd for raid is genkernel --dmraid
http://en.gentoo-wiki.com/wiki/RAID/Onboard
The grub configuration will look like:
title Gentoo Linux 2.6.30-r3
kernel (hd0,0)/kernel-genkernel-x86_64-2.6.30-gentoo-r3 root=/dev/ram0 real_root
=/dev/mapper/nvidia_edbefefd3 init=/linuxrc ramdisk=8192 dodmraid udev
#(change your_raid_set* to your root partition)
#init=/linuxrc may be needed if you get errors after the ramdrive loading
#udev is needed on some newer boards, add this if during boot it fails to find r
oot
initrd (hd0,0)/initramfs-genkernel-x86_64-2.6.30-gentoo-r3 |
|
|
| Back to top |
|
|
|
| Wim Cossement... |
Posted: Mon Jul 27, 2009 12:03 pm |
|
|
|
Guest
|
AZ Nomad wrote:
Yay! Tis back on the wire!
I'll keep you posted 'cause I'm sure I'll run into more quirks...
Wimmy
Quote:
The grub configuration will look like:
title Gentoo Linux 2.6.30-r3
kernel (hd0,0)/kernel-genkernel-x86_64-2.6.30-gentoo-r3 root=/dev/ram0 real_root
=/dev/mapper/nvidia_edbefefd3 init=/linuxrc ramdisk=8192 dodmraid udev
#(change your_raid_set* to your root partition)
#init=/linuxrc may be needed if you get errors after the ramdrive loading
#udev is needed on some newer boards, add this if during boot it fails to find r
oot
initrd (hd0,0)/initramfs-genkernel-x86_64-2.6.30-gentoo-r3 |
|
|
| Back to top |
|
|
|
| AZ Nomad... |
Posted: Mon Jul 27, 2009 12:55 pm |
|
|
|
Guest
|
On Mon, 27 Jul 2009 20:31:42 +0200, Aragorn <aragorn at (no spam) chatfactory.invalid> wrote:
Quote: If fault tolerance is your goal, then I would definitely not recommend
using RAID 0. RAID 5 is a good compromise on performance and fault
tolerance, but it requires at least three disks and there is a small
penalty to pay, i.e. when writing to a three-disk RAID 5, two blocks of
data and one block of parity information must be written, and the
parity must first be calculated. RAID 6 is the same thing but uses one
more disk and two blocks of parity. So for writing, there is a
performance hit at using RAID 5 or RAID 6 - if it is a software RAID,
of course, because if it is a hardware RAID, the CPU won't even know
about any of that.
If you're using something faster than a pentium I, the time needed to
handle software raid is neglible. |
|
|
| Back to top |
|
|
|
| Marcel Bruinsma... |
Posted: Mon Jul 27, 2009 5:57 pm |
|
|
|
Guest
|
AZ Nomad wrote:
Quote: On Mon, 27 Jul 2009 22:58:24 +0200, Marcel Bruinsma
we-love-all-spam at (no spam) gmail.com> wrote:
If the root fs is on a raid0 (or raid10, or raid5) md array, you need
a separate boot fs. If you care about fault tolerance (raid0 seems to
dmraid starts the software raid system before any partitions are
mounted. It boots a partition off a raid volume just fine.
Which boot loader are you using?
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! # |
|
|
| Back to top |
|
|
|
| AZ Nomad... |
Posted: Mon Jul 27, 2009 6:56 pm |
|
|
|
Guest
|
On Tue, 28 Jul 2009 01:57:33 +0200, Marcel Bruinsma <we-love-all-spam at (no spam) gmail.com> wrote:
Quote: AZ Nomad wrote:
On Mon, 27 Jul 2009 22:58:24 +0200, Marcel Bruinsma
we-love-all-spam at (no spam) gmail.com> wrote:
If the root fs is on a raid0 (or raid10, or raid5) md array, you need
a separate boot fs. If you care about fault tolerance (raid0 seems to
dmraid starts the software raid system before any partitions are
mounted. It boots a partition off a raid volume just fine.
Which boot loader are you using?
grub. |
|
|
| Back to top |
|
|
|
| Marcel Bruinsma... |
Posted: Mon Jul 27, 2009 10:06 pm |
|
|
|
Guest
|
AZ Nomad wrote:
Quote: On Tue, 28 Jul 2009 01:57:33 +0200, Marcel Bruinsma
we-love-all-spam at (no spam) gmail.com> wrote:
AZ Nomad wrote:
On Mon, 27 Jul 2009 22:58:24 +0200, Marcel Bruinsma
we-love-all-spam at (no spam) gmail.com> wrote:
If the root fs is on a raid0 (or raid10, or raid5) md array, you
need a separate boot fs. If you care about fault tolerance (raid0
dmraid starts the software raid system before any partitions are
mounted. It boots a partition off a raid volume just fine.
Which boot loader are you using?
grub.
Looks like I'll have to update mine. My grub can't load the
kernel from a striped array (or a raid5). I wasn't aware the
more recent grub has improved that much.
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! # |
|
|
| Back to top |
|
|
|
| AZ Nomad... |
Posted: Mon Jul 27, 2009 10:23 pm |
|
|
|
Guest
|
On Tue, 28 Jul 2009 06:06:24 +0200, Marcel Bruinsma <we-love-all-spam at (no spam) gmail.com> wrote:
Quote: AZ Nomad wrote:
On Tue, 28 Jul 2009 01:57:33 +0200, Marcel Bruinsma
we-love-all-spam at (no spam) gmail.com> wrote:
AZ Nomad wrote:
On Mon, 27 Jul 2009 22:58:24 +0200, Marcel Bruinsma
we-love-all-spam at (no spam) gmail.com> wrote:
If the root fs is on a raid0 (or raid10, or raid5) md array, you
need a separate boot fs. If you care about fault tolerance (raid0
dmraid starts the software raid system before any partitions are
mounted. It boots a partition off a raid volume just fine.
Which boot loader are you using?
grub.
Looks like I'll have to update mine. My grub can't load the
kernel from a striped array (or a raid5). I wasn't aware the
more recent grub has improved that much.
I first used the gentoo dmraid recipe back in 2005. I doubt you have
an older version.
The recipe is something like this:
grub --device-map=/dev/null
"Now that you're inside of the grub environment, set up your raid
devices and install grub!"
grub> device (hd0,0) /dev/mapper/nvidia_abiccada1
grub> device (hd0) /dev/mapper/nvidia_abiccada
grub> root (hd0,0)
grub> setup (hd0)
Google for "gentoo dmraid"
http://en.gentoo-wiki.com/wiki/RAID/NVRAID_with_dmraid |
|
|
| Back to top |
|
|
|
| Marcel Bruinsma... |
Posted: Tue Jul 28, 2009 9:29 am |
|
|
|
Guest
|
AZ Nomad wrote:
Quote: On Tue, 28 Jul 2009 06:06:24 +0200, Marcel Bruinsma
we-love-all-spam at (no spam) gmail.com> wrote:
AZ Nomad wrote:
On Tue, 28 Jul 2009 01:57:33 +0200, Marcel Bruinsma
we-love-all-spam at (no spam) gmail.com> wrote:
AZ Nomad wrote:
dmraid starts the software raid system before any partitions are
mounted. It boots a partition off a raid volume just fine.
Which boot loader are you using?
grub.
Looks like I'll have to update mine.
I first used the gentoo dmraid recipe back in 2005. I doubt you have
an older version.
Correct, I don't. :)
Thank you, good (simple) recipe. The 'how-to' is clear, the 'why'
still escapes me. Somehow, my brain keeps telling me, the driver
is necessary to load the kernel; a chicken-and-egg problem. But,
apparently, grub can do it without driver.
Got a new box coming; ideally I'ld like just one raid10 with six
disks, if the chip (ICH10R) supports it. I'll aplly the recipe and
compare with the md-raid I'm using now.
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! # |
|
|
| Back to top |
|
|
|
| AZ Nomad... |
Posted: Tue Jul 28, 2009 5:00 pm |
|
|
|
Guest
|
On Tue, 28 Jul 2009 17:29:42 +0200, Marcel Bruinsma <we-love-all-spam at (no spam) gmail.com> wrote:
Quote: AZ Nomad wrote:
On Tue, 28 Jul 2009 06:06:24 +0200, Marcel Bruinsma
we-love-all-spam at (no spam) gmail.com> wrote:
AZ Nomad wrote:
On Tue, 28 Jul 2009 01:57:33 +0200, Marcel Bruinsma
we-love-all-spam at (no spam) gmail.com> wrote:
AZ Nomad wrote:
dmraid starts the software raid system before any partitions are
mounted. It boots a partition off a raid volume just fine.
Which boot loader are you using?
grub.
Looks like I'll have to update mine.
I first used the gentoo dmraid recipe back in 2005. I doubt you have
an older version.
Correct, I don't. :)
The recipe is something like this:
[...]
Google for "gentoo dmraid"
http://en.gentoo-wiki.com/wiki/RAID/NVRAID_with_dmraid
Thank you, good (simple) recipe. The 'how-to' is clear, the 'why'
still escapes me. Somehow, my brain keeps telling me, the driver
is necessary to load the kernel; a chicken-and-egg problem. But,
apparently, grub can do it without driver.
My guess is that the bios initializes the raid hardware well enough so
that the kernel is loaded off of the first partition along with the initrd
which has the raid modules required. |
|
|
| Back to top |
|
|
|
|
|
All times are GMT - 5 Hours
The time now is Tue Nov 24, 2009 7:08 pm
|
|