Doorgaan naar hoofdcontent

Install Arch Linux on Raid0 with GPT and Grub 2

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
  1. Add a new partition: n
  2. Select the default partition number: Enter
  3. Use the default for the first sector: Enter
  4. For sda1 type the appropriate size in MB (i.e. +100MB and +2048M). 
  5. Select BIOS BOOT PARTITION as the partition type: ef02  !!!very important
  6. Write the table to disk and exit: w
Repeat for the second partition on /dev/sda but for step 4 just press ENTER to use the remainder of the disk.

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 the mdadm_udev  hooks to the HOOKS list in /etc/mkinitcpio.conf after udev.
 
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

Populaire posts van deze blog

Add Costum Keyboard Layout to XFCE

How to create this keyboard layout for Xfce : Works also on Mate!!!!   It is a lightly modified version of the dvorak programmers layout. I changed the lower left row. So you can easily undo, cut, copy & paste         with your left hand and keep the other hand on your mouse. Step 1. Edit file: /usr/share/X11/xkb/symbols/us Insert this snippit: // programmer Dvorak wim's style, by Wim Stockman <wim.stockman at gmail dot com> // Main features: Numbers are in shift position (like French), symbols have been // switch position of z x c v to the bottom left for easy shortcut handling partial alphanumeric_keys xkb_symbols "dvp-wim" { include "us(dvorak)" name[Group1] = "English (programmer Dvorak Wims style ZXCV)"; // Unmodified Shift AltGr Shift+AltGr // symbols row, left side key <TLDE> { [ dollar, asciitilde, dead_tilde ] }; key <AE01> { [ ampersand, percent ] }; key <AE02> { [ bracketleft, 7, currency ],

Awk Tips & Tricks: print a "," at the end of the line EXCEPT the last one!

Small AWK idiomatic tip. If you want to add a char at the end of each line.EXCEPT the last one. for instance you are generating an array. awk NR>1 {printf(",\n");} {printf($0);} TLDR; The NR stands for number record, the line it is processing usually. the printf statement prints out without the ORS( output record separator) usually newline (\n) char. END;