Install Arch Linux on Raid0 with GPT and Grub 2
First start by downloading the iso.
dd it onto usb stick
boot iso
then start by setting up internet connection
test it : ping www.google.com
Load the appropriate RAID (e.g.
raid0, raid1, raid5, raid6, raid10) modules. We will use raid0, and raid1
modprobe raid0
modprobe raid1
Prepare Hard Drives
Each drive will have 100Mb for /boot these will be in raid1 for safety
The / partition takes the remainder of the drive
install gdisk for formatting in GPT
pacman-db-upgrade
pacman -Syy
pacman -S gptfdisk
gdisk /dev/sda
- Add a new partition:
n - Select the default partition number:
Enter - Use the default for the first sector:
Enter - For
sda1type the appropriate size in MB (i.e.+100MBand+2048M). - Select
BIOS BOOT PARTITIONas the partition type:ef02 !!!very important - Write the table to disk and exit:
w
Now create the raid's with mdadm
mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sd[ab]2
mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sd[ab]1
ok than we mount our partition
mount /dev/md0 /mnt
mkdir /mnt/boot
mount /dev/md1 /mnt/boot
pacstrap /mnt base
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot
mdadm --examine --scan > /etc/mdadm.conf
EDIT : mkinitcpio.conf
1.Add themdadm_udevhooks to theHOOKSlist in/etc/mkinitcpio.confafterudev.
mkinitcpio -p linux
INSTALL BOOTLOADER GRUB 2
pacman -S grub
grub-install --target=i386-pc --recheck /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
And you are done, you can reboot
Reacties
Een reactie posten