11/25/2023 0 Comments Arch linux ifconfig![]() Grub-mkconfig -o /boot/grub/grub.cfg Setup Hostname Grub-install /dev/sda & grub-install /dev/sdb Mkinitcpio -p linux Install GRUB Boot Loader HOOKS="base udev autodetect modconf block mdadm_udev filesystems fsck" Add mdadm_udev to HOOKSand /sbin/mdmon to BINARIES Nano /etc/default/grub #(Uncomment GRUB_DISABLE_LINUX_UUID=true) Use passwd command to set the root password Ln -sf /usr/share/zoneinfo/US/Central /etc/localtime Set the system locale by using the LANG variable in /etc/nf file.Įcho "LANG=en_US.UTF-8" > /etc/nfĬonfigure the system time zone by creating a symlink. Vi /etc/locale.gen #(Uncomment en_US.UTF-8 UTF-8 for American-English.) The chroot changes the root directory for the currently running process.Ĭonfigure the system language by un-commenting the required languages from locale.gen file. To configure Arch Linux we need to chrootto the new system. Mdadm -detail -scan -verbose > /mnt/etc/nf Configuration Arch Linux System Now update the mdadm conf file to the installed OS to save the Raid configuration we have created. Ex: /dev/md0p1, /dev/md0p2) Update mdadm conf Nano /mnt/etc/fstab (replace UUIDs with device name. Once the installation completed we need to create fstab entries for the installed OS. The installation will take at least 10 to 20 minutes depending upon your network speed. For Ex: /home1 partition needs to be mounted on /mnt/home1 If you have additional partitions you can mount the respective directories on /mnt. Then we need to mount the partitions to desired mount points. To see partition changes run below command:įormat the created partitions with the file systems you need Mkpart primary ext4 8.5G 100% #(Set the remaining space for / partition) Mkpart primary linux-swap 500 MiB 8.5G #(Creating an 8 GB partition for swap) Mkpart primary ext4 1MiB 500MiB #(Creating a 500 MB partition for /boot) Mklabel msdos #(Create an MS-DOS disk label) You have to modify the device name and other things according to your system. Please don’t copy paste the exact commands as I mentioned below. Then we use the parted command to create partitions. You can change the name according to your need. Here we create a Raid device called /dev/md0. Mdadm -create /dev/md0 -level=mirror -raid-devices=2 /dev/sd1 To create Software RAID 1 we use below command: We are using mdadm command to setup RAID among disk. You can check out more details about Software RAID and its setup using below links: Here we need to setup Software RAID 1 which means data mirroring. Replace network card and IP address according to your network environment. If you are using a DHCP environment system will detect the network automatically. If you are using a static IP address, you need to configure it manually as mentioned below: You need internet connectivity to continue installing OS on the system. Once the system boots, you will get an OS installer screen.Ĭhoose Boot Arch Linux (x86_64) from the installer screen and then press Enter.Īfter various checks performed, you will get a root login prompt. Select the boot option accordingly to boot from the USB or CD drive. Power on the system and press F2 or F11 (Depends on the motherboard) to change/select the boot order. Setup a bootable USB or CD using the downloaded iso. We can download the latest version of OS from the Arch Linux official website In this blog, we will check out how to install Arch Linux by setting software RAID 1. Arch Linux is a general-purpose Linux distribution for x86-64 computers and is very popular among the intermediate and advanced Linux users.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |