You are not logged in.

#1 2011-10-22 14:48:21

paulb787
Member
Registered: 2011-10-22
Posts: 49

Grub2 And Raid

Ok so i am tired of compiling packages on gentoo so with the great documentation i have arch installed almost. I have a

raid 1 for my boot drive and a raid 0 for my root (2 SSD's). I installed grub2 and am using metadata 0.90 to stay away from

any issues i decided. Ok, when i boot up i get the error    "Unable to determine major/minor number root device UID ...."

I have browsed and browsed and i have no idea where to begin. New to Grub2. Im using a MBR and the install went fine.

heres : GRUB.CFG

"set menu_color_normal=light-blue/black
set menu_color_highlight=light-cyan/blue

insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/543217345c411aa65241990451489ef3)'
search --no-floppy --fs-uuid --set=root 09895f01-ae3d-4329-a664-78bcae90e459
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod raid
  insmod mdraid09
  insmod part_msdos
  insmod part_msdos
  insmod ext2
  set root='(mduuid/3b25066bde85573a5241990451489ef3)'
  search --no-floppy --fs-uuid --set=root a41255c1-2a13-4908-adfc-347a1df337d1
  set locale_dir=($root)/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux linux' --class archlinux --class gnu-linux --class gnu --class os {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod raid
        insmod mdraid09
        insmod part_msdos
        insmod part_msdos
        insmod ext2
        set root='(mduuid/3b25066bde85573a5241990451489ef3)'
        search --no-floppy --fs-uuid --set=root a41255c1-2a13-4908-adfc-347a1df337d1
        echo    'Loading Linux linux ...'
        linux   /vmlinuz-linux root=UUID=09895f01-ae3d-4329-a664-78bcae90e459 ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux Fallback' --class archlinux --class gnu-linux --class gnu --class os {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod raid
        insmod mdraid09
        insmod part_msdos
        insmod part_msdos
        insmod ext2
        set root='(mduuid/3b25066bde85573a5241990451489ef3)'
        search --no-floppy --fs-uuid --set=root a41255c1-2a13-4908-adfc-347a1df337d1
        echo    'Loading Linux linux ...'

set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux linux' --class archlinux --class gnu-linux --class gnu --class os {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod raid
        insmod mdraid09
        insmod part_msdos
        insmod part_msdos
        insmod ext2
        set root='(mduuid/3b25066bde85573a5241990451489ef3)'
        search --no-floppy --fs-uuid --set=root a41255c1-2a13-4908-adfc-347a1df337d1
        echo    'Loading Linux linux ...'
        linux   /vmlinuz-linux root=UUID=09895f01-ae3d-4329-a664-78bcae90e459 ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux Fallback' --class archlinux --class gnu-linux --class gnu --class os {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod raid
        insmod mdraid09
        insmod part_msdos
        insmod part_msdos
        insmod ext2
        set root='(mduuid/3b25066bde85573a5241990451489ef3)'
        search --no-floppy --fs-uuid --set=root a41255c1-2a13-4908-adfc-347a1df337d1
        echo    'Loading Linux linux ...'
        linux   /vmlinuz-linux root=UUID=09895f01-ae3d-4329-a664-78bcae90e459 ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-linux-fallback.img
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
"

Really would appreciate any help here
Thank You

Last edited by paulb787 (2011-10-22 15:50:02)

Offline

#2 2011-10-22 15:18:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Grub2 And Raid

paulb787, please edit your post.
When pasting code, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and more convenient to scroll through.

Offline

#3 2011-10-22 16:01:13

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Grub2 And Raid

AFAICT grub2 does not support partitioned raid0...there may be a workaround but it isn't well-described.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#4 2011-10-22 17:02:58

cbowman57
Member
Registered: 2011-08-21
Posts: 77

Re: Grub2 And Raid

When I ran raid0 I just used a small /boot partition that wasn't in an array.

This wiki helped me figure it out https://wiki.archlinux.org/index.php/So … stallation

Don't forget this step, I think it's essential

# mdadm --examine --scan > /mnt/etc/mdadm.conf

Offline

#5 2011-10-22 17:45:15

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Grub2 And Raid

Chowman

Used the referenced command and have a partition id for the boot separate from the array partitions.

Refuses to boot in linux3.0


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#6 2011-10-22 18:18:13

cbowman57
Member
Registered: 2011-08-21
Posts: 77

Re: Grub2 And Raid

I wish I could be of more help lilsrecho but I no longer have an installation on Raid0. The minimal performance improvement didn't outweigh the increased difficulty in backing it up (Couldn't figure out how to do it with Clonezilla).

It is possible though so I'm sure you'll get it figured out.

Offline

#7 2011-10-22 19:42:09

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Grub2 And Raid

Thanks for the comments...my use of raid0 is ongoing and I have no backups for any since the backups would fail as well in Linux3.0.

I have  a two drive raid0 in kernel26 mode that runs very fast and boots fast even though kde4 is included in the array(not the DE however).  Boots in 13 secs and with jumanji runs the internet in super-fast mode.

I find it advantageous using CF cards as pseudo SSD's.  Had five in raid 0 but no longer do they boot in Linux kernel.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#8 2011-10-23 03:45:34

paulb787
Member
Registered: 2011-10-22
Posts: 49

Re: Grub2 And Raid

My boot partition is in a raid 1 my root is a raid0 this has worked for me in grub1 in gentoo. so is the problem the raid0 root partition? I could get rid of raid on the boot not to nessacary

Offline

Board footer

Powered by FluxBB