[boot] temporisation

Questions et astuces concernant l'installation et la configuration d'archlinux
techno
newbie
Messages : 4
Inscription : mer. 03 mars 2021, 21:40

[boot] temporisation

Message par techno »

Bonsoir
configuration:
Laptop:
2SSD:windows10 et archlinux
bios UEFI

le système de boot n'a jamais fonctionné, normalement:

Code : Tout sélectionner

.../usr/bin/grub-install : information : reading /usr/lib/grub/x86_64-efi/part_gpt.mod.
/usr/bin/grub-install : information : kernel_img=0x55c54d3a5070, kernel_size=0x1e000.
/usr/bin/grub-install : information : the core size is 0x22790.
/usr/bin/grub-install : information : writing 0x25000 bytes.
/usr/bin/grub-install : information : copying `/boot/grub/x86_64-efi/core.efi' -> `/boot/EFI/GRUB/grubx64.efi'.
/usr/bin/grub-install : information : Registering with EFI: distributor = `GRUB', path = `\EFI\GRUB\grubx64.efi', ESP at hostdisk//dev/nvme1n1,gpt1.
/usr/bin/grub-install : information : executing efibootmgr --version </dev/null >/dev/null.
/usr/bin/grub-install : information : executing modprobe -q efivars.
/usr/bin/grub-install : information : executing efibootmgr -c -d /dev/nvme1n1 -p 1 -w -L GRUB -l \EFI\GRUB\grubx64.efi.
Could not prepare Boot variable: No space left on device
/usr/bin/grub-install : erreur : efibootmgr n'a pas réussi à enregistrer l'entrée de démarrage: Erreur d'entrée/sortie.
j'ai toujours utilisé --removable --debug

après j'avais installé grub-customizer mais je ne l'utilise plus.
En ce moment la tempo de /etc/default/grub 180s, n'est pas prise en compte
et je reboote par défaut à 5s.
Comment mettre grub-customizer en dormance pour valider .default/grub ?
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17187
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [boot] temporisation

Message par benjarobin »

Bonjour,
Si grub fonctionne il est inutile d'essayer de le réinstaller.
Modifier un fichier de configuration (dans default) nécessite de régénérer le fichier grub.cfg. grub ne lit que ce fichier, aucun autre.
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
techno
newbie
Messages : 4
Inscription : mer. 03 mars 2021, 21:40

Re: [boot] temporisation

Message par techno »

comment je peux modifier la temporisation de 5s?
,
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17187
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [boot] temporisation

Message par benjarobin »

Comme tu le fais. Il suffit en suite de régénérer le fichier grub.cfg tel que décrit dans le Wiki. Normalement tu l'as fait lors de l'installation de Grub
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
techno
newbie
Messages : 4
Inscription : mer. 03 mars 2021, 21:40

Re: [boot] temporisation

Message par techno »

Bonjour
pareil,
le fichier /etc/default/grub
modifié avec sudo nano ou sudo vim

Code : Tout sélectionner

# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=2
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX=""

GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT=""
GRUB_CMDLINE_LINUX_XEN_REPLACE="earlyprintk=xen"

GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=16384M"
GRUB_CMDLINE_XEN="dom0_max_vcpus=8"

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

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

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE="menu"

# Uncomment to use basic console
GRUB_TERMINAL_INPUT="console"

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT="console"
ou 180s
et la comm

Code : Tout sélectionner

sudo grub-mkconfig -o /boot/grub/grub.cfg
me donne toujours un temps de 5s
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17187
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [boot] temporisation

Message par benjarobin »

Bonjour avec toutes les partitions de montées, peux tu donner la sortie (en root) de :

Code : Tout sélectionner

blkid
cat /etc/fstab
fdisk -l
mount | grep -P "^/dev/"
efibootmgr -v
grep -FH -A 10 -B 10 timeout $(find /boot /efi -name grub.cfg)
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
techno
newbie
Messages : 4
Inscription : mer. 03 mars 2021, 21:40

Re: [boot] temporisation

Message par techno »

blkid

Code : Tout sélectionner

         
/dev/nvme0n1p1: LABEL_FATBOOT="EFI-SYSTEM" LABEL="EFI-SYSTEM" UUID="###D-D24F" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="#####a7f-f0ce-41ab-b067-7cf9f04#####"
/dev/nvme0n1p3: LABEL="WINDOWS" BLOCK_SIZE="512" UUID="CE16903E169#####" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="3a9cf55b-07ff-4cf1-9d82-329b042#####"
/dev/nvme0n1p4: BLOCK_SIZE="512" UUID="CEA42FF3A42#####" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="65789b8a-9605-4706-8cd4-4b36466#####"
/dev/nvme1n1p1: LABEL_FATBOOT="EFI-SYSTEM1" LABEL="EFI-SYSTEM1" UUID="D029-###7" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="#####62e-6b3a-064f-978d-fb7f235#####"
/dev/nvme1n1p2: LABEL_FATBOOT="EFI-SYSTEM2" LABEL="EFI-SYSTEM2" UUID="D10A-###0" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="#####7b2-870c-9c40-af63-a63d3cc#####"
/dev/nvme1n1p3: LABEL="ARCH-RACINE" UUID="07e#####-d953-4b31-8644-23be########" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="#####643-5407-8344-8339-ab93665#####"
/dev/nvme1n1p4: LABEL="SWAP" UUID="bc0#####-0232-4cc8-9c7d-7689########" TYPE="swap" PARTUUID="#####a9f-ff0f-7248-8f47-447aea0#####"
/etc/fstab

Code : Tout sélectionner

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme1n1p3 LABEL=ARCH-RACINE
UUID=07e3f742-d953-4b31-8644-23bea165efd3       /               ext4            rw,relatime     0 1

# /dev/nvme1n1p1 LABEL=EFI-SYSTEM1
UUID=D029-2487          /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro   0 2

# /dev/nvme1n1p4 LABEL=SWAP
UUID=bc0f890d-0232-4cc8-9c7d-7689796b791e       none            swap            defaults        0 0
fdisk -l

Code : Tout sélectionner

Disque /dev/nvme0n1 : 953,87 GiB, 1024209543168 octets, 2000409264 secteurs
Modèle de disque : SAMSUNG MZVLB1T0HBLR-000L7              
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : gpt
Identifiant de disque : #####B9F-020D-4CA0-9098-60AC774#####

Périphérique        Début        Fin   Secteurs Taille Type
/dev/nvme0n1p1       2048     534527     532480   260M Système EFI
/dev/nvme0n1p2     534528     567295      32768    16M Réservé Microsoft
/dev/nvme0n1p3     567296 1998358527 1997791232 952,6G Données de base Microsoft
/dev/nvme0n1p4 1998360576 2000408575    2048000  1000M Environnement de récupération Windows


Disque /dev/nvme1n1 : 953,87 GiB, 1024209543168 octets, 2000409264 secteurs
Modèle de disque : SAMSUNG MZVLB1T0HBLR-000L7              
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : gpt
Identifiant de disque : #####75E-6738-40C9-B100-EBED2A8#####

Périphérique       Début       Fin  Secteurs Taille Type
/dev/nvme1n1p1      2048   1050623   1048576   512M Système EFI
/dev/nvme1n1p2   1050624   2099199   1048576   512M Système EFI
/dev/nvme1n1p3   2099200 945817599 943718400   450G Système de fichiers Linux
/dev/nvme1n1p4 945817600 979372031  33554432    16G Partition d'échange Linux
grep /dev

Code : Tout sélectionner

mount | grep -P "^/dev/"
/dev/nvme1n1p3 on / type ext4 (rw,relatime)
/dev/nvme1n1p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/nvme0n1p3 on /run/media/roger/WINDOWS type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
efibootmgr

Code : Tout sélectionner

efibootmgr -v
BootCurrent: 001C
Timeout: 0 seconds
BootOrder: 0022,0019,0000,001B,001C,001D,001E,001F,0020,0021,001A,0023,0024,0025,0026
Boot0000* Windows Boot Manager  HD(1,GPT,#####a7f-f0ce-41ab-b067-7cf9f#######,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...0................
Boot0010  Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011  Boot Menu     FvFile(126a762d-5758-4fca-8531-201a7f57f850)
Boot0012  Diagnostic Splash Screen      FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0013  Lenovo Diagnostics    FvFile(3f######-0d45-4f80-88dc-26b234958560)
Boot0014  Regulatory Information        FvFile(47######-2622-42b7-a65d-5894169e4d24)
Boot0015  ThinkShield secure wipe       FvFile(3593a0d5-bd52-43a0-808e-cbff5ece2477)
Boot0016  Startup Interrupt Menu        FvFile(f46ee6f4-4785-43a3-923d-7f786c3c8479)
Boot0017  Rescue and Recovery   FvFile(665d3f60-ad3e-4cad-8e26-db46eee9f1b5)
Boot0018  MEBx Hot Key  FvFile(ac6fd56a-3d41-4efd-a1b9-870293811a28)
Boot0019* USB CD        VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot001A* USB FDD       VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot001B* NVMe0 VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c19993################98eb8a400)
Boot001C* NVMe1 VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c19993################98eb8a401)
Boot001D* NVMe2 VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c19993################98eb8a402)
Boot001E* ATA HDD1      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625###############f892ab0f601)
Boot001F* ATA HDD2      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625################892ab0f602)
Boot0020* ATA HDD3      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af62595################92ab0f603)
Boot0021* ATA HDD0      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af6259564################2ab0f600)
Boot0022* USB HDD       VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf3############{#{#{####0803)
Boot0023* PXE BOOT      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84a########################d3803)
Boot0024* LENOVO CLOUD  VenMsg(bc7838d2-0f82-4d60--c068ee                          f42aa74d3650)/Uri(https://download.lenovo.com/pccbbs/cdeploy/efi/boot.efi)
Boot0025  Other CD      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a35406)
Boot0026  Other HDD     VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f606)
Boot0027* IDER BOOT CDROM       PciRoot(0x0)/Pci(0x14,0x0)/USB(15,1)
Boot0028* IDER BOOT Floppy      PciRoot(0x0)/Pci(0x14,0x0)/USB(15,0)
Boot0029* ATA HDD       VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f6)
Boot002A* ATAPI CD      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)
grep /boot /efi

Code : Tout sélectionner

grep -FH -A 10 -B 10 timeout $(find /boot /efi -name grub.cfg)   
find: ‘/efi’: Aucun fichier ou dossier de ce type
/boot/grub/grub.cfg-
/boot/grub/grub.cfg-if loadfont $font ; then
/boot/grub/grub.cfg-  set gfxmode=auto
/boot/grub/grub.cfg-  load_video
/boot/grub/grub.cfg-  insmod gfxterm
/boot/grub/grub.cfg-  set locale_dir=$prefix/locale
/boot/grub/grub.cfg-  set lang=fr_FR
/boot/grub/grub.cfg-  insmod gettext
/boot/grub/grub.cfg-fi
/boot/grub/grub.cfg-terminal_output gfxterm
/boot/grub/grub.cfg:if [ x$feature_timeout_style = xy ] ; then
/boot/grub/grub.cfg:  set timeout_style=menu
/boot/grub/grub.cfg:  set timeout=5
/boot/grub/grub.cfg:# Fallback normal timeout code in case the timeout_style feature is
/boot/grub/grub.cfg-# unavailable.
/boot/grub/grub.cfg-else
/boot/grub/grub.cfg:  set timeout=5
/boot/grub/grub.cfg-fi
/boot/grub/grub.cfg-### END /usr/local/etc/grub.d/00_header ###
/boot/grub/grub.cfg-
/boot/grub/grub.cfg-### BEGIN /usr/local/etc/grub.d/10_linux ###
/boot/grub/grub.cfg-menuentry 'GNU/Linux' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-07e3f742-d953-4b31-8644-23bea165efd3' {
/boot/grub/grub.cfg-    load_video
/boot/grub/grub.cfg-    insmod gzio
/boot/grub/grub.cfg-    insmod part_gpt
/boot/grub/grub.cfg-    insmod fat
/boot/grub/grub.cfg-    search --no-floppy --fs-uuid --set=root D029-2487
Répondre