bonjour,
je viens d'installer un ordinateur ACER MC605
Mon objectif : restaurer une redhat avec un certain partitionnement + GRUB (legacy)
J'ai désactivé dans le BIOS le secure mode pour pouvoir booter sur la clé USB avec l'install d'archlinux
J'ai fait un partitionnement 100MO pour le boot et le reste en LVM
Un moment j'ai voulu passer en MBR normal pour pouvoir utiliser grub-legacy et donc j'ai effacé GPT. Et là disque dur plus reconnu au niveau du BIOS, donc plus possible de booter. J'ai remis GPT avec gdisk mais le disque dur n'est toujours pas reconnu
Du coup que puis je faire ?
je dois mettre UEFI, quelle est la procédure la plus efficace ?
merci
[UEFI] problème
- benjarobin
- Maître du Kyudo
- Messages : 17614
- Inscription : sam. 30 mai 2009, 15:48
- Localisation : Lyon
Re: [UEFI] problème
Il faut que tu configure ton BIOS pour démarrer en legacy et non en UEFI
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Re: [UEFI] problème
bah le problème c'est qu'il n'y a pas cette option dans le bios
il y a juste option pour désactiver secure mode

- benjarobin
- Maître du Kyudo
- Messages : 17614
- Inscription : sam. 30 mai 2009, 15:48
- Localisation : Lyon
Re: [UEFI] problème
Si une telle option n'existe pas, alors tu es obliger d'utiliser GPT avec boot de type UEFI
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Re: [UEFI] problème
tu as un bon tuto à me proposer pour faire cela ?
Re: [UEFI] problème
ok bon voici mon petit tuto avec ma référence, je l'ai un peu amélioré/changé
http://www.tomshardware.co.uk/faq/id-18 ... -uefi.html
gdisk /dev/sda
o ==> pour tout écraser
50 GiB root partition
Command (? for help): n
Partition number (1-128, default 1):
First sector (34-1953525134, default = 2048) or {+-}size{KMGTP}:
Last sector (2048-1953525134, default = 1953525134) or {+-}size{KMGTP}: 50GB
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'
a 30GiB /var partition
Command (? for help): n
Partition number (2-128, default 2):
First sector (195313-1953525134, default = 195320) or {+-}size{KMGTP}:
Last sector (195320-1953525134, default = 1953525134) or {+-}size{KMGTP}: +30GB
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'
a 1024MiB partition for /boot #boot is where the bootloader gonna be installed
Command (? for help): n
Partition number (3-128, default 3):
First sector (34-1953525134, default = 167774208) or {+-}size{KMGTP}:
Last sector (167774208-1953525134, default = 1953525134) or {+-}size{KMGTP}: +1024MiB
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): EF00
Changed type of partition to 'EFI System'
the rest space goes to /home #home
Command (? for help): n
Partition number (4-128, default 4):
First sector (34-1953525134, default = 169871360) or {+-}size{KMGTP}:
Last sector (169871360-1953525134, default = 1953525134) or {+-}size{KMGTP}:
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'
Command (? for help): p
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): CAD2A277-A0E0-43AA-B8CC-9C29EB2D8064
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 104859647 50.0 GiB 8300 Linux filesystem
2 104859648 167774207 30.0 GiB 8300 Linux filesystem
3 167774208 169871359 1024.0 MiB EF00 EFI System
4 169871360 1953525134 850.5 GiB 8300 Linux filesystem
type "w" to make changes
6. Create filesystems
For all partitions except /boot we will use the ext4 file system. Type :
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2
mkfs.ext4 /dev/sda4
mkfs.fat -F32 /dev/sda3 <----- the /boot partition needs to be Fat32
7. Mounting partitions
Type
mount /dev/sda1 /mnt
mkdir /mnt/home
mount /dev/sda4 /mnt/home
mkdir /mnt/var
mount /dev/sda2 /mnt/var
mkdir /mnt/boot
mount /dev/sda3 /mnt/boot
pacstrap -i /mnt base <--------------- this will instal the base system gonna take some time
genfstab -U -p /mnt >> /mnt/etc/fstab
8. Configuring the System
Type : arch-chroot /mnt
8.1 Creathing the locale file
Type : nano /etc/locale.gen
This will enter you into a simple text editor, uncomment (remove the #) from the lines you want from example I use #en_US.UTF-8 UTF-8
Save and exit the file and then again at the command line type : locale-gen
echo LANG=fr_FR.UTF-8 > /etc/locale.conf
export LANG=fr_FR.UTF-8
8.2 Console font and keymap
Type
loadkeys fr-latin1
setfont Lat2-Terminus16
To make them available after reboot, edit vconsole.conf (create it if it does not exist):
Type: nano /etc/vconsole.conf
and then change the values to:
KEYMAP=fr-latin1
FONT=Lat2-Terminus16
8.3 Hostname
Choose your hostname, that's the name of your machine
Type:
echo thunderbird > /etc/hostname
replace myhostname with your desired name.
8.4 Set the root password
Type: passwd
9. Install and configure a bootloader
As we are doing an UEFI installation of archlinux we gonna use Gummiboot as our boot manager.
Type
mount -t efivarfs efivarfs /sys/firmware/efi/efivars ignore if already mounted
pacman -S gummiboot
gummiboot install
You will need to manually create a configuration file to add an entry for Arch Linux to the gummiboot manager. Create /boot/loader/entries/arch.conf and add the following contents, replacing /dev/sdaX with your root partition
Type: nano /boot/loader/entries/arch.conf
and make the file:
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/sda1 rw
10. Unmount the partitions and reboot
Exit from the chroot environment
type : exit
then : umount -R /mnt
then : reboot <--------------remove the dvd/cd so it will now boot from your newely installed OS
11. Post Installation
Congrats you now have Arch Linux installed. At this point you have an awesome black screen command line and now starts the awesome part of Arch Linux, where you decide how your OS will be shaped. You will choose your login manager, windows manager, drivers etc.
http://www.tomshardware.co.uk/faq/id-18 ... -uefi.html
gdisk /dev/sda
o ==> pour tout écraser
50 GiB root partition
Command (? for help): n
Partition number (1-128, default 1):
First sector (34-1953525134, default = 2048) or {+-}size{KMGTP}:
Last sector (2048-1953525134, default = 1953525134) or {+-}size{KMGTP}: 50GB
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'
a 30GiB /var partition
Command (? for help): n
Partition number (2-128, default 2):
First sector (195313-1953525134, default = 195320) or {+-}size{KMGTP}:
Last sector (195320-1953525134, default = 1953525134) or {+-}size{KMGTP}: +30GB
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'
a 1024MiB partition for /boot #boot is where the bootloader gonna be installed
Command (? for help): n
Partition number (3-128, default 3):
First sector (34-1953525134, default = 167774208) or {+-}size{KMGTP}:
Last sector (167774208-1953525134, default = 1953525134) or {+-}size{KMGTP}: +1024MiB
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): EF00
Changed type of partition to 'EFI System'
the rest space goes to /home #home
Command (? for help): n
Partition number (4-128, default 4):
First sector (34-1953525134, default = 169871360) or {+-}size{KMGTP}:
Last sector (169871360-1953525134, default = 1953525134) or {+-}size{KMGTP}:
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'
Command (? for help): p
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): CAD2A277-A0E0-43AA-B8CC-9C29EB2D8064
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 104859647 50.0 GiB 8300 Linux filesystem
2 104859648 167774207 30.0 GiB 8300 Linux filesystem
3 167774208 169871359 1024.0 MiB EF00 EFI System
4 169871360 1953525134 850.5 GiB 8300 Linux filesystem
type "w" to make changes
6. Create filesystems
For all partitions except /boot we will use the ext4 file system. Type :
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2
mkfs.ext4 /dev/sda4
mkfs.fat -F32 /dev/sda3 <----- the /boot partition needs to be Fat32
7. Mounting partitions
Type
mount /dev/sda1 /mnt
mkdir /mnt/home
mount /dev/sda4 /mnt/home
mkdir /mnt/var
mount /dev/sda2 /mnt/var
mkdir /mnt/boot
mount /dev/sda3 /mnt/boot
pacstrap -i /mnt base <--------------- this will instal the base system gonna take some time
genfstab -U -p /mnt >> /mnt/etc/fstab
8. Configuring the System
Type : arch-chroot /mnt
8.1 Creathing the locale file
Type : nano /etc/locale.gen
This will enter you into a simple text editor, uncomment (remove the #) from the lines you want from example I use #en_US.UTF-8 UTF-8
Save and exit the file and then again at the command line type : locale-gen
echo LANG=fr_FR.UTF-8 > /etc/locale.conf
export LANG=fr_FR.UTF-8
8.2 Console font and keymap
Type
loadkeys fr-latin1
setfont Lat2-Terminus16
To make them available after reboot, edit vconsole.conf (create it if it does not exist):
Type: nano /etc/vconsole.conf
and then change the values to:
KEYMAP=fr-latin1
FONT=Lat2-Terminus16
8.3 Hostname
Choose your hostname, that's the name of your machine
Type:
echo thunderbird > /etc/hostname
replace myhostname with your desired name.
8.4 Set the root password
Type: passwd
9. Install and configure a bootloader
As we are doing an UEFI installation of archlinux we gonna use Gummiboot as our boot manager.
Type
mount -t efivarfs efivarfs /sys/firmware/efi/efivars ignore if already mounted
pacman -S gummiboot
gummiboot install
You will need to manually create a configuration file to add an entry for Arch Linux to the gummiboot manager. Create /boot/loader/entries/arch.conf and add the following contents, replacing /dev/sdaX with your root partition
Type: nano /boot/loader/entries/arch.conf
and make the file:
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/sda1 rw
10. Unmount the partitions and reboot
Exit from the chroot environment
type : exit
then : umount -R /mnt
then : reboot <--------------remove the dvd/cd so it will now boot from your newely installed OS
11. Post Installation
Congrats you now have Arch Linux installed. At this point you have an awesome black screen command line and now starts the awesome part of Arch Linux, where you decide how your OS will be shaped. You will choose your login manager, windows manager, drivers etc.