Hi,
I got a problem while installing ArchLinux OS. I tried google and followed
step by step instructions from many sites. Even after multiple attempts, I
headed back to the same situation, where after rebooting the system to
existing OS entered *grub> *terminal. With the help of Saifi I am able to
do it correctly by following the instructions given below by him with clear
explanations
--> After starting installing through the live cd
--> To verify whether you need to do MBR or UEFI installation, run the
command
1)* ls /sys/firmware/efi/efvars*
2) *ls /sys/firmware/efi *
3) *ls /sys/firmware * --- if this command gives
output like acpi devicetree .... then it is MBR
--> To check the internet connectivity run commands
1)* ip link*
2) *ping archlinux.org <http://archlinux.org>*
--> run the command.... *ifconfig -a* --- and note down the value enp0s3
and inet value ex:10.x.x.x
-->* if you are doing this installation again after a failure like me run
following commands otherwise skip these*
* --> fdisk /dev/sda*
* p Enter *
* d Enter -- run this command to delete partition previously
created so, repeat it until you delete all your partition. In my situation
I have 3 partition (sda1,sda2,sda2) so, ran 3 times.*
* w Enter *
* --> fdisk /dev/sda*
* p Enter *
* disk label type was gpt but for MBR dos is needed not
gpt. if its gpt run following command*
* dd if=/dev/zero io=/dev/sda bs=1024 count=1M --- it will wipe
MBR previous entries -- if = input file, of =outfile, bs=1024 is 1024 zeros
at a time, count 1M = 1 million times.*
*If you are doing a fresh installation continue with the below steps:*
I have allocated 60GB space for this OS
it can be partitioned into three
/boot /dev/sda 83 384MB Linux
swap /dev/sda2 82 512MB SWAP
/ /dev/sda3 83 remaining space Linux
--> *fdisk /dev/sda*
*m * Enter
*o * Enter --- to change disk label type to dos
*p * Enter
*n * Enter
*p * Enter
*Enter*
* Enter *
*+384M* Enter
*p *Enter
*n * Enter
*p *Enter
*Enter *
* Enter *
*+512M* Enter
*m * Enter
*t *Enter
*Enter *
*L * Enter
*82 *Enter
*p * Enter
*n * Enter
*p *Enter
*Enter *
*Enter *
*Enter *
*p * Enter
*w * Enter
--> *fdisk /dev/sda * Enter
*p *Enter
*b * Enter
*m *Enter
*a *Enter
*1 * Enter
*p * Enter
*w * Enter
--> *mkswap /dev/sda2*
--> *mkswap -L SWAP /dev/sda2*
--> *swapon* */dev/sda2*
--> *mkfs.ext3 -L BOOT /dev/sda1*
--> *mkfs.ext3 -L Root -j /dev/sda3*
--> *mount -v /dev/sda3 /mnt*
--> *mkdir /mnt/boot*
--> *mount -v /dev/sda1 /mnt/boot*
-->* packstrap /mnt base linux linux-firmware*
--> *packstrap /mnt nano grub net-tools elinks dhcpcd*
--> *packstrap /mnt os-prober*
--> *genfstab -U /mnt >> /mnt/etc/fstab*
--> *arch-chroot /mnt*
-->* ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime*
--> *locale-gen*
-->*LANG=en_US.UTF-8 >> /etc/locale.conf*
-->*echo arch >> /etc/hostname* -- I gave "arch" as my hostname
-->*echo '127.0.0.1 arch.localdomain arch' >> /etc/hosts*
-->*passwd *-- setting password for root user
-->*grub-install /dev/sda*
-->*grub-mkconfig -o /boot/grub/grub.cfg*
-->*umount -R /mnt*
--> *exit*
--> *reboot*
After reboot select boot into existing OS
login: root
password: your password
as the enp0s3 is down, to enable and start it have to run following commands
--> *systemctl enable [email protected]*
-->*systemctl start [email protected]*
now check *ping *to confirm internet is connected and continue using OS
Regards
Ajay Kumar Gaddam