LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 01-28-2021, 06:14 AM   #1
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Rep: Reputation: Disabled
Install Archlinux


Hello

I got this message when i trying to install Archlinux Grub:



# grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck

EFI varuables are not supported on this system

Thanks
 
Old 01-28-2021, 01:21 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Goodlinux View Post
Hello

I got this message when i trying to install Archlinux Grub:



# grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck

EFI varuables are not supported on this system

Thanks
Did you search the error message?
E.g.: https://duckduckgo.com/?q=archlinux+...this+system%22

BTW, are you sure it was prudent to start a separate thread for what seems like only a small variation on this?
 
Old 02-06-2021, 09:34 PM   #3
Mojojo
Member
 
Registered: May 2003
Location: Philadelphia/PA
Distribution: Arch
Posts: 452

Rep: Reputation: 35
I just installed arch on a new hard drive and recorded the steps below. Note this is the UEFI method only if anyone wants to edit for a Non-UEFI install feel free.

If you notice any errors let me know I will correct them ASAP


Installing Arch Linux on EFI System
-----------------------------------------------------

1.) Check your available drives default is 'sda'

Code:
fdisk -l
2.) run 'cfdisk' to setup partitions, make sure to include boot/efi, swap, /root and /home partitons

Boot efi partitons are normally 500/mb (fat32)
Swap partitions are around 2500/mb
Root should be about 30-40% of remaining space (ext4)
Home should be about 60-70% of remaining space (ext4)


3.) Format partitions

SWAP Partition
Code:
mkswap /dev/sda2
EFI Boot Partition
Code:
mkfs.fat -F32 /dev/sda1
/ Partition
Code:
mkfs.ext4 /dev/sda3
/home Partition
Code:
mkfs.ext4 /dev/sda4
4.)If using wireless - Authenticate to the wireless network
Code:
iwctl
use help to list all available commands


5.) Check internet connection
Code:
ping google.com

6.) Mount Partitions and Generate fstab

# Setup and mount efi

Code:
mkdir /mnt/boot/efi
# Mount efi partition
Code:
mount /dev/sda1 /mnt/boot/efi
#Mount Root /
Code:
mount /dev/sda3 /mnt
#Mount Swap
Code:
swapon /dev/sda2
#Mount Home
Code:
mnt /dev/sda3 /mnt/home
#Generate fstab file
Code:
genfstab -U /mnt >> /mnt/etc/fstab
7.) chroot into new system
Code:
arch-chroot /mnt
8.) Install base system **(exclude efibootmgr if non UEFI system)**
Code:
pacstrap /mnt base base-devel linux linux-firmware vim nano mc grub efibootmgr networkmanager
9.) Set timezone

#Find your timezone
Code:
timedatectl list-timezones
#Set Your timezone
Code:
timedatectl set-timezone America/New_York
10.) Set locale & edit locale-gen

# Set locale
Code:
nano /etc/locale.gen
# uncomment both lines
PHP Code:
en_US.UTF-8 UTF-8  
en_US ISO
-8859-
# save file and run

Code:
locale-gen
Code:
echo LANG=en_US.UTF-8 > /etc/locale.conf
Code:
export LANG=en_US.UTF-8
11.) Set you hostname
Code:
echo yourhostname > /etc/hostname
12.) Create hosts file

Code:
touch /etc/hosts
#example hosts file

PHP Code:
# Static table lookup for hostnames.
# See hosts(5) for details.
127.0.0.1       localhost
::1             localhost
127.0.1.1       yourhostname 
#Change this to your own hostname 
13.) Set root password
Code:
passwd
14.) Add a user
Code:
useradd username
# Set password for new user
Code:
passwd username
15.) Exit chroot and reboot into UEFI

#Now lets exit chroot
Code:
exit
#And Reboot
Code:
reboot
16.) We need to reboot installer into UEFI mode to install bootloader

# Mount root again and chroot

Code:
mount /dev/sda3 /mnt
Code:
arch-chroot /mnt
17.) Install grub
Code:
grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi
18.) mkconfig
Code:
grub-mkconfig -o /boot/grub/grub.cfg
19.) Enable networkmanager
Code:
systemctl enable NetworkManager
20.) Exit chroot
Code:
exit
21.) Reboot
Code:
reboot
22.) Upon reboot you should be met with a terminal this is your installed system, before we install the desktop now would be a good time to add your user to the sudoers file

Login as root

Code:
nano /etc/sudoers
Look for root and add your username below it (example below)


PHP Code:
##
## User privilege specification
##
root ALL=(ALLALL
username ALL
=(ALLALL 
23.) Update Pacman Database
Code:
pacman -Syy
24.) Install plasma desktop and sddm
Code:
pacman -S xorg plasma plasma-wayland-session kde-applications
25.) Enable sddm
Code:
systemctl enable sddm
Code:
systemctl start sddm
Everything should be working!


-----------------------------------------------------------------------------------------

Note:

Once you have a base system installed you may want to save the package list

Code:
pacman -Qqe | grep -v "$(pacman -Qqm)" > pkglist.txt
If you ever reinstall Arch all you need to do is run

Code:
pacman -S --needed - < pkglist.txt
This will save time in the future installing packages after a clean install.

Last edited by Mojojo; 02-06-2021 at 10:56 PM.
 
Old 02-06-2021, 09:53 PM   #4
hish2021
Member
 
Registered: Jan 2021
Posts: 117

Rep: Reputation: Disabled
Hi,
Please check if wifi-menu is still in use. IIRC, it has been replaced. One may need to run `iwctl` from the `iwd` package which is part of the Arch iso.
 
Old 02-06-2021, 10:45 PM   #5
Mojojo
Member
 
Registered: May 2003
Location: Philadelphia/PA
Distribution: Arch
Posts: 452

Rep: Reputation: 35
Quote:
Originally Posted by hish2021 View Post
Hi,
Please check if wifi-menu is still in use. IIRC, it has been replaced. One may need to run `iwctl` from the `iwd` package which is part of the Arch iso.
Thank you updated to reflect change to iwctl.
 
Old 02-27-2021, 12:38 AM   #6
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: Arch
Posts: 118

Rep: Reputation: 16
Quote:
Originally Posted by Mojojo View Post
I just installed arch on a new hard drive and recorded the steps below. Note this is the UEFI method only if anyone wants to edit for a Non-UEFI install feel free.

[PHP]# Static table lookup for hostnames.
# See hosts(5) for details.
127.0.0.1 localhost
::1 localhost
127.0.1.1 yourhostname #Change this to your own hostname
The Arch Wiki says
Code:
127.0.1.1     yourhostname.localdomain    yourhostname
I trust you have set your machine up with just yourhostname and it's up and running. Could you tell what's the difference?


Also, didn't know pacstrap could be run all the way down to where you mentioned it! But, it makes sense.
 
Old 03-25-2021, 07:58 PM   #7
Mojojo
Member
 
Registered: May 2003
Location: Philadelphia/PA
Distribution: Arch
Posts: 452

Rep: Reputation: 35
Quote:
Originally Posted by TristanDee View Post
The Arch Wiki says
Code:
127.0.1.1     yourhostname.localdomain    yourhostname
I trust you have set your machine up with just yourhostname and it's up and running. Could you tell what's the difference?


Also, didn't know pacstrap could be run all the way down to where you mentioned it! But, it makes sense.
Sorry for the late response the last line of the hosts file is not that particular on setup. I usually just put a hostname like localhost, and it changes itself once you connect to the internet. Unless you are hosting a domain from your machine localhost works fine in most cases.

The arch wiki is informative, but some may feel it is slightly overwhelming. I wanted to simplify the install, I have tried installing using other websites and always found the instructions lacking. Most did not tell you to reboot the installer into UEFI mode. And the first time I installed arch I spent a full hour trying to install grub not understanding what I was doing wrong.

After all that screwing around with grub I finally got that squared away and booted into my new install, only to find out the instructions I used never said anything about installing a network manager, so needless to say I booted my first system but had no internet connection.

I only had one machine and had no access to the internet. I was solely relying on what I had printed out. Luckily I figured it out, I just went back to the installer and installed networkmanager then enabled it in systemd. But many newcomers to arch may have just given up and installed another distro at this point.

After using countless linux distributions over the years, Arch is hands down the most reliable and fastest. I use to prefer Ubuntu however every new release came with slow migration of certain applications bugs and overall slower response times. With Arch I have the latest software and response time is excellent. The only real complaints I have seen is the install process. Probably why so many opt to install Manjaro over Arch?
 
Old 09-03-2021, 10:12 AM   #8
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by Goodlinux View Post
Hello

I got this message when i trying to install Archlinux Grub:



# grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck

EFI varuables are not supported on this system

Thanks
Hi Goodlinux,

Sounds to me like your computer is either not UEFI-capable or not set up (in firmware) to use UEFI. You may want to use a BIOS/MBR install for Arch (and GRUB). Alternatively, if your system actually IS UEFI-capable, you may simply need to adjust its configuration in firmware.

I recommend reading the following part of the Arch documentation before proceeding :

https://wiki.archlinux.org/title/Uni...UEFI_variables


Cheers,

Rick
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SOLVED : P new install of archlinux with archlinux-2010.05-core-i686.iso elenger Arch 1 08-18-2011 01:55 PM
Archlinux issues-problems after install! linus72 Linux - Newbie 1 03-14-2009 10:35 AM
cannot get IP from DHCP server running on DSL-584T during ArchLinux install lajner Linux - Networking 19 08-27-2007 12:59 PM
How To Install A Personal Wiki On ArchLinux ravisghosh Linux - Newbie 1 01-16-2007 01:12 AM
Newbie archlinux install, some help please Mindaugas Arch 7 03-30-2004 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 01:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration