You are not logged in.

#1 2012-10-19 17:17:06

Sr. Ssruno
From: Asunción, Paraguay
Registered: 2011-04-27
Posts: 12

Problems booting on a RAID0 array with UEFI, rEFInd and efibootmgr

Hello everyone!

I made a Intel RAID 0 within a DELL Optiplex 990, which is UEFI capable, check the array in the picture

After booting the last "2012.10.06" media CD via the UEFI entry, everything Ok, proceding with the installation, here a sample of my drives.

The Intel RAID is recognized

/dev/md127 is the container

/dev/md126 is the RAID array

I already created two partitions on the /dev/md126

modprobe efivars
modprobe md-mod
vgchange -ay

Like this

root@archiso ~ # gdisk -l  /dev/md126
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/md126: 3907039232 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 24DBB2D7-753E-427C-8601-8292F3914A56
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907039198
Partitions will be aligned on 2048-sector boundaries
Total free space is 4061 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         1146880   559.0 MiB   EF00  EFI System
   2         1148928      3907039198   1.8 TiB     8E00  Linux LVM

You can see that /dev/md126p1 is the EFI System and the /dev/md126p2 is the Linux LVM partition

root@archiso ~ # lsblk /dev/md126
NAME                         MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
md126                          9:126  0  1.8T  0 raid0 
├─md126p1                    259:0    0  559M  0 md    
└─md126p2                    259:1    0  1.8T  0 md    
  ├─VG_Ssruno-lv_boot (dm-3) 254:3    0  252M  0 lvm   
  ├─VG_Ssruno-lv_swap (dm-4) 254:4    0    6G  0 lvm   
  ├─VG_Ssruno-lv_root (dm-5) 254:5    0  100G  0 lvm   
  └─VG_Ssruno-lv_home (dm-6) 254:6    0  1.7T  0 lvm  

I give format

mkswap /dev/mapper/VG_Ssruno-lv_swap
mkfs.ext4  /dev/mapper/VG_Ssruno-lv_boot
mkfs.ext4  /dev/mapper/VG_Ssruno-lv_root
mkfs.ext4  /dev/mapper/VG_Ssruno-lv_home
mkfs.vfat -I -F32 /dev/md126p1

And mounted

swapon /dev/mapper/VG_Ssruno-lv_swap
mount /dev/mapper/VG_Ssruno-lv_root /mnt
mount /dev/mapper/VG_Ssruno-lv_boot /mnt/boot 
mount /dev/md126p1 /mnt/boot/efi
mount /dev/mapper/VG_Ssruno-lv_home /mnt/home


arch-chroot /mnt

At the /etc/mkinitcpio.conf I have this modules and hooks

MODULES="ext4 dm-mod raid0"
HOOKS="base udev autodetect pata scsi sata mdadm_udev lvm2 filesystems usbinput fsck"

mkinitcpio -p linux

And here comes the deal, is possible to do what I'm intending to? Following the rEFInd installation method

efibootmgr -c -g -d /dev/md126p1  -w -L "Arch Linux (rEFInd)" -l '\EFI\arch\refind\refindx64.efi'

Won't boot

Any suggestions?

Here's my /boot

root@archiso ~ # ls -R /mnt/boot
efi/  initramfs-linux-fallback.img  initramfs-linux.img  lost+found/  vmlinuz-linux



initramfs-arch-fallback.img*  initramfs-arch.img*  linux.conf*  refind/  refind_linux.conf*  vmlinuz-arch.efi*

icons/  refind.conf*  refindx64.efi*


#2 2012-10-20 19:12:37

From: Aalborg, Denmark
Registered: 2012-10-16
Posts: 16

Re: Problems booting on a RAID0 array with UEFI, rEFInd and efibootmgr

Taken from the wiki you linked to:

efibootmgr -c -g -d /dev/sdX -p Y -w -L "Arch Linux (rEFInd)" -l '\EFI\arch\refind\refindx64.efi'

Comparing with the command you run, you seem to be missing the " -p Y ", and indstad have the device number at the " -d " flag...
Try with:

efibootmgr -c -g -d /dev/md126 -p 1 -w -L "Arch Linux (rEFInd)" -l '\EFI\arch\refind\refindx64.efi'



#3 2012-11-19 14:33:14

Registered: 2012-11-19
Posts: 2

Re: Problems booting on a RAID0 array with UEFI, rEFInd and efibootmgr


Sorry to ask but, how did you create Partitions on md126

I have a similar setup, but when I try to create partitions, or even just try to mkfs on md126, all I get is a hanging process and after a while a message that the task has blocked for more than 120 seconds.

What I want to get is the following: having md126p1 as the boot partition and encrypt md126p2 then set up LVM on this with the root system.

Any tips?


#4 2012-11-19 18:30:20

Registered: 2012-11-19
Posts: 9

Re: Problems booting on a RAID0 array with UEFI, rEFInd and efibootmgr

boot into it using a usb shell using this command  vmlinuz-arch.efi root=UUID=(Your root UUID here) ro rootfstype=ext4 add_efi_memmap initrd=\EFI\arch\initramfs-arch.img (use map -r to find your boot efi partition it should be like FS0 or FS1 to mount it simply type FS0: or what ever it is with the : symbol) after booting modprobe and run the EFIBOOTMGR command, also i bypassed the refind_linux.conf by just editing the refind.conf in the refind directory - hope this helps


Board footer

Powered by FluxBB