Page 1 sur 1

[INSTALLATION] Nouvelle Installation arch linux (BIOS/LEGACY - GPT - LVM - LVM on LUKS)

Publié : mer. 23 mai 2018, 12:50
par jgaraud
Bonjour a tous,

Comme le titre l'indique je cherche a reinstaller mon systeme Arch Linux avec les caracteristiques suivantes :
- Format : GPT
- Partition : LVM chiffre avec Luks

Seulement je n'arrive pas a configurer mon grub :(
Je dois faire une/des erreur(s) quelque part mais je n'arrive pas a savoir ou ? Car des que je reboot mon systeme il n'arrive pas a lancer ma partition root et affiche le message ci-dessous :

Code : Tout sélectionner

Reboot and Select proper Boot device
or Insert Boot Media in selected Boot device and press a key
Maintenant je commence a me perdre dans toutes les possibilites et je ne vois pas comment avancer.

Ci-dessous ma config :

Code : Tout sélectionner

[root@archiso ~]# parted /dev/sda print
Model: ATA SAMSUNG SSD SM84 (scsi)
Disk /dev/sda: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                 Flags
 1      1049kB  2097kB  1049kB               BIOS boot partition  bios_grub
 2      2097kB  474MB   472MB   ext4         Linux filesystem
 3      474MB   108GB   107GB                Linux LVM            lvm

[root@archiso ~]# lsblk -a /dev/sda 
NAME                  MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                     8:0    0 119.2G  0 disk  
|-sda1                  8:1    0     1M  0 part  
|-sda2                  8:2    0   450M  0 part  /boot
`-sda3                  8:3    0   100G  0 part  
  `-cryptlvm          254:0    0   100G  0 crypt 
    |-vg_arch-lv_tmp  254:1    0     6G  0 lvm   /tmp
    |-vg_arch-lv_var  254:2    0    10G  0 lvm   /var
    |-vg_arch-lv_swap 254:3    0     8G  0 lvm   
    |-vg_arch-lv_data 254:4    0    25G  0 lvm   /data
    |-vg_arch-lv_home 254:5    0    10G  0 lvm   /home
    `-vg_arch-lv_root 254:6    0    25G  0 lvm   /
  
[root@archiso ~]# cat /etc/default/grub
# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
#GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda3:cryptlvm root=/dev/vg_arch/lv_root"
GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda3:cryptlvm"

# Preload both GPT and MBR modules so that they are not missed
#GRUB_PRELOAD_MODULES="part_gpt part_msdos"
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
GRUB_ENABLE_CRYPTODISK=y

# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto
Merci d'avance pour votre aide :)

Re: [INSTALLATION] Nouvelle Installation arch linux (BIOS/LEGACY - GPT - LVM - LVM on LUKS)

Publié : mer. 23 mai 2018, 20:08
par benjarobin
Bonjour,
Ceci est le message de ta carte mère, car il ne "voit" pas Grub d'installé.
Pourquoi avoir utilisé une installation de type MBR sur une table GPT, alors certes on peut le faire (en théorie), mais il est clairement recommandé aujourd'hui d'avoir une installation en EFI.

Re: [INSTALLATION] Nouvelle Installation arch linux (BIOS/LEGACY - GPT - LVM - LVM on LUKS)

Publié : mer. 23 mai 2018, 20:16
par jgaraud
Donc il faut que je recommence ma config depuis le depart :(

Re: [INSTALLATION] Nouvelle Installation arch linux (BIOS/LEGACY - GPT - LVM - LVM on LUKS)

Publié : mer. 23 mai 2018, 20:23
par benjarobin
Tu n'es pas totalement obligé. Tu peux supprimer/fusionner sda1 et sda2 pour créer à la place une partition ESP. Cela implique une réinstallation du kernel linux ainsi que de Grub depuis le chroot du système installé.

Re: [INSTALLATION] Nouvelle Installation arch linux (BIOS/LEGACY - GPT - LVM - LVM on LUKS)

Publié : mer. 23 mai 2018, 20:28
par jgaraud
Ok je vais essaye ¢a :)

[EDIT] C'est mieux j'ai acces au grub :) par contre j'ai une erreur

Code : Tout sélectionner

Welcome to GRUB!

error: disk 'lvmid/xxxx-xxxx-xxxx-xxxx' not found. 
Entering rescue mode... 
Mais j'ai acces au grub et ca c'est bon :)

[SOLVED] Nouvelle Installation arch linux (BIOS/LEGACY - GPT - LVM - LVM on LUKS)

Publié : mer. 23 mai 2018, 22:41
par jgaraud
Au final j'ai suivis ton conseil puis cette installe qui utilise systemd pour le boot et non le grub : https://www.youtube.com/watch?v=a1AXHpog9iI

Merci pour ton aide :)