Page 1 sur 1
[Systemd-boot] remplacer Grub par Systemd-boot
Publié : mar. 25 mars 2025, 08:26
par Breizil29
Bonjour à tous, je cherche a remplacer Grub par Systemd-boot mais je n'arrive pas a créer de nouvelle entrée, j'en ai déjà une utilisé par NixOs,
NixOs et Arch sont chacun sur un disque.
Mon partionnement :
nvme0n1
|-->nvme0n1p1
|-->nvme0n1p2
|-->rootvg-rootlv
|-->rootvg-homelv
Je lance l'ISO ->
mkfs.fat -F 32 /dev/nvme0n1p1
mount /dev/rootvg-rootlv /mnt
mount --mkdir /dev/nvme0n1p1 /mnt/boot
Je Chroot ->
pacman -S linux # sinon mon dossier /boot est vide
bootctl install
efibootmgr --verbose # Et là pas de nouvelle entrée seule celle de NixOs
# Si j'avais une nouvelle entrée ->
vim boot/loader/loader.conf
default arch.conf
timeout 3
console-mode max
editor no
vim boot/loader/entries/arch.conf #create
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/rootvg-rootlv rw
vim boot/loader/entries/arch-fallback.conf #create
title Arch Linux (fallback initramfs)
linux /vmlinuz-linux
initrd /initramfs-linux-fallback.img
options root=/dev/rootvg-rootlv rw
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mar. 25 mars 2025, 12:01
par Breizil29
Je pense que :
Saisie manuelle à l'aide d'efibootmgr
Si la bootctl installcommande échoue, vous pouvez créer une entrée de démarrage UEFI manuellement à l'aide de efibootmgr :
# efibootmgr --create --disk /dev/sdX --part Y --loader '\EFI\systemd\systemd-bootx64.efi' --label "Linux Boot Manager" --unicode
En Chroot
##################################################################################################################
Actuellement je suis en "Emergency mode" et en allant en maintenance puis ls /boot :
dossier -> efi
dossier -> grub
initramfs ......
initramfs................
vmlinuz-linux
Et mon entrée se nomme : Boot0015* UEFI OS
Et efibootmgr me donne 2 : Boot0015* UEFI OS
Boot0019* UEFI OS
Et Grub n'est pas installé.
Et c'est l'écran d'acceuil de Systemd-Boot
Je comprend plus rien.
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mar. 25 mars 2025, 15:13
par benjarobin
Bonjour,
Pour être honnête, tes messages ne sont pas très clair...
Il n'y a pas de bonne raison pour que la commande
bootctl install
échoue (et si elle échoue, c'est quoi sa sortie ?), donc tu ne devrais pas à avoir rajouter l'entrée de systemd-boot à la main.
Attention de ne pas mélanger les entrées de démarrage de kernel/initramfs/paramètre kernel et les entrées en NVRAM qui indique comment lancer systemd-boot.
Quelle est la sortie (en root) de :
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mar. 25 mars 2025, 22:35
par Breizil29
bootctl status :
Code : Tout sélectionner
System:
Firmware: UEFI 2.60 (American Megatrends 5.12)
Firmware Arch: x64
Secure Boot: disabled
TPM2 Support: no
Measured UKI: no
Boot into FW: supported
Current Boot Loader:
Product: systemd-boot 257.4-1-arch
Features: ✓ Boot counting
✓ Menu timeout control
✓ One-shot menu timeout control
✓ Default entry control
✓ One-shot entry control
✓ Support for XBOOTLDR partition
✓ Support for passing random seed to OS
✓ Load drop-in drivers
✓ Support Type #1 sort-key field
✓ Support @saved pseudo-entry
✓ Support Type #1 devicetree field
✓ Enroll SecureBoot keys
✓ Retain SHIM protocols
✓ Menu can be disabled
✓ Multi-Profile UKIs are supported
✓ Boot loader set partition information
Partition: /dev/disk/by-partuuid/0ad98f39-4929-427a-8c40-4294beb9e0a5
Loader: └─/EFI/SYSTEMD/SYSTEMD-BOOTX64.EFI
Current Entry: arch.conf
Random Seed:
System Token: set
Boot Loaders Listed in EFI Variables:
Title: linux Boot Manager
ID: 0x0000
Status: active, boot-order
Partition: /dev/disk/by-partuuid/0ad98f39-4929-427a-8c40-4294beb9e0a5
File: └─/EFI/SYSTEMD/SYSTEMD-BOOTX64.EFI
Title: NixOS-boot-efi
ID: 0x0004
Status: active, boot-order
Partition: /dev/disk/by-partuuid/0ad98f39-4929-427a-8c40-4294beb9e0a5
File: └─/EFI/NIXOS-BOOT-EFI/GRUBX64.EFI
Title: UEFI OS
ID: 0x0015
Status: active, boot-order
Partition: /dev/disk/by-partuuid/0ad98f39-4929-427a-8c40-4294beb9e0a5
File: └─/EFI/BOOT/BOOTX64.EFI
Title: UEFI OS
ID: 0x0019
Status: active, boot-order
Partition: /dev/disk/by-partuuid/50d689ee-7fde-49bc-9d1c-8bf77e427c98
File: └─/EFI/BOOT/BOOTX64.EFI
efibootmgr :
Code : Tout sélectionner
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0004,0015,0019,0009,0017,0018,0012
Boot0000* linux Boot Manager HD(1,GPT,0ad98f39-4929-427a-8c40-4294beb9e0a5,0x800,0x96000)/\EFI\SYSTEMD\SYSTEMD-BOOTX64.EFI
Boot0004* NixOS-boot-efi HD(1,GPT,0ad98f39-4929-427a-8c40-4294beb9e0a5,0x800,0x96000)/\EFI\NIXOS-BOOT-EFI\GRUBX64.EFI
Boot0009* Hard Drive BBS(HD,,0x0)0000474f00004e4fa7000000010000006f0053005400310030003000300044004d003000310030002d0032004500500031003000320000000501090002000000007fff040002010c00d041030a0000000001010600001703120a000400ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce620002000200020002000200020002000200020002000200039005a00500041004e0034005a00430000007fff04000000424f00004e4fa7000000010000006f0053005400320030003000300044004d003000300036002d00320044004d0031003600340000000501090002000000007fff040002010c00d041030a0000000001010600001703120a000500ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce620002000200020002000200020002000200020002000200034005a0042005a004c0035004500440000007fff04000000424f00004e4f95000000010000006b004300540035003000300050003300530053004400380000000501090002000000007fff040002010c00d041030a0000000001010600001b01010600000003171000010000006479a76d800001527fff040001042e00ef47642dc93ba041ac194d51d01b4ce632003200340033004500360037004400370041004100410000007fff04000000424f00004e4fb50000000100000077004c006500780061007200200053005300440020004e004d0036003200300020003200350036004700420000000501090002000000007fff040002010c00d041030a0000000001010600001d0101060000000317100001000000caf25b03600004717fff040001043a00ef47642dc93ba041ac194d51d01b4ce64e004a00390030003400310052003000300033003000320030005000310031003100300000007fff04000000424f
Boot0012* USB BBS(HD,,0x0)0000474f00004e4fa3000000010000005900530065006100670061007400650020004200610063006b00750070002b002000480075006200200042004b002000440037003800310000000501090002000000007fff040002010c00d041030a000000000101060000140305060015000305060000007fff040001042600ef47642dc93ba041ac194d51d01b4ce64e0041003800540057004d005100340000007fff04000000424f00004e4f8d000000010000006b00530061006e004400690073006b0000000501090002000000007fff040002010c00d041030a000000000101060000140305060010007fff040001043e00ef47642dc93ba041ac194d51d01b4ce63400430035003300300030003000310031003800300038003100370031003000390031003700350000007fff04000000424f
Boot0015* UEFI OS HD(1,GPT,0ad98f39-4929-427a-8c40-4294beb9e0a5,0x800,0x96000)/\EFI\BOOT\BOOTX64.EFI0000424f
Boot0017* UEFI: SanDisk, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(1,MBR,0xac23c20a,0x800,0x1c93590)0000424f
Boot0018* UEFI: SanDisk, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(2,MBR,0xac23c20a,0x1c93d90,0x10000)0000424f
Boot0019* UEFI OS HD(1,GPT,50d689ee-7fde-49bc-9d1c-8bf77e427c98,0x800,0x96000)/\EFI\BOOT\BOOTX64.EFI0000424f
Je ne peux pas installer gdisk
##################################################################################################################################################################################
J'ai installé ArchLinux sur le laptop de mon père avec Systemd-Boot comme bootloader et ça c'est bien passé après un gros ménager (efibootmgr) dans les boots inutiles.
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mar. 25 mars 2025, 22:57
par benjarobin
Et donc quel est le problème, systemd-boot semble bien installé... Et pourquoi tu ne peux pas installer gdisk ? Au pire tu donnes la sortie avec fdisk.
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mer. 26 mars 2025, 06:54
par Breizil29
Le Problème est que je suis en "emergency mode" et du coup je n'est pas de connextion internet donc je ne peux pas installer de logiciciels,
Autre problème je ne peux plus accèder a NixOs, l'entrée Boot0000/nvme1n1 m'emmène sur Arch.
Tu as raison je démarre bien avec systemd-boot.
fdisk -l /dev/nvme0n1 :
Code : Tout sélectionner
Disk /dev/nvme0n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: CT500P3SSD8
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 97A88C2D-8EB5-4910-9DAF-CC9A6F5F91C5
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 616447 614400 300M EFI System
/dev/nvme0n1p2 616448 976773119 976156672 465.5G Linux filesystem
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mer. 26 mars 2025, 10:35
par Breizil29
J'ai réparé le boot de NixOs.
Et du coup dans le "AZUS UEFI BIOS Utility" :
Boot Priority :
Linux Boot Manager (Lexar SSD NM620 256GB)
Linux Boot Manager (CT500P3SSD8)
...........
Les 2 entrées ci-dessus me dirige vers NixOs
A chaque fois que je rends opérationnelle le BootLoader d'un OS, il modifie les 2 entrées dispo dans l'ordi.
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mer. 26 mars 2025, 11:34
par Breizil29
Bonne nouvelle, j'ai les entrées de Arch et de Nixos dans l'écran d'accueil de Systemd-Boot.
Par contre les 2 OS démarre en Emergency Mode, le /boot ne se monte pas.
NixOs :
[ TIME ] Timed out waiting for device /dev/disk/by-uuid/BBA0-0A43.
[ DEPEND ] Dependency failed for /boot.
Info :
/boot/loader/entries : J'ai toutes mes générations de NixOs + mes 2 entrées ArchLinux
ArchLinux :
[ TIME ] Timed out waiting for device /dev/disk/by-uuid/6722-0A6C.
[ DEPEND ] Dependency failed for /boot.
Info :
pas de dossier /loader
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mer. 26 mars 2025, 13:51
par benjarobin
Bonjour, peux tu donner la sortie (depuis emergency shell), pour les 2 OS de :
Note, tu peux prendre une photo si c'est plus simple pour toi...
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mer. 26 mars 2025, 17:57
par Breizil29
NixOs :
cat /etc/fstab :
Code : Tout sélectionner
building Nix...
building the system configuration...
Failed to connect to system scope bus via local transport: No such file or directory
efiSysMountPoint = '/boot' is not a mounted partition. Is the path configured correctly?
Traceback (most recent call last):
File "/nix/store/5xv8g58iy3cwl9kk6ca2df26sy9zqdhv-systemd-boot/bin/systemd-boot", line 435, in <module>
main()
File "/nix/store/5xv8g58iy3cwl9kk6ca2df26sy9zqdhv-systemd-boot/bin/systemd-boot", line 415, in main
run([CHECK_MOUNTPOINTS])
File "/nix/store/5xv8g58iy3cwl9kk6ca2df26sy9zqdhv-systemd-boot/bin/systemd-boot", line 58, in run
return subprocess.run(cmd, check=True, text=True, stdout=stdout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/lhpwdis5hkyljz1d200bj1s6g51ljq9k-python3-3.12.8/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/nix/store/a2hs6kw6znn1l618a2dwn49qczd2ri07-check-mountpoints']' returned non-zero exit status 1.
Failed to install bootloader
warning: error(s) occurred while switching to the new configuration
# This is a generated file. Do not edit!
#
# To make changes, edit the fileSystems and swapDevices NixOS options
# in your /etc/nixos/configuration.nix file.
#
# <file system> <mount point> <type> <options> <dump> <pass>
# Filesystems.
/dev/disk/by-uuid/470e3c7e-5674-4b8f-9572-1848128c42ac / ext4 x-initrd.mount 0 1
/dev/disk/by-uuid/BBA0-0A43 /boot vfat fmask=0077,dmask=0077 0 2
/dev/disk/by-uuid/5eed0a7f-4c3a-490d-aabc-6c91e2404a5b /home ext4 defaults 0 2
/dev/disk/by-uuid/76BF-63AA /home/gg/Music exfat users,nofail,uid=gg,gid=users,fmask=113,dmask=002 0 2
/dev/disk/by-uuid/FEAA-FD15 /home/gg/Stocks exfat users,nofail,uid=gg,gid=users,fmask=113,dmask=002 0 2
/dev/disk/by-uuid/58CD-8A03 /home/gg/Videos/Series exfat users,nofail,uid=gg,gid=users,fmask=113,dmask=002 0 2
/dev/disk/by-uuid/567D-5703 /home/gg/Videos/Series\040de\040Films exfat users,nofail,uid=gg,gid=users,fmask=113,dmask=002 0 2
blkid :
Code : Tout sélectionner
Disk /dev/nvme1n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: Lexar SSD NM620 256GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0A4D78E8-D424-42BF-89AB-E7223D1CC6D7
Device Start End Sectors Size Type
/dev/nvme1n1p1 2048 616447 614400 300M EFI System
/dev/nvme1n1p2 616448 500117503 499501056 238.2G Linux filesystem
Disk /dev/nvme1n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: Lexar SSD NM620 256GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0A4D78E8-D424-42BF-89AB-E7223D1CC6D7
Device Start End Sectors Size Type
/dev/nvme1n1p1 2048 616447 614400 300M EFI System
/dev/nvme1n1p2 616448 500117503 499501056 238.2G Linux filesystem
/dev/mapper/rootvg-homelv: UUID="3705d5e7-6b87-41cf-a49e-4ebdf58e2736" BLOCK_SIZE="4096" TYPE="ext4"
/dev/nvme0n1p1: UUID="22D1-39BD" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="4f4c6ce2-3bbb-4c56-874c-9b21f70ef58a"
/dev/nvme0n1p2: UUID="XRZvYt-kxvf-RoR6-eYyT-TCg4-Tbwr-ZAdysU" TYPE="LVM2_member" PARTUUID="e61360a3-738c-488b-9e52-3bed6d71a52a"
/dev/sdd2: SEC_TYPE="msdos" LABEL_FATBOOT="VTOYEFI" LABEL="VTOYEFI" UUID="8281-15CC" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="ac23c20a-02"
/dev/sdd1: LABEL="Ventoy" UUID="7372-0AAA" BLOCK_SIZE="512" TYPE="exfat" PARTUUID="ac23c20a-01"
/dev/sdb1: LABEL="S. de Films" UUID="567D-5703" BLOCK_SIZE="512" TYPE="exfat" PARTUUID="04c49dfc-01"
/dev/mapper/archvg-rootlv: UUID="470e3c7e-5674-4b8f-9572-1848128c42ac" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/rootvg-rootlv: UUID="291ebfc2-aae1-4c1b-a021-f018443591da" BLOCK_SIZE="4096" TYPE="ext4"
/dev/sde: LABEL="32G" UUID="9CAF-F6E3" BLOCK_SIZE="512" TYPE="exfat"
/dev/sdc1: LABEL="Series" UUID="58CD-8A03" BLOCK_SIZE="512" TYPE="exfat" PARTLABEL="Basic data partition" PARTUUID="c7ef1993-e36c-4b00-a806-71f7b4516a8c"
/dev/nvme1n1p2: UUID="cbccAV-ay7K-N8q3-71AI-A43f-EsBA-xpRwor" TYPE="LVM2_member" PARTUUID="c3333d1c-dea7-4d47-845b-0127980b3121"
/dev/nvme1n1p1: UUID="CD4B-9A42" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="0ad98f39-4929-427a-8c40-4294beb9e0a5"
/dev/sda2: LABEL="Music" UUID="76BF-63AA" BLOCK_SIZE="512" TYPE="exfat" PARTUUID="7d5e5459-02"
/dev/sda1: LABEL="Stocks" UUID="FEAA-FD15" BLOCK_SIZE="512" TYPE="exfat" PARTUUID="7d5e5459-01"
/dev/zram0: LABEL="zram0" UUID="2d962670-fa36-40ee-be57-e0fc8bd60a2b" TYPE="swap"
/dev/mapper/archvg-homelv: UUID="5eed0a7f-4c3a-490d-aabc-6c91e2404a5b" BLOCK_SIZE="4096" TYPE="ext4"
dmesg | grep "Command line" :
Code : Tout sélectionner
[ 0.000000] Command line: initrd=\EFI\nixos\4ca5x8ch07x043kgjnab8hqam9lhbd3x-initrd-linux-6.12.19-initrd.efi init=/nix/store/fzwa4zxr8yc403v7fqf2yskvvjp73fa1-nixos-system-NixOs-25.05beta770807.a84ebe20c6bc/init loglevel=4
Linux NixOs 6.12.19 #1-NixOS SMP PREEMPT_DYNAMIC Thu Mar 13 12:02:20 UTC 2025 x86_64 GNU/Linux
[ 0.000000] Command line: initrd=\EFI\nixos\4ca5x8ch07x043kgjnab8hqam9lhbd3x-initrd-linux-6.12.19-initrd.efi init=/nix/store/fzwa4zxr8yc403v7fqf2yskvvjp73fa1-nixos-system-NixOs-25.05beta770807.a84ebe20c6bc/init loglevel=4
uname -a :
Code : Tout sélectionner
Linux NixOs 6.12.19 #1-NixOS SMP PREEMPT_DYNAMIC Thu Mar 13 12:02:20 UTC 2025 x86_64 GNU/Linux
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mer. 26 mars 2025, 18:02
par Breizil29
ArchLinux :
cat /etc/fstab :
Code : Tout sélectionner
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mapper/rootvg-rootlv
UUID=291ebfc2-aae1-4c1b-a021-f018443591da / ext4 rw,relatime 0 1
# /dev/nvme0n1p1
UUID=6722-0A6C /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/mapper/rootvg-homelv
UUID=3705d5e7-6b87-41cf-a49e-4ebdf58e2736 /home ext4 rw,relatime 0 2
LABEL=Stocks /home/gg/Stocks auto user,nosuid,nodev,nofail,x-gvfs-show,uid=gg,gid=gg,fmask=0113,dmask=0002 0 0
LABEL=Music /home/gg/Music auto user,nosuid,nodev,nofail,x-gvfs-show,uid=gg,gid=gg,fmask=0113,dmask=0002 0 0
LABEL=Series /home/gg/Videos/Series auto user,nosuid,nodev,nofail,x-gvfs-show,uid=gg,gid=gg,fmask=0113,dmask=0002 0 0
LABEL=S.\040de\040Films /home/gg/Videos/Series\040de\040Films auto user,nosuid,nodev,nofail,x-gvfs-show,uid=gg,gid=gg,fmask=0113,dmask=0002 0 0
blkid :
Code : Tout sélectionner
/dev/mapper/archvg-rootlv: UUID="470e3c7e-5674-4b8f-9572-1848128c42ac" BLOCK_SIZE="4096" TYPE="ext4"
/dev/nvme0n1p1: UUID="22D1-39BD" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="4f4c6ce2-3bbb-4c56-874c-9b21f70ef58a"
/dev/nvme0n1p2: UUID="XRZvYt-kxvf-RoR6-eYyT-TCg4-Tbwr-ZAdysU" TYPE="LVM2_member" PARTUUID="e61360a3-738c-488b-9e52-3bed6d71a52a"
/dev/sdd: LABEL="32G" UUID="9CAF-F6E3" BLOCK_SIZE="512" TYPE="exfat"
/dev/sdb2: LABEL="Music" UUID="76BF-63AA" BLOCK_SIZE="512" TYPE="exfat" PARTUUID="7d5e5459-02"
/dev/sdb1: LABEL="Stocks" UUID="FEAA-FD15" BLOCK_SIZE="512" TYPE="exfat" PARTUUID="7d5e5459-01"
/dev/mapper/rootvg-homelv: UUID="3705d5e7-6b87-41cf-a49e-4ebdf58e2736" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/rootvg-rootlv: UUID="291ebfc2-aae1-4c1b-a021-f018443591da" BLOCK_SIZE="4096" TYPE="ext4"
/dev/sde2: SEC_TYPE="msdos" LABEL_FATBOOT="VTOYEFI" LABEL="VTOYEFI" UUID="8281-15CC" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="ac23c20a-02"
/dev/sde1: LABEL="Ventoy" UUID="7372-0AAA" BLOCK_SIZE="512" TYPE="exfat" PARTUUID="ac23c20a-01"
/dev/sdc1: LABEL="Series" UUID="58CD-8A03" BLOCK_SIZE="512" TYPE="exfat" PARTLABEL="Basic data partition" PARTUUID="c7ef1993-e36c-4b00-a806-71f7b4516a8c"
/dev/nvme1n1p2: UUID="cbccAV-ay7K-N8q3-71AI-A43f-EsBA-xpRwor" TYPE="LVM2_member" PARTUUID="c3333d1c-dea7-4d47-845b-0127980b3121"
/dev/nvme1n1p1: UUID="CD4B-9A42" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="0ad98f39-4929-427a-8c40-4294beb9e0a5"
/dev/sda1: LABEL="S. de Films" UUID="567D-5703" BLOCK_SIZE="512" TYPE="exfat" PARTUUID="04c49dfc-01"
/dev/mapper/archvg-homelv: UUID="5eed0a7f-4c3a-490d-aabc-6c91e2404a5b" BLOCK_SIZE="4096" TYPE="ext4"
dmesg | grep "Command line" :
Code : Tout sélectionner
[ 0.000000] Command line: initrd=\initramfs-linux.img root=/dev/rootvg/rootlv rw
uname -a :
Code : Tout sélectionner
Linux ArchLinux 6.13.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 23 Mar 2025 17:17:30 +0000 x86_64 GNU/Linux
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mer. 26 mars 2025, 19:11
par benjarobin
Je ne sais pas comment tu as fait, mais tes 2 fstab (Arch et NixOs) ne sont pas bon pour la partition boot. Corrige la ligne (en modifiant la valeur de l'UUID) du fstab et cela devrait mieux fonctionner
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mer. 26 mars 2025, 19:29
par Breizil29
C'est peut-être une connerie que je vais dire mais c'est normale il y en a 2, chacun sur un nvme
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mer. 26 mars 2025, 20:25
par benjarobin
Sauf que ce n'est quand même pas les bonnes valeurs d'UUID... Cf la sortie de blkid qui affiche l'UUID de la partition, il n'y a pas de correspondance pour la partition de boot, que je pense tu as dû formater à un moment...
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mer. 26 mars 2025, 20:41
par Breizil29
oui j'ai formaté.
Je ne peut pas changer le fstab de NixOs il est en lecture seul.
Et testé la modif sur Arch, tjs en Emergency Mode.
Je vais désinstaller Nixos.
J'ai formaté les partitions de NixOs.
efibootmgr :
Code : Tout sélectionner
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0019,0000,0015,0004,0009,0017,0018,0012
Boot0000* Linux Boot Manager HD(1,GPT,0ad98f39-4929-427a-8c40-4294beb9e0a5,0x800,0x96000)/\EFI\SYSTEMD\SYSTEMD-BOOTX64.EFI
Boot0001* Linux Boot Manager HD(1,GPT,4f4c6ce2-3bbb-4c56-874c-9b21f70ef58a,0x800,0x96000)/\EFI\SYSTEMD\SYSTEMD-BOOTX64.EFI
Boot0004* NixOS-boot-efi HD(1,GPT,0ad98f39-4929-427a-8c40-4294beb9e0a5,0x800,0x96000)/\EFI\NIXOS-BOOT-EFI\GRUBX64.EFI
Boot0009* Hard Drive BBS(HD,,0x0)0000474f00004e4fa7000000010000006f0053005400310030003000300044004d003000310030002d0032004500500031003000320000000501090002000000007fff040002010c00d041030a0000000001010600001703120a000400ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce620002000200020002000200020002000200020002000200039005a00500041004e0034005a00430000007fff04000000424f00004e4fa7000000010000006f0053005400320030003000300044004d003000300036002d00320044004d0031003600340000000501090002000000007fff040002010c00d041030a0000000001010600001703120a000500ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce620002000200020002000200020002000200020002000200034005a0042005a004c0035004500440000007fff04000000424f00004e4f95000000010000006b004300540035003000300050003300530053004400380000000501090002000000007fff040002010c00d041030a0000000001010600001b01010600000003171000010000006479a76d800001527fff040001042e00ef47642dc93ba041ac194d51d01b4ce632003200340033004500360037004400370041004100410000007fff04000000424f00004e4fb50000000100000077004c006500780061007200200053005300440020004e004d0036003200300020003200350036004700420000000501090002000000007fff040002010c00d041030a0000000001010600001d0101060000000317100001000000caf25b03600004717fff040001043a00ef47642dc93ba041ac194d51d01b4ce64e004a00390030003400310052003000300033003000320030005000310031003100300000007fff04000000424f
Boot0012* USB BBS(HD,,0x0)0000474f00004e4fa3000000010000005900530065006100670061007400650020004200610063006b00750070002b002000480075006200200042004b002000440037003800310000000501090002000000007fff040002010c00d041030a000000000101060000140305060015000305060000007fff040001042600ef47642dc93ba041ac194d51d01b4ce64e0041003800540057004d005100340000007fff04000000424f00004e4f8d000000010000006b00530061006e004400690073006b0000000501090002000000007fff040002010c00d041030a000000000101060000140305060010007fff040001043e00ef47642dc93ba041ac194d51d01b4ce63400430035003300300030003000310031003800300038003100370031003000390031003700350000007fff04000000424f
Boot0015* UEFI OS HD(1,GPT,0ad98f39-4929-427a-8c40-4294beb9e0a5,0x800,0x96000)/\EFI\BOOT\BOOTX64.EFI0000424f
Boot0017* UEFI: SanDisk, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(1,MBR,0xac23c20a,0x800,0x1c93590)0000424f
Boot0018* UEFI: SanDisk, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(2,MBR,0xac23c20a,0x1c93d90,0x10000)0000424f
Boot0019* UEFI OS HD(1,GPT,4f4c6ce2-3bbb-4c56-874c-9b21f70ef58a,0x800,0x96000)/\EFI\BOOT\BOOTX64.EFI0000424f
Je voudrais faire un peu de ménage, en faisant le bourrin je supprimerais Boot 0000, 0001, 0004, 0015, 0019. Et réinstaller Systemd-Boot sur Arch.
Ou 1 Linux Boot Manager, Boot0004, et 1 UEFI OS. Et tester voir ou ça en est.
Re: [Systemd-boot] remplacer Grub par Systemd-boot
Publié : mer. 26 mars 2025, 23:41
par Breizil29
C'est réparé Arch démarre avec Systemd-Boot et juste ces entrés que j'ai créées.
Comment :
ISO-arch-> mkfs.fat -> mount root et boot -> arch-chroot -> correspondance des UUID -> bootcl install -> etc......
efibootmgr :
Code : Tout sélectionner
BootCurrent: 0016
Timeout: 1 seconds
BootOrder: 0016,0009,0014,0015,0012
Boot0009* Hard Drive BBS(HD,,0x0)0000474f00004e4fa7000000010000006f0053005400310030003000300044004d003000310030002d0032004500500031003000320000000501090002000000007fff040002010c00d041030a0000000001010600001703120a000400ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce620002000200020002000200020002000200020002000200039005a00500041004e0034005a00430000007fff04000000424f00004e4fa7000000010000006f0053005400320030003000300044004d003000300036002d00320044004d0031003600340000000501090002000000007fff040002010c00d041030a0000000001010600001703120a000500ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce620002000200020002000200020002000200020002000200034005a0042005a004c0035004500440000007fff04000000424f00004e4f95000000010000006b004300540035003000300050003300530053004400380000000501090002000000007fff040002010c00d041030a0000000001010600001b01010600000003171000010000006479a76d800001527fff040001042e00ef47642dc93ba041ac194d51d01b4ce632003200340033004500360037004400370041004100410000007fff04000000424f00004e4fb50000000100000077004c006500780061007200200053005300440020004e004d0036003200300020003200350036004700420000000501090002000000007fff040002010c00d041030a0000000001010600001d0101060000000317100001000000caf25b03600004717fff040001043a00ef47642dc93ba041ac194d51d01b4ce64e004a00390030003400310052003000300033003000320030005000310031003100300000007fff04000000424f
Boot0012* USB BBS(HD,,0x0)0000474f00004e4fa3000000010000005900530065006100670061007400650020004200610063006b00750070002b002000480075006200200042004b002000440037003800310000000501090002000000007fff040002010c00d041030a000000000101060000140305060015000305060000007fff040001042600ef47642dc93ba041ac194d51d01b4ce64e0041003800540057004d005100340000007fff04000000424f00004e4f8d000000010000006b00530061006e004400690073006b0000000501090002000000007fff040002010c00d041030a000000000101060000140305060010007fff040001043e00ef47642dc93ba041ac194d51d01b4ce63400430035003300300030003000310031003800300038003100370031003000390031003700350000007fff04000000424f
Boot0014* UEFI: SanDisk, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(1,MBR,0xac23c20a,0x800,0x1c93590)0000424f
Boot0015* UEFI: SanDisk, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(2,MBR,0xac23c20a,0x1c93d90,0x10000)0000424f
Boot0016* UEFI OS HD(1,GPT,4f4c6ce2-3bbb-4c56-874c-9b21f70ef58a,0x800,0x96000)/\EFI\BOOT\BOOTX64.EFI0000424f
SUITE : installer un autre OS avec Systemd-Boot et voir comment se il se comporte.
Merci benjarobin pour ton aide.