#1 Le 09/12/2023, à 20:59
- GB_Informatics
Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Bonjour,
Je voudrais réinstaller le GRUB de mon Ubuntu. Pour cela, je passe par une clé live usb.
J'ai déjà effectué les commandes ci-dessous :
sudo mount /dev/sdnvme0n1p7 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
Ensuite je bloque ppur conitnuer avec les commandes ci-dessous car je n'arrive pas à trouver la lettre du lecteur qui contient le GRUB.
Now install, check, and update grub. Now it's only necessary to add
the drive letter (usually a) to replace X, for example: grub-install /dev/sda or grub-install –recheck /dev/sda.
Follow the instructions below:
grub-install /dev/sdX
grub-install --recheck /dev/sdX
update-grub
Pouvez-vous m'aider afin d'avancer s'il vous plait ? Merci
Dernière modification par GB_Informatics (Le 18/12/2023, à 19:25)
Hors ligne
#2 Le 09/12/2023, à 21:17
- geole
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Bonsoir.
Pourquoi ne pas utiliser boot-repair qui a automatisé cette séquence?
Si ton installation est en EFI, tu n'as rien à indiquer. Cependant, tu peux l'indiquer, mais tu n'as pas monté la partition efi.
Sinon, ton disque est /dev/nvme01n1
Dernière modification par geole (Le 09/12/2023, à 21:22)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#3 Le 09/12/2023, à 21:50
- GB_Informatics
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Je ne savais pas.
Ce n'est pas plutot /dev/nvme0p1n1 ?
Pour faire simple depuis qu'il y a eu une mise à jour d'Ubuntu ou j'ai vu GRUB, Windows ne démarre plus, c'est la raison pour laquelle je souhaite réinstaller le GRUB
Hors ligne
#4 Le 09/12/2023, à 22:59
- geole
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Si ton ubuntu fonctionne, ce ne sert à rien de réinstaller sa structure de boot.
Il faut juste comprendre pourquoi windows a disparu.
Regarde si ubuntu le détecte avec cette commande
sudo os-prober
si oui, mets à jour
sudo update-grub
Fais un boot-info et donne l'URL générée. (Voir documentation boot-info)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#5 Le 09/12/2023, à 23:08
- GB_Informatics
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Actuellement je suis sur la clé usb live, il me retourne
/dev/nvme0n1p2@/efi//Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/nvme0n1p7:Ubuntu 22.04.3 LTS (22.04):Ubuntu:linux
Dernière modification par GB_Informatics (Le 09/12/2023, à 23:12)
Hors ligne
#6 Le 09/12/2023, à 23:19
- geole
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Lance-donc boot-repair, réparation recommandée
Dernière modification par geole (Le 09/12/2023, à 23:23)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#7 Le 10/12/2023, à 18:53
- GB_Informatics
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Bonsoir, toujours en étant sur la clé USB live ?
Hors ligne
#8 Le 10/12/2023, à 19:01
- iznobe
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Salut , oui .
sans live , boot-repair ne peut pas fonctionner , car il doit proceder , lui aussi , au chroot que tu tentais de faire a la main dans ton 1er message .
Dernière modification par iznobe (Le 10/12/2023, à 19:02)
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
En ligne
#9 Le 10/12/2023, à 19:32
- GB_Informatics
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
C'est fait mais toujours pareil avec ce message https://postimg.cc/6ybZfKD1
Hors ligne
#10 Le 10/12/2023, à 19:37
- iznobe
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
le lien que tu as mis ne fonctionne pas .
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
En ligne
#11 Le 10/12/2023, à 19:42
- geole
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Merci de poster le compte-rendu de réparation....
S'il n'y en a pas, fais un boot-info
Si ton ordinateur est un portable, donne sa référence commerciale.
Je n'aime pas le message nvram is locked. Normalement boot-repair sait traiter en prenant des solutions de secours. Depuis hier, il sait refabriquer la structure de boot de windows si nécessaire. Mais je ne connais pas encore le mode d'emploi pour le faire. Il va falloir documenter.
A priori
Démarrage avancé
Autres options
Cocher la case "Réparer les fichiers de démarrage de windows"
Dernière modification par geole (Le 10/12/2023, à 19:52)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#12 Le 10/12/2023, à 20:19
- GB_Informatics
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
je reposte avec le lien https://i.postimg.cc/QdhqsxSs/20231210-192741.jpg
Juste pour précision , ubuntu démarre très bien jusqu'à présent. C'est windows qui bloque. J'ai un ASUS ROG Zephyrus M GM501GS-EI005T.
boot-repair-4ppa2059 [20231210_1911]
============================== Boot Info Summary ===============================
=> Windows 7/8/10/11/2012 is installed in the MBR of /dev/nvme0n1.
=> No boot loader is installed in the MBR of /dev/sda.
=> Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 34
of the same hard drive for core.img. core.img is at this location and
looks for (,2)/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
offsetio extcmd macho elf file gettext boot bufio verifiers crypto
terminal normal datetime date mmap drivemap blocklist archelp newc
vga_text relocator video chain ntldr search_label search_fs_file
search_fs_uuid search keylayouts at_keyboard pci usb usb_keyboard gcry_md5
hashsum gcry_crc gzio xzio lzopio lspci fshelp ext2 xfs acpi reboot
iso9660 gcry_sha1 div udf exfat font diskfilter raid6rec zstd btrfs ventoy
read halt video_fb vbe linux linux16 test true sleep echo bitmap gfxterm
bitmap_scale trig video_colors gfxmenu videotest videoinfo functional_test
videotest_checksum video_cirrus video_bochs vga minicmd help configfile tr
biosdisk disk ls tar zfs squash4 pbkdf2 gcry_sha512 password_pbkdf2
all_video png jpeg part_gpt part_msdos fat ntfs loopback
gfxterm_background procfs gfxterm_menu smbios
---------------------------------------------------------------------------
nvme0n1p1: _____________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
nvme0n1p2: _____________________________________________________________________
File system: vfat
Boot sector type: Windows 8/10/11/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /EFI/refind/refind.conf /efi/Boot/bkpbootx64.efi
/efi/Boot/bootx64.efi /efi/Boot/fbx64.efi
/efi/Boot/mmx64.efi /efi/refind/refind_x64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
/efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
/efi/refind/drivers_x64/ext4_x64.efi
nvme0n1p3: _____________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
nvme0n1p4: _____________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 10 or 11
Boot files: /Windows/System32/winload.exe
nvme0n1p5: _____________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
nvme0n1p6: _____________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
nvme0n1p7: _____________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 22.04.3 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/refind_linux.conf
sda1: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda2: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda3: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sdb1: __________________________________________________________________________
File system: exfat
Boot sector type: -
Boot sector info:
Mounting failed: mount: /mnt/BootInfo/sdb1: /dev/sdb1 déjà monté ou point de montage actif.
sdb2: __________________________________________________________________________
File system: iso9660
Boot sector type: Grub2 (v1.99-2.00)
Boot sector info: Grub2 (v1.99-2.00) is installed in the boot sector of
sdb2 and looks at sector 0 of the same hard drive for
core.img, but core.img can not be found at this
location.
Operating System:
Boot files: /boot/grub/grub.cfg
================================ 2 OS detected =================================
OS#1: Ubuntu 22.04.3 LTS on nvme0n1p7
OS#2: Windows 10 or 11 on nvme0n1p4
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: GP104M [GeForce GTX 1070 Mobile] CoffeeLake-H GT2 [UHD Graphics 630] EFI VGA from NVIDIA Corporation Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.3 LTS, jammy, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: GM501GS.317(5.13) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0001,0000,0002
Boot0000* ubuntu HD(2,GPT,7eadb9e6-3859-40f5-a46b-7640ff1a8e79,0xfa000,0x32000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0001* Windows Boot Manager HD(2,GPT,7eadb9e6-3859-40f5-a46b-7640ff1a8e79,0xfa000,0x32000)/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.}...4................
Boot0002* UEFI: SanDisk, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,3460b46e-dee4-4f94-b8d5-baad5e2eda60,0x1dbffd8,0x10000)..BO
64349b3622c65f495a99dbf6102496e3 nvme0n1p2/Boot/bkpbootx64.efi
64349b3622c65f495a99dbf6102496e3 nvme0n1p2/Boot/bootx64.efi
a9c517741ac31962d7feb152948ad1ee nvme0n1p2/Boot/fbx64.efi
a660182adef313615746a665966d2ccc nvme0n1p2/Boot/mmx64.efi
c47f12e2fc367f05c19a6973be06fe13 nvme0n1p2/refind/refind_x64.efi
a1da253696a304dce6b4668b70151c0e nvme0n1p2/ubuntu/grubx64.efi
a660182adef313615746a665966d2ccc nvme0n1p2/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3 nvme0n1p2/ubuntu/shimx64.efi
fa22a6c8ee8e95aa8b3be1fbb74aa3c4 nvme0n1p2/Microsoft/Boot/bootmgfw.efi
4b034dff827330822875b739319ec584 nvme0n1p2/Microsoft/Boot/bootmgr.efi
f60ab6be0f8990177902872728193921 nvme0n1p2/refind/drivers_x64/ext4_x64.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
nvme0n1 : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
sda : is-GPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, no-wind, 34 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
nvme0n1p7 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, end-after-100GB
nvme0n1p5 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
nvme0n1p1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
nvme0n1p6 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
nvme0n1p4 : is-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
nvme0n1p2 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda2 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
sda1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
Partitions info (2/3): _________________________________________________________
nvme0n1p7 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p5 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
nvme0n1p1 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
nvme0n1p6 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p4 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p2 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
nvme0n1p7 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, nvme0n1
nvme0n1p5 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p6 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p4 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, with--usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p2 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
sda2 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda1 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 3.49 TiB, 3840755982336 bytes, 7501476528 sectors
Disk identifier: A7833FCB-984D-4D87-99F3-BF60DD6E0651
Start End Sectors Size Type
sda1 34 7501214350 7501214317 3.5T Microsoft LDM data
sda2 7501214351 7501216398 2048 1M Microsoft LDM metadata
sda3 7501216399 7501476494 260096 127M Microsoft reserved
Disk nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors
Disk identifier: E7995D17-BAA8-42A3-B0B3-991886B49FA2
Start End Sectors Size Type
nvme0n1p1 2048 1023999 1021952 499M Windows recovery environment
nvme0n1p2 1024000 1228799 204800 100M EFI System
nvme0n1p3 1228800 1261567 32768 16M Microsoft reserved
nvme0n1p4 1261568 1878123663 1876862096 895G Microsoft basic data
nvme0n1p5 1878124544 1879279615 1155072 564M Windows recovery environment
nvme0n1p6 1879279616 3791078063 1911798448 911.6G Microsoft basic data
nvme0n1p7 3791079424 4000796671 209717248 100G Linux filesystem
Disk sdb: 14.91 GiB, 16005464064 bytes, 31260672 sectors
Disk identifier: 9C33036A-11D6-42DD-B6BA-087243FFBD61
Start End Sectors Size Type
sdb1 2048 31195095 31193048 14.9G Microsoft basic data
sdb2 31195096 31260631 65536 32M Microsoft basic data
Disk mapper/ventoy: 4.69 GiB, 5037662208 bytes, 9839184 sectors
Disk identifier: F45E2FA1-C5A6-4D79-876F-C8245AF921E0
Start End Sectors Size Type
mapper/ventoy-part1 64 9828451 9828388 4.7G Microsoft basic data
mapper/ventoy-part2 9828452 9838519 10068 4.9M EFI System
mapper/ventoy-part3 9838520 9839119 600 300K Microsoft basic data
parted -lm (filtered): _________________________________________________________
sda:3841GB:scsi:512:512:gpt:ATA SAMSUNG MZ7LM3T8:;
1:17.4kB:3841GB:3841GB::LDM data partition:;
2:3841GB:3841GB:1049kB::LDM metadata partition:;
3:3841GB:3841GB:133MB::Microsoft reserved partition:msftres;
sdb:16.0GB:scsi:512:512:gpt:SanDisk Cruzer Blade:;
1:1049kB:16.0GB:16.0GB::Ventoy:msftdata;
2:16.0GB:16.0GB:33.6MB:fat16:VTOYEFI:hidden, msftdata;
mapper/ventoy:5038MB:dm:512:512:gpt:Linux device-mapper (linear):;
1:32.8kB:5032MB:5032MB::ISO9660:hidden, msftdata;
2:5032MB:5037MB:5155kB::Appended2:boot, esp;
3:5037MB:5038MB:307kB::Gap1:hidden, msftdata;
nvme0n1:2048GB:nvme:512:512:gpt:Sabrent:;
1:1049kB:524MB:523MB:ntfs:Basic data partition:hidden, diag;
2:524MB:629MB:105MB:fat32:EFI system partition:boot, esp;
3:629MB:646MB:16.8MB::Microsoft reserved partition:msftres;
4:646MB:962GB:961GB:ntfs:Basic data partition:msftdata;
5:962GB:962GB:591MB:ntfs::hidden, diag;
6:962GB:1941GB:979GB:ntfs:Basic data partition:msftdata;
7:1941GB:2048GB:107GB:ext4::;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1
├─sda2
└─sda3
sdb
├─sdb1 exfat 4E21-0000 ea2a5bfe-596d-47fa-a7e0-f1d8b71fa2eb Ventoy Ventoy
│ └─ventoy
└─sdb2 iso9660 2023-08-08-01-19-05-00 Ubuntu 22.04.3 LTS amd64
nvme0n1
├─nvme0n1p1 ntfs 00A27EAFA27EA8B4 a042e4e6-2200-4590-a658-83049f16c872 Basic data partition
├─nvme0n1p2 vfat 6A70-D7AA 7eadb9e6-3859-40f5-a46b-7640ff1a8e79 EFI system partition
├─nvme0n1p3 f9d709d3-c4d2-4e62-89ba-eace3fa7d0ad Microsoft reserved partition
├─nvme0n1p4 ntfs C80071BC0071B254 b87581ee-0b01-4f25-a9c0-a36fa946aec6 OS Basic data partition
├─nvme0n1p5 ntfs 28F0CDCBF0CD9F84 97b78564-ce7c-49c6-99a7-e189dd3333de
├─nvme0n1p6 ntfs 4CCA22C3CA22A8E2 718e63b1-5f8c-4318-b230-e1710ca444fd Data Basic data partition
└─nvme0n1p7 ext4 beebddc9-bea5-485b-909c-d1fb46d90b45 ee4cd597-d365-4b8d-901c-78b69eaf3eb5
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/mapper/ventoy 0 100% /cdrom
/dev/nvme0n1p1 489M 2% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p2 63M 34% /mnt/boot-sav/nvme0n1p2
/dev/nvme0n1p4 583.4G 35% /mnt/boot-sav/nvme0n1p4
/dev/nvme0n1p5 50.2M 91% /mnt/boot-sav/nvme0n1p5
/dev/nvme0n1p6 611.1G 33% /mnt/boot-sav/nvme0n1p6
/dev/nvme0n1p7 29.6G 65% /mnt/boot-sav/nvme0n1p7
/dev/sdb2 0 100% /media/ubuntu/Ubuntu 22.04.3 LTS amd64
/dev/sdb2 0 100% /media/ubuntu/Ubuntu 22.04.3 LTS amd641
/dev/sdb2 0 100% /media/ubuntu/Ubuntu 22.04.3 LTS amd642
Mount options (filtered): ______________________________________________________
============================== ls -R /dev/mapper/ ==============================
/dev/mapper:
control
ventoy
================= nvme0n1p2/EFI/refind/refind.conf (filtered) ==================
timeout 20
use_nvram false
menuentry Linux {
icon EFI/refind/icons/os_linux.png
volume 904404F8-B481-440C-A1E3-11A5A954E601
loader bzImage-3.3.0-rc7
initrd initrd-3.3.0.img
options "ro root=UUID=5f96cafa-e0a7-4057-b18f-fa709db5b837"
disabled
}
menuentry "Arch Linux" {
icon /EFI/refind/icons/os_arch.png
volume "Arch Linux"
loader /boot/vmlinuz-linux
initrd /boot/initramfs-linux.img
options "root=PARTUUID=5028fa50-0079-4c40-b240-abfaf28693ea rw add_efi_memmap"
submenuentry "Boot using fallback initramfs" {
initrd /boot/initramfs-linux-fallback.img
}
submenuentry "Boot to terminal" {
add_options "systemd.unit=multi-user.target"
}
disabled
}
menuentry Ubuntu {
loader /EFI/ubuntu/grubx64.efi
icon /EFI/refind/icons/os_linux.png
disabled
}
menuentry "ELILO" {
loader \EFI\elilo\elilo.efi
disabled
}
menuentry "Windows 7" {
loader \EFI\Microsoft\Boot\bootmgfw.efi
disabled
}
menuentry "Windows via shell script" {
icon \EFI\refind\icons\os_win.png
loader \EFI\tools\shell.efi
options "fs0:\EFI\tools\launch_windows.nsh"
disabled
}
menuentry "My macOS" {
icon \EFI\refind\icons\os_mac.png
volume "macOS boot"
loader \System\Library\CoreServices\boot.efi
disabled
}
menuentry "macOS via BootNext" {
icon /EFI/refind/icons/os_mac.png
firmware_bootnum 80
disabled
}
=================== nvme0n1p2/efi/ubuntu/grub.cfg (filtered) ===================
search.fs_uuid beebddc9-bea5-485b-909c-d1fb46d90b45 root
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
=================== nvme0n1p7/boot/grub/grub.cfg (filtered) ====================
Ubuntu beebddc9-bea5-485b-909c-d1fb46d90b45
Ubuntu, with Linux 6.2.0-37-generic beebddc9-bea5-485b-909c-d1fb46d90b45
Ubuntu, with Linux 6.2.0-32-generic beebddc9-bea5-485b-909c-d1fb46d90b45
Windows Boot Manager (on nvme0n1p2) osprober-efi-6A70-D7AA
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
======================== nvme0n1p7/etc/fstab (filtered) ========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p7 during installation
UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p2 during installation
UUID=6A70-D7AA /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
==================== nvme0n1p7/etc/default/grub (filtered) =====================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 resume_offset=13899775"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false
================= nvme0n1p7/boot/refind_linux.conf (filtered) ==================
"Boot with standard options" "root=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 ro quiet splash resume=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 resume_offset=13899775 vt.handoff=7"
"Boot to single-user mode" "root=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 ro quiet splash resume=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 resume_offset=13899775 vt.handoff=7 single"
"Boot with minimal options" "ro root=/dev/nvme0n1p7"
================= nvme0n1p7: Location of files loaded by Grub ==================
GiB - GB File Fragment(s)
1839,315544128 = 1974,950027264 boot/grub/grub.cfg 1
1896,381011963 = 2036,223606784 boot/vmlinuz 2
1826,545070648 = 1961,237835776 boot/vmlinuz-6.2.0-32-generic 1
1896,381011963 = 2036,223606784 boot/vmlinuz-6.2.0-37-generic 2
1826,545070648 = 1961,237835776 boot/vmlinuz.old 1
1875,719722748 = 2014,038716416 boot/initrd.img 5
1887,456405640 = 2026,640883712 boot/initrd.img-6.2.0-32-generic 1
1875,719722748 = 2014,038716416 boot/initrd.img-6.2.0-37-generic 5
1887,456405640 = 2026,640883712 boot/initrd.img.old 1
=================== nvme0n1p7: ls -l /etc/grub.d/ (filtered) ===================
-rwxr-xr-x 1 root root 18683 Dec 18 2022 10_linux
-rwxr-xr-x 1 root root 43031 Dec 18 2022 10_linux_zfs
-rwxr-xr-x 1 root root 14387 Dec 18 2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Dec 18 2022 30_os-prober
-rwxr-xr-x 1 root root 1372 Dec 18 2022 30_uefi-firmware
-rwxr-xr-x 1 root root 700 May 17 2023 35_fwupd
-rwxr-xr-x 1 root root 214 Dec 18 2022 40_custom
-rwxr-xr-x 1 root root 215 Dec 18 2022 41_custom
====================== sdb2/boot/grub/grub.cfg (filtered) ======================
==================== sdb2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
================================= User choice ==================================
Is there RAID on this computer? no
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub-efi of
nvme0n1p7,
using the following options: nvme0n1p2/boot/efi
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.3 LTS entry (nvme0n1p2/efi/****/grub****.efi (**** will be updated in the final message) file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\****\grub****.efi (**** will be updated in the final message)
Dernière modification par GB_Informatics (Le 10/12/2023, à 20:20)
Hors ligne
#13 Le 10/12/2023, à 22:03
- geole
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Extrait de ton dernier boot-info.
BootOrder: 0001,0000,0002
Boot0000* ubuntu HD(2,GPT,7eadb9e6-3859-40f5-a46b-7640ff1a8e79,0xfa000,0x32000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0001* Windows Boot Manager HD(2,GPT,7eadb9e6-3859-40f5-a46b-7640ff1a8e79,0xfa000,0x32000)/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.}...4................
Boot0002* UEFI: SanDisk, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,3460b46e-dee4-4f94-b8d5-baad5e2eda60,0x1dbffd8,0x10000)..BO
On voit que l'ordinateur boote maintenant automatiquement sur windows (bootorder 0001)
Si windows ne foncttionne pas, contacte les équipes microsoft.
Si tu veux rebooter avec ubuntu, reboote avec le support d'installation et remets-le prioritaire avec cette commande
sudo efibootmgr -o 0 1
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#14 Le 11/12/2023, à 08:49
- GB_Informatics
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Bonjour c'est normal, c'est avec les manipulations faites. Je pense que la mise à jour Ubuntu 22.04.3 LTS est la cause du dysfonctionnement mais comment la réparer
Hors ligne
#15 Le 11/12/2023, à 09:50
- geole
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Bonjour.
A tout hasard, lance boot-repair.
Fais la réparation conseillée.
Poste son retour.
Tente de rebooter.
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#16 Le 11/12/2023, à 20:44
- GB_Informatics
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
toujours sous usb live
je fais ?
sudo os-prober
si oui, mets à jour
sudo update-grub
Hors ligne
#17 Le 11/12/2023, à 21:26
- geole
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
En live USB on utilise boot-repair.
Ce que tu proposes, se fait depuis un ubuntu opérationnel.
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#18 Le 12/12/2023, à 21:28
- GB_Informatics
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Pour sudo os-prober = /dev/nvme0n1p2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
Pour sudo update-grub =
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.0-37-generic
Found initrd image: /boot/initrd.img-6.2.0-37-generic
Found linux image: /boot/vmlinuz-6.2.0-32-generic
Found initrd image: /boot/initrd.img-6.2.0-32-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
Pour le retour après la réparation : (pour le rédémarrage j'ai eu un écran noir avec un trait clignotant en haut à gauche encore une fois.. et toujours pareil au démarrage)
boot-repair-4ppa2061 [20231212_2007]
============================= Boot Repair Summary ==============================
User choice:
Is there RAID on this computer? no
modprobe: FATAL: Module efivars not found in directory /lib/modules/6.2.0-26-generic
Recommended repair: ____________________________________________________________
The default repair of the Boot-Repair utility will reinstall the grub-efi of
nvme0n1p7,
using the following options: /dev/nvme0n1p2/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups
rm /mnt/boot-sav/nvme0n1p2/efi/Boot/bootx64.efi
mv /mnt/boot-sav/nvme0n1p2/efi/Boot/bkpbootx64.efi /mnt/boot-sav/nvme0n1p2/efi/Boot/bootx64.efi
Mount /dev/nvme0n1p2 on /mnt/boot-sav/nvme0n1p7/boot/efi
=================== Reinstall the grub-efi of /dev/nvme0n1p7 ===================
chroot /mnt/boot-sav/nvme0n1p7 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7.2
modprobe: FATAL: Module efivars not found in directory /lib/modules/6.2.0-26-generic
chroot /mnt/boot-sav/nvme0n1p7 modprobe efivars
chroot /mnt/boot-sav/nvme0n1p7 efibootmgr -v before grub install
EFI variables are not supported on this system.
chroot /mnt/boot-sav/nvme0n1p7 uname -r
6.2.0-26-generic
chroot /mnt/boot-sav/nvme0n1p7 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
Refind detected on nvme0n1p2
df /dev/nvme0n1p2
mv /mnt/boot-sav/nvme0n1p7/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/nvme0n1p7/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/nvme0n1p7/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/nvme0n1p7/boot/efi/EFI/Boot/bootx64.efi
chroot /mnt/boot-sav/nvme0n1p7 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
chroot /mnt/boot-sav/nvme0n1p7 efibootmgr -v after grub install
EFI variables are not supported on this system.
Error: NVram is locked (Ubuntu not found in efibootmgr). Veuillez indiquer ce message à boot.repair@gmail.com
chroot /mnt/boot-sav/nvme0n1p7 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.0-37-generic
Found initrd image: /boot/initrd.img-6.2.0-37-generic
Found linux image: /boot/vmlinuz-6.2.0-32-generic
Found initrd image: /boot/initrd.img-6.2.0-32-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sdb2. Check your device.map.
Found Windows Boot Manager on /dev/nvme0n1p2@/EFI/Microsoft/Boot/bootmgfw.efi
Unhide GRUB boot menu in nvme0n1p7/boot/grub/grub.cfg
Une erreur est survenue pendant la réparation.
Error: NVram is locked (Ubuntu not found in efibootmgr). Veuillez indiquer ce message à boot.repair@gmail.com
Locked-NVram détecté.
============================ Boot Info After Repair ============================
=> Windows 7/8/10/11/2012 is installed in the MBR of /dev/nvme0n1.
=> No boot loader is installed in the MBR of /dev/sda.
=> Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 34
of the same hard drive for core.img. core.img is at this location and
looks for (,2)/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
offsetio extcmd macho elf file gettext boot bufio verifiers crypto
terminal normal datetime date mmap drivemap blocklist archelp newc
vga_text relocator video chain ntldr search_label search_fs_file
search_fs_uuid search keylayouts at_keyboard pci usb usb_keyboard gcry_md5
hashsum gcry_crc gzio xzio lzopio lspci fshelp ext2 xfs acpi reboot
iso9660 gcry_sha1 div udf exfat font diskfilter raid6rec zstd btrfs ventoy
read halt video_fb vbe linux linux16 test true sleep echo bitmap gfxterm
bitmap_scale trig video_colors gfxmenu videotest videoinfo functional_test
videotest_checksum video_cirrus video_bochs vga minicmd help configfile tr
biosdisk disk ls tar zfs squash4 pbkdf2 gcry_sha512 password_pbkdf2
all_video png jpeg part_gpt part_msdos fat ntfs loopback
gfxterm_background procfs gfxterm_menu smbios
---------------------------------------------------------------------------
nvme0n1p1: _____________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
nvme0n1p2: _____________________________________________________________________
File system: vfat
Boot sector type: Windows 8/10/11/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /EFI/refind/refind.conf /efi/Boot/bkpbootx64.efi
/efi/Boot/bootx64.efi /efi/Boot/fbx64.efi
/efi/Boot/mmx64.efi /efi/refind/refind_x64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
/efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
/efi/refind/drivers_x64/ext4_x64.efi
nvme0n1p3: _____________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
nvme0n1p4: _____________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 10 or 11
Boot files: /Windows/System32/winload.exe
nvme0n1p5: _____________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
nvme0n1p6: _____________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
nvme0n1p7: _____________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 22.04.3 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/refind_linux.conf
sda1: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda2: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda3: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sdb1: __________________________________________________________________________
File system: exfat
Boot sector type: -
Boot sector info:
Mounting failed: mount: /mnt/BootInfo/sdb1: /dev/sdb1 déjà monté ou point de montage actif.
sdb2: __________________________________________________________________________
File system: iso9660
Boot sector type: Grub2 (v1.99-2.00)
Boot sector info: Grub2 (v1.99-2.00) is installed in the boot sector of
sdb2 and looks at sector 0 of the same hard drive for
core.img, but core.img can not be found at this
location.
Operating System:
Boot files: /boot/grub/grub.cfg
================================ 2 OS detected =================================
OS#1: Ubuntu 22.04.3 LTS on /dev/nvme0n1p7
OS#2: Windows 10 or 11 on /dev/nvme0n1p4
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: GP104M [GeForce GTX 1070 Mobile] CoffeeLake-H GT2 [UHD Graphics 630] EFI VGA from NVIDIA Corporation Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.3 LTS, jammy, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: GM501GS.317(5.13) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0000,0001,0002
Boot0000* ubuntu HD(2,GPT,7eadb9e6-3859-40f5-a46b-7640ff1a8e79,0xfa000,0x32000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0001* Windows Boot Manager HD(2,GPT,7eadb9e6-3859-40f5-a46b-7640ff1a8e79,0xfa000,0x32000)/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.}...4................
Boot0002* UEFI: SanDisk, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,3460b46e-dee4-4f94-b8d5-baad5e2eda60,0x1dbffd8,0x10000)..BO
64349b3622c65f495a99dbf6102496e3 /dev/nvme0n1p2/Boot/bkpbootx64.efi
64349b3622c65f495a99dbf6102496e3 /dev/nvme0n1p2/Boot/bootx64.efi
a9c517741ac31962d7feb152948ad1ee /dev/nvme0n1p2/Boot/fbx64.efi
a660182adef313615746a665966d2ccc /dev/nvme0n1p2/Boot/mmx64.efi
c47f12e2fc367f05c19a6973be06fe13 /dev/nvme0n1p2/refind/refind_x64.efi
a1da253696a304dce6b4668b70151c0e /dev/nvme0n1p2/ubuntu/grubx64.efi
a660182adef313615746a665966d2ccc /dev/nvme0n1p2/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3 /dev/nvme0n1p2/ubuntu/shimx64.efi
fa22a6c8ee8e95aa8b3be1fbb74aa3c4 /dev/nvme0n1p2/Microsoft/Boot/bootmgfw.efi
4b034dff827330822875b739319ec584 /dev/nvme0n1p2/Microsoft/Boot/bootmgr.efi
f60ab6be0f8990177902872728193921 /dev/nvme0n1p2/refind/drivers_x64/ext4_x64.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
nvme0n1 : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
sda : is-GPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, no-wind, 34 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
nvme0n1p7 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, end-after-100GB
nvme0n1p5 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
nvme0n1p1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
nvme0n1p6 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
nvme0n1p4 : is-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
nvme0n1p2 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda2 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
sda1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
Partitions info (2/3): _________________________________________________________
nvme0n1p7 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p5 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
nvme0n1p1 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
nvme0n1p6 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p4 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p2 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
nvme0n1p7 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, nvme0n1
nvme0n1p5 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p6 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p4 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, with--usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p2 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
sda2 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda1 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 3.49 TiB, 3840755982336 bytes, 7501476528 sectors
Disk identifier: A7833FCB-984D-4D87-99F3-BF60DD6E0651
Start End Sectors Size Type
sda1 34 7501214350 7501214317 3.5T Microsoft LDM data
sda2 7501214351 7501216398 2048 1M Microsoft LDM metadata
sda3 7501216399 7501476494 260096 127M Microsoft reserved
Disk nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors
Disk identifier: E7995D17-BAA8-42A3-B0B3-991886B49FA2
Start End Sectors Size Type
nvme0n1p1 2048 1023999 1021952 499M Windows recovery environment
nvme0n1p2 1024000 1228799 204800 100M EFI System
nvme0n1p3 1228800 1261567 32768 16M Microsoft reserved
nvme0n1p4 1261568 1878123663 1876862096 895G Microsoft basic data
nvme0n1p5 1878124544 1879279615 1155072 564M Windows recovery environment
nvme0n1p6 1879279616 3791078063 1911798448 911.6G Microsoft basic data
nvme0n1p7 3791079424 4000796671 209717248 100G Linux filesystem
Disk sdb: 14.91 GiB, 16005464064 bytes, 31260672 sectors
Disk identifier: 9C33036A-11D6-42DD-B6BA-087243FFBD61
Start End Sectors Size Type
sdb1 2048 31195095 31193048 14.9G Microsoft basic data
sdb2 31195096 31260631 65536 32M Microsoft basic data
Disk mapper/ventoy: 4.69 GiB, 5037662208 bytes, 9839184 sectors
Disk identifier: F45E2FA1-C5A6-4D79-876F-C8245AF921E0
Start End Sectors Size Type
mapper/ventoy-part1 64 9828451 9828388 4.7G Microsoft basic data
mapper/ventoy-part2 9828452 9838519 10068 4.9M EFI System
mapper/ventoy-part3 9838520 9839119 600 300K Microsoft basic data
parted -lm (filtered): _________________________________________________________
sda:3841GB:scsi:512:512:gpt:ATA SAMSUNG MZ7LM3T8:;
1:17.4kB:3841GB:3841GB::LDM data partition:;
2:3841GB:3841GB:1049kB::LDM metadata partition:;
3:3841GB:3841GB:133MB::Microsoft reserved partition:msftres;
sdb:16.0GB:scsi:512:512:gpt:SanDisk Cruzer Blade:;
1:1049kB:16.0GB:16.0GB::Ventoy:msftdata;
2:16.0GB:16.0GB:33.6MB:fat16:VTOYEFI:hidden, msftdata;
mapper/ventoy:5038MB:dm:512:512:gpt:Linux device-mapper (linear):;
1:32.8kB:5032MB:5032MB::ISO9660:hidden, msftdata;
2:5032MB:5037MB:5155kB::Appended2:boot, esp;
3:5037MB:5038MB:307kB::Gap1:hidden, msftdata;
nvme0n1:2048GB:nvme:512:512:gpt:Sabrent:;
1:1049kB:524MB:523MB:ntfs:Basic data partition:hidden, diag;
2:524MB:629MB:105MB:fat32:EFI system partition:boot, esp;
3:629MB:646MB:16.8MB::Microsoft reserved partition:msftres;
4:646MB:962GB:961GB:ntfs:Basic data partition:msftdata;
5:962GB:962GB:591MB:ntfs::hidden, diag;
6:962GB:1941GB:979GB:ntfs:Basic data partition:msftdata;
7:1941GB:2048GB:107GB:ext4::;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1
├─sda2
└─sda3
sdb
├─sdb1 exfat 4E21-0000 ea2a5bfe-596d-47fa-a7e0-f1d8b71fa2eb Ventoy Ventoy
│ └─ventoy
└─sdb2 iso9660 2023-08-08-01-19-05-00 Ubuntu 22.04.3 LTS amd64
nvme0n1
├─nvme0n1p1 ntfs 00A27EAFA27EA8B4 a042e4e6-2200-4590-a658-83049f16c872 Basic data partition
├─nvme0n1p2 vfat 6A70-D7AA 7eadb9e6-3859-40f5-a46b-7640ff1a8e79 EFI system partition
├─nvme0n1p3 f9d709d3-c4d2-4e62-89ba-eace3fa7d0ad Microsoft reserved partition
├─nvme0n1p4 ntfs C80071BC0071B254 b87581ee-0b01-4f25-a9c0-a36fa946aec6 OS Basic data partition
├─nvme0n1p5 ntfs 28F0CDCBF0CD9F84 97b78564-ce7c-49c6-99a7-e189dd3333de
├─nvme0n1p6 ntfs 4CCA22C3CA22A8E2 718e63b1-5f8c-4318-b230-e1710ca444fd Data Basic data partition
└─nvme0n1p7 ext4 beebddc9-bea5-485b-909c-d1fb46d90b45 ee4cd597-d365-4b8d-901c-78b69eaf3eb5
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/mapper/ventoy 0 100% /cdrom
/dev/nvme0n1p1 489M 2% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p2 63M 34% /mnt/boot-sav/nvme0n1p2
/dev/nvme0n1p4 583.4G 35% /mnt/boot-sav/nvme0n1p4
/dev/nvme0n1p5 50.2M 91% /mnt/boot-sav/nvme0n1p5
/dev/nvme0n1p6 611.1G 33% /mnt/boot-sav/nvme0n1p6
/dev/nvme0n1p7 30.2G 64% /mnt/boot-sav/nvme0n1p7
/dev/sdb2 0 100% /media/ubuntu/Ubuntu 22.04.3 LTS amd64
/dev/sdb2 0 100% /media/ubuntu/Ubuntu 22.04.3 LTS amd641
Mount options (filtered): ______________________________________________________
/dev/mapper/ventoy iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
/dev/nvme0n1p1 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p2 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/nvme0n1p4 fuseblk ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p5 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p6 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p7 ext4 rw,relatime
/dev/sdb2 iso9660 ro,nosuid,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
/dev/sdb2 iso9660 ro,nosuid,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
============================== ls -R /dev/mapper/ ==============================
/dev/mapper:
control
ventoy
================= nvme0n1p2/EFI/refind/refind.conf (filtered) ==================
timeout 20
use_nvram false
menuentry Linux {
icon EFI/refind/icons/os_linux.png
volume 904404F8-B481-440C-A1E3-11A5A954E601
loader bzImage-3.3.0-rc7
initrd initrd-3.3.0.img
options "ro root=UUID=5f96cafa-e0a7-4057-b18f-fa709db5b837"
disabled
}
menuentry "Arch Linux" {
icon /EFI/refind/icons/os_arch.png
volume "Arch Linux"
loader /boot/vmlinuz-linux
initrd /boot/initramfs-linux.img
options "root=PARTUUID=5028fa50-0079-4c40-b240-abfaf28693ea rw add_efi_memmap"
submenuentry "Boot using fallback initramfs" {
initrd /boot/initramfs-linux-fallback.img
}
submenuentry "Boot to terminal" {
add_options "systemd.unit=multi-user.target"
}
disabled
}
menuentry Ubuntu {
loader /EFI/ubuntu/grubx64.efi
icon /EFI/refind/icons/os_linux.png
disabled
}
menuentry "ELILO" {
loader \EFI\elilo\elilo.efi
disabled
}
menuentry "Windows 7" {
loader \EFI\Microsoft\Boot\bootmgfw.efi
disabled
}
menuentry "Windows via shell script" {
icon \EFI\refind\icons\os_win.png
loader \EFI\tools\shell.efi
options "fs0:\EFI\tools\launch_windows.nsh"
disabled
}
menuentry "My macOS" {
icon \EFI\refind\icons\os_mac.png
volume "macOS boot"
loader \System\Library\CoreServices\boot.efi
disabled
}
menuentry "macOS via BootNext" {
icon /EFI/refind/icons/os_mac.png
firmware_bootnum 80
disabled
}
=================== nvme0n1p2/efi/ubuntu/grub.cfg (filtered) ===================
search.fs_uuid beebddc9-bea5-485b-909c-d1fb46d90b45 root
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
=================== nvme0n1p7/boot/grub/grub.cfg (filtered) ====================
Ubuntu beebddc9-bea5-485b-909c-d1fb46d90b45
Windows Boot Manager (on nvme0n1p2) osprober-efi-6A70-D7AA
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
======================== nvme0n1p7/etc/fstab (filtered) ========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p7 during installation
UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p2 during installation
UUID=6A70-D7AA /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
==================== nvme0n1p7/etc/default/grub (filtered) =====================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 resume_offset=13899775"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false
================= nvme0n1p7/boot/refind_linux.conf (filtered) ==================
"Boot with standard options" "root=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 ro quiet splash resume=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 resume_offset=13899775 vt.handoff=7"
"Boot to single-user mode" "root=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 ro quiet splash resume=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 resume_offset=13899775 vt.handoff=7 single"
"Boot with minimal options" "ro root=/dev/nvme0n1p7"
================= nvme0n1p7: Location of files loaded by Grub ==================
GiB - GB File Fragment(s)
1893,929538727 = 2033,591357440 boot/grub/grub.cfg 1
1896,381011963 = 2036,223606784 boot/vmlinuz 2
1826,545070648 = 1961,237835776 boot/vmlinuz-6.2.0-32-generic 1
1896,381011963 = 2036,223606784 boot/vmlinuz-6.2.0-37-generic 2
1826,545070648 = 1961,237835776 boot/vmlinuz.old 1
1875,719722748 = 2014,038716416 boot/initrd.img 5
1887,456405640 = 2026,640883712 boot/initrd.img-6.2.0-32-generic 1
1875,719722748 = 2014,038716416 boot/initrd.img-6.2.0-37-generic 5
1887,456405640 = 2026,640883712 boot/initrd.img.old 1
=================== nvme0n1p7: ls -l /etc/grub.d/ (filtered) ===================
-rwxr-xr-x 1 root root 18683 Dec 18 2022 10_linux
-rwxr-xr-x 1 root root 43031 Dec 18 2022 10_linux_zfs
-rwxr-xr-x 1 root root 14387 Dec 18 2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Dec 18 2022 30_os-prober
-rwxr-xr-x 1 root root 1372 Dec 18 2022 30_uefi-firmware
-rwxr-xr-x 1 root root 700 May 17 2023 35_fwupd
-rwxr-xr-x 1 root root 214 Dec 18 2022 40_custom
-rwxr-xr-x 1 root root 215 Dec 18 2022 41_custom
====================== sdb2/boot/grub/grub.cfg (filtered) ======================
==================== sdb2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
Dernière modification par GB_Informatics (Le 12/12/2023, à 21:30)
Hors ligne
#19 Le 12/12/2023, à 22:56
- geole
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Bonsoir.
================== nvme0n1p7/boot/grub/grub.cfg (filtered) ====================
Ubuntu beebddc9-bea5-485b-909c-d1fb46d90b45
Windows Boot Manager (on nvme0n1p2) osprober-efi-6A70-D7AA
### END /etc/grub.d/30_os-prober ###
Je comprends que le grub est capable de booter windows.
Tu devrais mieux décrire le plantage Windows.
Il est possible que cela soit uniquement un problème windows.
Lorsque tu dis.
'pour le rédémarrage j'ai eu un écran noir avec un trait clignotant en haut à gauche encore une fois.. et toujours pareil au démarrage)"
Veux-tu dire que le gub ne peut pas s'afficher ou qu'après avoir choisi dans grub, l'option de booter Windows, tu as cet écran noir au lieu de la roue windows.
Merci de donner ce retour.
ls -ls /boot/efi/EFI/Microsoft/Boot
Dernière modification par geole (Le 12/12/2023, à 23:11)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#20 Le 13/12/2023, à 20:35
- GB_Informatics
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Bonsoir, lorsque j'allume le pc il s'affiche :
GNU GRUB version 2.06
*Ubuntu
Advanced options for ubuntu
Windows Boot Manager (../../..)
Si je vais sur Windows il s'affiche ensuite
/EndEntire
erreur : cannot load image
Appuyer sur une touche pour continuer..
Ca revient sur la fenêtre de GRUB
Pour
ls -ls /boot/efi/EFI/Microsoft/Boot
total 5842
20 -rwx------ 1 root root 20480 déc. 9 19:43 BCD
64 -rwx------ 1 root root 65536 août 9 2020 BCD.LOG
0 -rwx------ 1 root root 0 août 9 2020 BCD.LOG1
0 -rwx------ 1 root root 0 août 9 2020 BCD.LOG2
1 drwx------ 2 root root 1024 août 9 2020 bg-BG
1554 -rwx------ 1 root root 1590656 nov. 3 21:34 bootmgfw.efi
1538 -rwx------ 1 root root 1574256 nov. 3 21:34 bootmgr.efi
64 -rwx------ 1 root root 65536 nov. 20 21:33 BOOTSTAT.DAT
11 -rwx------ 1 root root 10895 mai 10 2023 boot.stl
1 drwx------ 2 root root 1024 août 9 2020 cs-CZ
1 drwx------ 2 root root 1024 août 9 2020 da-DK
1 drwx------ 2 root root 1024 août 9 2020 de-DE
1 drwx------ 2 root root 1024 août 9 2020 el-GR
1 drwx------ 2 root root 1024 août 9 2020 en-GB
1 drwx------ 2 root root 1024 août 9 2020 en-US
1 drwx------ 2 root root 1024 août 9 2020 es-ES
1 drwx------ 2 root root 1024 août 9 2020 es-MX
1 drwx------ 2 root root 1024 août 9 2020 et-EE
1 drwx------ 2 root root 1024 août 9 2020 fi-FI
3 drwx------ 2 root root 3072 août 9 2020 Fonts
1 drwx------ 2 root root 1024 août 9 2020 fr-CA
1 drwx------ 2 root root 1024 août 9 2020 fr-FR
1 drwx------ 2 root root 1024 août 9 2020 hr-HR
1 drwx------ 2 root root 1024 août 9 2020 hu-HU
1 drwx------ 2 root root 1024 août 9 2020 it-IT
1 drwx------ 2 root root 1024 août 9 2020 ja-JP
32 -rwx------ 1 root root 32744 nov. 3 21:36 kd_02_10df.dll
372 -rwx------ 1 root root 380376 nov. 3 21:36 kd_02_10ec.dll
27 -rwx------ 1 root root 27624 nov. 3 21:36 kd_02_1137.dll
236 -rwx------ 1 root root 241112 nov. 3 21:36 kd_02_14e4.dll
45 -rwx------ 1 root root 45552 nov. 3 21:36 kd_02_15b3.dll
45 -rwx------ 1 root root 45544 nov. 3 21:36 kd_02_1969.dll
32 -rwx------ 1 root root 32728 nov. 3 21:36 kd_02_19a2.dll
21 -rwx------ 1 root root 21480 nov. 3 21:36 kd_02_1af4.dll
293 -rwx------ 1 root root 299496 nov. 3 21:36 kd_02_8086.dll
20 -rwx------ 1 root root 19936 nov. 3 21:36 kd_07_1415.dll
49 -rwx------ 1 root root 50144 nov. 3 21:36 kd_0C_8086.dll
19 -rwx------ 1 root root 18920 nov. 3 21:36 kdnet_uart16550.dll
28 -rwx------ 1 root root 28648 nov. 3 21:35 kdstub.dll
1 drwx------ 2 root root 1024 août 9 2020 ko-KR
1 drwx------ 2 root root 1024 août 9 2020 lt-LT
1 drwx------ 2 root root 1024 août 9 2020 lv-LV
1322 -rwx------ 1 root root 1353704 nov. 3 21:34 memtest.efi
1 drwx------ 2 root root 1024 août 9 2020 nb-NO
1 drwx------ 2 root root 1024 août 9 2020 nl-NL
1 drwx------ 2 root root 1024 août 9 2020 pl-PL
1 drwx------ 2 root root 1024 août 9 2020 pt-BR
1 drwx------ 2 root root 1024 août 9 2020 pt-PT
1 drwx------ 2 root root 1024 août 9 2020 qps-ploc
1 drwx------ 3 root root 1024 août 9 2020 Resources
1 drwx------ 2 root root 1024 août 9 2020 ro-RO
1 drwx------ 2 root root 1024 août 9 2020 ru-RU
1 drwx------ 2 root root 1024 août 9 2020 sk-SK
1 drwx------ 2 root root 1024 août 9 2020 sl-SI
1 drwx------ 2 root root 1024 août 9 2020 sr-Latn-RS
1 drwx------ 2 root root 1024 août 9 2020 sv-SE
1 drwx------ 2 root root 1024 août 9 2020 tr-TR
1 drwx------ 2 root root 1024 août 9 2020 uk-UA
10 -rwx------ 1 root root 9796 déc. 7 2019 winsipolicy.p7b
1 drwx------ 2 root root 1024 août 9 2020 zh-CN
1 drwx------ 2 root root 1024 août 9 2020 zh-TW
Dernière modification par GB_Informatics (Le 13/12/2023, à 20:36)
Hors ligne
#21 Le 13/12/2023, à 20:55
- geole
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Du coup, refais la commande
sudo update-grub
et donne le retour de cette commande
grep -v "#" /boot/grub/grub.cfg
et retente de booter windows
Mon avis étant qu'auparavant tu bootais certainement en LEGACY
Dernière modification par geole (Le 13/12/2023, à 20:56)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#22 Le 13/12/2023, à 20:59
- GB_Informatics
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
grep -v "#" /boot/grub/grub.cfg
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root beebddc9-bea5-485b-909c-d1fb46d90b45
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=fr_FR
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
else
set timeout=10
fi
fi
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if [ ${grub_platform} != pc ]; then
set linux_gfx_mode=keep
elif hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-beebddc9-bea5-485b-909c-d1fb46d90b45' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root beebddc9-bea5-485b-909c-d1fb46d90b45
linux /boot/vmlinuz-6.2.0-39-generic root=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 ro quiet splash resume=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 resume_offset=13899775 $vt_handoff
initrd /boot/initrd.img-6.2.0-39-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-beebddc9-bea5-485b-909c-d1fb46d90b45' {
menuentry 'Ubuntu, with Linux 6.2.0-39-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.2.0-39-generic-advanced-beebddc9-bea5-485b-909c-d1fb46d90b45' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root beebddc9-bea5-485b-909c-d1fb46d90b45
echo 'Loading Linux 6.2.0-39-generic ...'
linux /boot/vmlinuz-6.2.0-39-generic root=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 ro quiet splash resume=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 resume_offset=13899775 $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.2.0-39-generic
}
menuentry 'Ubuntu, with Linux 6.2.0-39-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.2.0-39-generic-recovery-beebddc9-bea5-485b-909c-d1fb46d90b45' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root beebddc9-bea5-485b-909c-d1fb46d90b45
echo 'Loading Linux 6.2.0-39-generic ...'
linux /boot/vmlinuz-6.2.0-39-generic root=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.2.0-39-generic
}
menuentry 'Ubuntu, with Linux 6.2.0-37-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.2.0-37-generic-advanced-beebddc9-bea5-485b-909c-d1fb46d90b45' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root beebddc9-bea5-485b-909c-d1fb46d90b45
echo 'Loading Linux 6.2.0-37-generic ...'
linux /boot/vmlinuz-6.2.0-37-generic root=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 ro quiet splash resume=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 resume_offset=13899775 $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.2.0-37-generic
}
menuentry 'Ubuntu, with Linux 6.2.0-37-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.2.0-37-generic-recovery-beebddc9-bea5-485b-909c-d1fb46d90b45' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root beebddc9-bea5-485b-909c-d1fb46d90b45
echo 'Loading Linux 6.2.0-37-generic ...'
linux /boot/vmlinuz-6.2.0-37-generic root=UUID=beebddc9-bea5-485b-909c-d1fb46d90b45 ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.2.0-37-generic
}
}
menuentry 'Windows Boot Manager (on /dev/nvme0n1p2)' --class windows --class os $menuentry_id_option 'osprober-efi-6A70-D7AA' {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 6A70-D7AA
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
Pour moi j'ai toujours été en uefi
Le retour de la commande [code]grep -v "#" /boot/grub/grub.cfg[/code]
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
Hors ligne
#23 Le 13/12/2023, à 23:34
- geole
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Ok, c'était donc une fausse piste.
Une autre plus difficile à suivre serait que le fichier lui-même ne serait plus bon.
Suite à une dernière mise à jour de windows.
Il faudrait donc booter avec un support d'installation de windows et recréer la structure efi.
Le boot info donne le checksum du fichier mais je ne sais oû trouver la référence.
fa22a6c8ee8e95aa8b3be1fbb74aa3c4 /dev/nvme0n1p2/Microsoft/Boot/bootmgfw.efi
4b034dff827330822875b739319ec584 /dev/nvme0n1p2/Microsoft/Boot/bootmgr.efi
Mais en lisant bien le document, c'est la structure légacy qui suit le boot efi qui serait abimée.
Je ne sais quelle partition de recovery a le problème.
Disk nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors
Disk identifier: E7995D17-BAA8-42A3-B0B3-991886B49FA2
Start End Sectors Size Type
nvme0n1p1 2048 1023999 1021952 499M Windows recovery environment
nvme0n1p2 1024000 1228799 204800 100M EFI System
nvme0n1p3 1228800 1261567 32768 16M Microsoft reserved
nvme0n1p4 1261568 1878123663 1876862096 895G Microsoft basic data
nvme0n1p5 1878124544 1879279615 1155072 564M Windows recovery environment
nvme0n1p6 1879279616 3791078063 1911798448 911.6G Microsoft basic data
nvme0n1p7 3791079424 4000796671 209717248 100G Linux filesystem
Je serais tenté de dire celle qui est en début de disque car j'ai souvent vu que celle en queue est utilisée pour remettre windows au format usine. Mais le contexte windows je ne maitrise pas tellement.
Dernière modification par geole (Le 13/12/2023, à 23:50)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#24 Le 18/12/2023, à 19:24
- GB_Informatics
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Bonjour, réponse dans les liens suivants :
Première partie : https://answers.microsoft.com/fr-fr/win … 331?page=6
Seconde partie : https://answers.microsoft.com/fr-fr/win … 5bcb9ce230
Hors ligne
#25 Le 18/12/2023, à 19:57
- geole
Re : Réinstallation GRUB dual boot Windows 10 et Ubuntu 22.04.2 LTS(Résolu)
Bonsoir
Si je résume bien: Tu as installé un second windows et cela a permis de refaire fonctionner le premier
Je pense que c'est le second windows qui te permet de booter le premier.
Attention à sa suppression..
A mon avis c'était bien un problème de structure de boot windows cassé.
Partie EFI?
Partie LEGACY?
Pont entre le EFI et le LEGACY?
Il me semble que tu as eu des propositions de réinstaller la structure de boot de windows.
Je ne comprends pas pourquoi tu n'as pas directement réinstallé windows sur lui-même, cela aurait été plus rapide.
Dernière modification par geole (Le 18/12/2023, à 19:57)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne