Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Linux - Arch UEFI
Forum - Linux - Arch UEFI

Avatar
Roby94 (Member)
Guru


Messaggi: 1170
Iscritto: 28/12/2009

Segnala al moderatore
Postato alle 14:54
Venerdì, 16/11/2018
Salve,
di recente mi è stato consigliato di provare la distro Arch, la sto apprezzando molto, dall'aur, a il fatto che la sua installazione sia veramente minimal e si possa comporre come più mi aggrada. La prima installazione di Arch l'ho fatto su un laptop ancora basato su BIOS; non ho riscontrato grandi problemi, ho effettuato un installazione semplicissima su una singola partizione MBR su SSD. Ora mi trovo a fare il salto di livello, sto provando ad installare Arch su una workstation UEFI sempre su un drive dedicato, ma sto riscontrando problemi nella fase di boot a cui non ne sto venendo a capo.
Per l'installazione ho ricreato il drive live in maniera che fosse bootabile da uefi, ho partizionato il drive lasciando una partizione iniziale ti tipo EFI system da 300MiB formattata in fat32 e una seconda partizione per la root tipo x86_64-linux in ext4. Ho installato i pacchetti base e base-devel, montato la partizione efi nella cartella boot della nuova root, mi sono chroottato all'interno della nuova root, configurato il tutto e installato grub, prima con pacman e dopodiche installato con il comando
Codice sorgente - presumibilmente Plain Text

  1. grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch --removable


configurato grub
Codice sorgente - presumibilmente Plain Text

  1. grub-mkconfig -o /boot/grub/grub.cfg


A questo punto se cerco di avviare la distro (dalla entità Arch) mi trovo di fronte a una console grub e sembra che il caricamento del kernel non parta proprio.
Ora il fatto che grub parta mi fa immaginare che la macchina non abbia problemi nell'accedere alla esp creata, ma che grub non sia configurato a dovere per caricare il kernel di Arch.
Ho provato gli ultimi passaggi in molti modi diversi ma il risultato è quasi sempre lo stesso, e non so piu dove sbattere la testa.
Sapreste consigliarmi qualche verifica da fare per capire dove sia il problema?
Vi ringrazio in anticipo e rimango disponibile per fornire qualsiasi altra informazione utile

PM Quote
Avatar
TheDarkJuster (Member)
Guru^2


Messaggi: 1620
Iscritto: 27/09/2013

Segnala al moderatore
Postato alle 18:08
Venerdì, 16/11/2018
Così è come io installo arch nel PC UEFI (la guida l'ho scritta io come propemoria per me):

Codice sorgente - presumibilmente Delphi

  1. # Installation
  2. How to install Arch Linux on a EFI system.
  3.  
  4. ## Disk Setup
  5. Query all attached disks using:
  6.  
  7.     fdisk -l
  8.  
  9. Then partition the correct one (usually /dev/sda):
  10.  
  11.     cfdisk /dev/sda
  12.  
  13. Use an EFI layout
  14.  
  15. The base layout is:
  16.    1. A 300MB EFI partition => /dev/sda1
  17.    2. A xxxGB Linux FS partition => /dev/sda2
  18.    3. A {2x RAM} GB Swap partition => /dev/sda3
  19.  
  20. Write partitions to disk and quit. Following commands are needed to write a new filesystem into previously created partitions:
  21.  
  22.     mkfs.fat -F32 /dev/sda1 # Prepare the EFI boot partition
  23.     mkfs.ext4 /dev/sda2 # Initialize the root partition
  24.     mkswap /dev/sda3 # Initialize the swap filesystem
  25.     swapon /dev/sda3 # Mount Swap on the currently alive system
  26.  
  27. In order to use swap on installation and generate an auto-mount on fstab the swap partition __must__ be mounted on the live system.
  28.  
  29. ## Installation
  30. Mount the Linux root:
  31.  
  32.     mount /dev/sda2 /mnt
  33.  
  34. and install the system:
  35.  
  36.     pacstrap /mnt base
  37.  
  38. Wait for it to download packages and enter chroot on the new system:
  39.  
  40.     arch-chroot /mnt
  41.  
  42. ## Configuration
  43. Configure the hostname and the network name:
  44.  
  45.     echo "archbox" > /etc/hostname
  46.     echo "127.0.0.1   localhost.localdomain       localhost" >> /etc/hosts
  47.     echo "::1         localhost.localdomain       localhost" >> /etc/hosts
  48.     echo "127.0.1.1   archbox.localdomain         archbox" >> /etc/hosts
  49.  
  50. Edit the locale.get file to uncomment *en_US.UTF-8*, *en_US ISO-8859-1* and any other languages you may use:
  51.     nano /etc/locale.gen
  52.     locale-gen
  53.     echo LANG=en_US.UTF-8 > /etc/locale.conf
  54.     export LANG=en_US.UTF-8
  55.  
  56. After that configure the clock:
  57.  
  58.     ln -s /usr/share/zoneinfo/Region/City /etc/localtime
  59.     timedatectl set-ntp true
  60.     hwclock --systohc --utc
  61.  
  62. Change the root password and setup additional users:
  63.  
  64.     passwd
  65.     pacman -S sudo
  66.     useradd -mg users -G wheel,storage,power -s /bin/bash your_new_user
  67.     passwd your_new_user
  68.     chage -d 0 your_new_user
  69.  
  70. Edit */etc/sudoers* ad make sure there is the line __%wheel ALL=(ALL) ALL__ is uncommented
  71.  
  72. Also, the DHCP daemon will __not__ start automatically after reboot, so enable it:
  73.  
  74.     sudo systemctl enable dhcpcd
  75.  
  76. ## Additional software
  77. Make sure to also install linux header, so that dkms modules can automatically be compiled and deployed:
  78.  
  79. pacman -S linux-header
  80.  
  81. __VirtualBox:__ at the end install __virtualbox-guest-utils__ or __virtualbox-guest-utils-nox__ if not using a GUI.
  82.  
  83. ## Bootloader
  84. In this chapter *EFI GRUB* will be installed, so make sure that the system has been started with EFI:
  85.  
  86. ls /sys/firmware/efi/efivars
  87.  
  88. The output of this command __cannot__ be empty if the PC was started with EFI, if the PC is EFI compatible then proceed:
  89.  
  90.     pacman -S grub efibootmgr dosfstools os-prober mtools
  91.     mkdir /boot/EFI
  92.     mount /dev/sda1 /boot/EFI  #Mount FAT32 EFI partition
  93.     grub-install --target=x86_64-efi  --bootloader-id=grub_uefi --recheck # Install grub
  94.     grub-mkconfig -o /boot/grub/grub.cfg # write the GRUB configuration
  95.  
  96. Now the newly installed arch linux can be booted!
  97.  
  98. ## Completed
  99. Arch is now installed, unmount every disk and restart the system:
  100.  
  101.     exit # Close arch-chroot
  102.     umount -a # Unmount every disk
  103.     telinit 6 # Restart


PM Quote
Avatar
Roby94 (Member)
Guru


Messaggi: 1170
Iscritto: 28/12/2009

Segnala al moderatore
Postato alle 19:34
Sabato, 17/11/2018
Grazie TheDarkJuster, anche grazie al tuo script mi sono accorto che l'immagine del kernel viene copiata in /boot al momento del "pacstrap base" quindi è necessario, almeno nel mio caso dove la partizione efi è montata direttamente in /boot, eseguire il mount prima di questo comando, cosi che le immagini finiscano nel esp.
Non mi accorgevo infatti che il comando grub-mkconfig non trovava alcuna immagine del kernel.
Beh almeno questo mistero è risolto, ora sclero un po' sul ambiente desktop e poi si spera di arrivare ad un risultato almeno discreto.

PM Quote
Avatar
TheDarkJuster (Member)
Guru^2


Messaggi: 1620
Iscritto: 27/09/2013

Segnala al moderatore
Postato alle 22:56
Sabato, 17/11/2018
Testo quotato

Postato originariamente da Roby94:
Grazie TheDarkJuster, anche grazie al tuo script mi sono accorto che l'immagine del kernel viene copiata in /boot al momento del "pacstrap base" quindi è necessario, almeno nel mio caso dove la partizione efi è montata direttamente in /boot, eseguire il mount prima di questo comando, cosi che le immagini finiscano nel esp.
Non mi accorgevo infatti che il comando grub-mkconfig non trovava alcuna immagine del kernel.
Beh almeno questo mistero è risolto, ora sclero un po' sul ambiente desktop e poi si spera di arrivare ad un risultato almeno discreto.


Adoro arch perché non c'è un problema che non abbia risolto leggendo arch wiki. Tuttavia quando devo installare arch in un PC di uso quotidiano installo sempre manjaro

PM Quote