Antergos / Cnchi

A modern, flexible online system installer for Antergos Linux
GNU General Public License v3.0
291 stars 101 forks source link

Add RAID support #14

Open karasu opened 11 years ago

karasu commented 11 years ago

Add RAID support

ahmedcevizci commented 6 years ago

Hi, If you could add RAID 0 support to Cnchi, I think a lot of people would appreciate it. Kind regards.

I have found a work around in case people could not find it, here it is;

right after installation do not reboot or alternatively reboot with live cd again and then do the following

sudo nano <installed_arch_root_partition>/etc/mkinitcpio.conf

alter these lines in mkinitcpio.conf as follows

MODULES="ext4 dm_mod raid0"

just add mdadm_udev to HOOKS

HOOKS= "base udev autodetect modconf block mdadm_udev keyboard keymap resume filesystems fsck"

then

sudo chroot /run/media/<$USER>/<LINUX partition>

on separate terminal

this lines basically mounts live cd directories into freshly installed linux partition to be able to

generate bootable images (initramfs)

sudo mount --bind /proc /<$chroot-dir>/proc 
sudo mount --bind /sys /<$chroot-dir>/sys
sudo mount --bind /dev /<$chroot-dir>/dev

on chrooted terminal

sudo mkinitcpio -p linux<kernel number>

alternatively, this is the same as

mkinitcpio -k <current kernel> -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img