Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 02/02/2023, à 20:56

supeve

[RESOLU] DualBoot-Ubuntu ne demarre pas et/ou erreur de grub a instal

Edit : Solution post#9


Bonjour,

Je n’arrive pas à démarrer mon Ubuntu, je vais essayer de décrire au mieux :

1-Machine :
PC portable de 2009 dualboot W8/ubuntu depuis le début (je n’allume W8 que très rarement)
De temps en temps, W8 prenait le dessus, un petit coup de bootrepaire et ubuntu redevenait opérationnel. (Ca me l’a toujours fait sur ce PC)

2-Début des problème :
2a- W8 m’a fait une mise à jour à l’extinction
2b- Le lendemain au démarrage, message d’erreur (que j’ai pas bien retenu) je crois que c’était pour me dire que je n’avait pas de system d’exploitation, c’était avant l’arrivé du grub.
2c- Je sais plus ce que j’ai fait, mais il a fini par booter sur W8
2d- Je redémarre sur un live Ubuntu
2e- lance bootrepaire comme j’ai l’habitude en mode « réparation recommandé »
2f- bootrepaire tourne en boucle, il ne va pas à la fin du processus

3-Tentative
Vu que je suis en 20.04, pas grave, je réinstalle une 22.04 (mate)
3a- pour l’install, j’ai choisi « faire autre chose »
dev/sda7 _ PointsMontage / _ Formater-Oui
dev/sda8 _ PointsMontage /home _ Formater-Non

3b- vers la fin de l’install : L’exécution de grub-install / dev/sda à échoué _ Cette erreur est fatale
3c- Je tente un bootrepaire/Réparation recommandé même problème, ca tourne en boucle sans aller au bout (j’ai l’ai laissé au moins 30min)

4-Etat actuel
4a- Au démarrage j’ai :
GNU GRUB Version 2.06
Minimal BASH-like line editing…
grub>_

4b- Si je chatouille F12 au démarrage j’ai le « BOOT OPTION MENU » avec 3 Ubuntu et 1 Windows boot manager et 2 Efi Network
Seul windows fonctionne (j’ai pas testé Efi Network)

Remarque
-Bootrepaire me demande si j’ai un raid, ca ne me l’avait jamais fait
-dans le boot info, sdb est ma clé usb de la session live
-le boot info a été fait après l’étape 4 en live
-mon iso sur la clé usb est bon, j’ai installé une autre machine avec succès
-je n’ai pas changé mes partitions par rapport aux précédentes installations

Désolé pour le pavé
Merci de votre aide, et merci d’avoir tenu jusqu’ici wink

BootInfo :

boot-repair-4ppa203                                              [20230202_1641]

============================== Boot Info Summary ===============================

 => 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 1 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 setkey gettext boot bufio verifiers crypto 
    terminal normal datetime date mmap drivemap blocklist regexp 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 iso9660 
    gcry_sha1 div udf exfat font diskfilter raid6rec zstd btrfs ventoy read 
    halt video_fb vbe linux linux16 test true sleep reboot echo bitmap 
    bitmap_scale gfxterm 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
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    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:        

sda2: __________________________________________________________________________

    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/Boot/bkpbootx64.efi /efi/Boot/bootx64.efi 
                       /efi/Boot/fbx64.efi /efi/Boot/mmx64.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

sda3: __________________________________________________________________________

    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/Boot/bkpbootx64.efi /efi/Boot/bootx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/shimx64.efi 
                       /efi/Microsoft/Boot/bootmgr.efi 
                       /efi/Microsoft/Boot/LrsBootmgr.efi /bootmgr /boot/bcd

sda4: __________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info: 

sda5: __________________________________________________________________________

    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 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda6: __________________________________________________________________________

    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:        

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 22.04.1 LTS
    Boot files:        /etc/fstab /etc/default/grub

sda9: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda10: _________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda11: _________________________________________________________________________

    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:        

sda12: _________________________________________________________________________

    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:        

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.1 LTS on sda7
OS#2:   Windows 7 on sda5

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: 3rd Gen Core processor Graphics Controller from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.1 LTS, jammy, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: 7ACN21WW(0.21) from LENOVO
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 0004,0003,0005,0006,2001,2003,0002,0002,2002
Boot0000* EFI Network 0 for IPv4 (7C-05-07-FA-8C-B2) 	PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(7c0507fa8cb2,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0001* EFI Network 0 for IPv6 (7C-05-07-FA-8C-B2) 	PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(7c0507fa8cb2,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0002* Lenovo Recovery System	HD(3,GPT,8b55b037-4730-4e16-a764-e4b0cf08cf20,0x276800,0x1f4000)/File(\EFI\Microsoft\Boot\LrsBootMgr.efi)RC
Boot0003* Windows Boot Manager	HD(2,GPT,9fef5db6-5423-439f-b454-60764deaca53,0x1f4800,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.}...1................
Boot0004* ubuntu	HD(2,GPT,9fef5db6-5423-439f-b454-60764deaca53,0x1f4800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot0005* Ubuntu	HD(2,GPT,9fef5db6-5423-439f-b454-60764deaca53,0x1f4800,0x82000)/File(\EFI\ubuntu\grubx64.efi)RC
Boot0006* Ubuntu	HD(3,GPT,8b55b037-4730-4e16-a764-e4b0cf08cf20,0x276800,0x1f4000)/File(\EFI\ubuntu\grubx64.efi)RC
Boot0007* EFI USB Device (SanDisk)	PciRoot(0x0)/Pci(0x1a,0x0)/USB(0,0)/USB(1,0)/HD(2,MBR,0xb223fdd6,0x1cfd800,0x10000)RC
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC

958ceee3668f4eff01fb29d03518b49e   sda2/Boot/bkpbootx64.efi
   sda2/Boot/bootx64.efi
   sda2/Boot/fbx64.efi
   sda2/Boot/mmx64.efi
f62c28d9b477b6a1a7b1c991b2b6637d   sda2/ubuntu/grubx64.efi
   sda2/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda2/ubuntu/shimx64.efi
6c1910730f135cbd5a78e3a48520e647   sda2/Microsoft/Boot/bootmgfw.efi
154eb317efa335209708260b0b946eb7   sda2/Microsoft/Boot/bootmgr.efi
ff6d345785671fbcea9561a3cbc47702   sda3/Boot/bkpbootx64.efi
6e94c3d33194c89bd327bfaa5871e294   sda3/Boot/bootx64.efi
06fb49399a604ffed523b310cbc0fd4e   sda3/ubuntu/grubx64.efi
6e94c3d33194c89bd327bfaa5871e294   sda3/ubuntu/shimx64.efi
bb971a4a02185961543c7903473a6680   sda3/Microsoft/Boot/bootmgr.efi
dbed1f7ed9e19e53bfc7f43122ce3d83   sda3/Microsoft/Boot/LrsBootmgr.efi
6e94c3d33194c89bd327bfaa5871e294   sda12/Boot/bootx64.efi
6e94c3d33194c89bd327bfaa5871e294   sda12/ubuntu/shimx64.efi

============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	hashidESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1	: 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,	not-far
sda3	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda5	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda6	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda7	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda9	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda11	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda12	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sda1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
sda2	: hidenESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
sda3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	bootmgr,	is-winboot
sda5	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda6	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
sda7	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda9	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda11	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda12	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda2	: not--sepboot,	no-kernel,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda3	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda5	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda6	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda7	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda9	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda11	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda12	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 997BF795-FBF5-4C36-AB49-02519C768EC0
           Start        End   Sectors   Size Type
sda1        2048    2050047   2048000  1000M Windows recovery environment
sda2     2050048    2582527    532480   260M EFI System
sda3     2582528    4630527   2048000  1000M Lenovo boot partition
sda4     4630528    4892671    262144   128M Microsoft reserved
sda5     4892672  837588991 832696320 397.1G Microsoft basic data
sda6   837588992  838514687    925696   452M Windows recovery environment
sda7   838514688  902158335  63643648  30.3G Linux filesystem
sda9   902158336 1854777343 952619008 454.2G Microsoft basic data
sda10 1854777344 1877043199  22265856  10.6G Linux swap
sda11 1877043200 1929471999  52428800    25G Microsoft basic data
sda12 1929472000 1953523711  24051712  11.5G Windows recovery environment
Disk sdb: 14.53 GiB, 15597568000 bytes, 30464000 sectors
Disk identifier: 0xb223fdd6
      Boot    Start      End  Sectors  Size Id Type
sdb1  *        2048 30398463 30396416 14.5G  7 HPFS/NTFS/exFAT
sdb2       30398464 30463999    65536   32M ef EFI (FAT-12/16/32)
Disk mapper/ventoy: 2.48 GiB, 2667771904 bytes, 5210492 sectors
Disk identifier: 85C32B31-2404-44C3-A035-1E7E66F43D31
                      Start     End Sectors  Size Type
mapper/ventoy-part1      64 5201331 5201268  2.5G Microsoft basic data
mapper/ventoy-part2 5201332 5209827    8496  4.1M EFI System
mapper/ventoy-part3 5209828 5210427     600  300K Microsoft basic data

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:4096:gpt:ATA ST1000LM024 HN-M:;
1:1049kB:1050MB:1049MB:ntfs:Basic data partition:hidden, diag;
2:1050MB:1322MB:273MB:fat32:EFI system partition:boot, hidden, esp;
3:1322MB:2371MB:1049MB:fat32:Basic data partition:hidden;
4:2371MB:2505MB:134MB::Microsoft reserved partition:msftres;
5:2505MB:429GB:426GB:ntfs:Basic data partition:msftdata;
6:429GB:429GB:474MB:ntfs::hidden, diag;
7:429GB:462GB:32.6GB:ext4::;
9:462GB:950GB:488GB:ext4::msftdata;
10:950GB:961GB:11.4GB:linux-swap(v1)::swap;
11:961GB:988GB:26.8GB:ntfs:Basic data partition:msftdata;
12:988GB:1000GB:12.3GB:ntfs:Basic data partition:hidden, diag;
sdb:15.6GB:scsi:512:512:msdos:SanDisk Ultra:;
1:1049kB:15.6GB:15.6GB:::boot;
2:15.6GB:15.6GB:33.6MB:fat16::esp;
mapper/ventoy:2668MB:dm:512:512:gpt:Linux device-mapper (linear):;
1:32.8kB:2663MB:2663MB::ISO9660:hidden, msftdata;
2:2663MB:2667MB:4350kB::Appended2:boot, esp;
3:2667MB:2668MB:307kB::Gap1:hidden, msftdata;

blkid (filtered): ______________________________________________________________

NAME       FSTYPE   UUID                                 PARTUUID                             LABEL                         PARTLABEL
sda                                                                                                                         
├─sda1     ntfs     AC2E52A22E52657C                     add49c74-ee86-419b-b01e-e7ebeec4f658 WINRE_DRV                     Basic data partition
├─sda2     vfat     3053-112D                            9fef5db6-5423-439f-b454-60764deaca53 SYSTEM_DRV                    EFI system partition
├─sda3     vfat     0C21-CB5B                            8b55b037-4730-4e16-a764-e4b0cf08cf20 LRS_ESP                       Basic data partition
├─sda4                                                   0ac9fc75-3682-4085-a2dd-402726d4800e                               Microsoft reserved partition
├─sda5     ntfs     A20855E00855B3CF                     acb734e3-0611-4366-a614-fa02b4c02116 Windows8_OS                   Basic data partition
├─sda6     ntfs     5A08F4A408F47FF5                     37e3f624-e907-40ff-a3f7-db6c58e452db                               
├─sda7     ext4     f9e3936b-3020-4ffd-9ec2-fa9401e2cdb9 4aca910d-a75e-4638-89bd-3097db070b5d                               
├─sda9     ext4     8fc21186-5719-4126-95ae-b9ed5254ec0b b6a45f23-cfcd-4fcf-ac6a-44c447235d61                               
├─sda10    swap     9a0c6a81-e4a3-428e-82c0-eba3cd37d25d 2eab949b-dad3-4b15-aefc-7713569af8c0                               
├─sda11    ntfs     FCEA2B4DEA2B038C                     677f5777-034a-491c-8cf6-e2c364030cde LENOVO                        Basic data partition
└─sda12    ntfs     4AC82717C8270135                     7a1bdddf-b2c8-4eb5-b805-38aa3cb80cef PBR_DRV                       Basic data partition
sdb                                                                                                                         
├─sdb1     exfat    5B44-1130                            b223fdd6-01                          Ventoy                        
│ └─ventoy                                                                                                                  
└─sdb2     iso9660  2022-08-10-17-45-26-00                                                    Ubuntu-MATE 22.04.1 LTS amd64 
sdc                                                                                                                         

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on
/dev/mapper/ventoy          0 100% /cdrom
/dev/sda11              23.5G   6% /mnt/boot-sav/sda11
/dev/sda12               1.6G  86% /mnt/boot-sav/sda12
/dev/sda1              700.4M  30% /mnt/boot-sav/sda1
/dev/sda2              219.4M  14% /mnt/boot-sav/sda2
/dev/sda3              472.2M  53% /mnt/boot-sav/sda3
/dev/sda5              323.9G  18% /mnt/boot-sav/sda5
/dev/sda6              117.8M  74% /mnt/boot-sav/sda6
/dev/sda7               19.8G  28% /mnt/boot-sav/sda7
/dev/sda9              210.9G  48% /mnt/boot-sav/sda9

Mount options (filtered): ______________________________________________________


============================== ls -R /dev/mapper/ ==============================

/dev/mapper:
control
ventoy

===================== sda2/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid 12d3f794-6ec2-4bc9-b902-7eea14cd8780 root hd0,gpt7 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

========================== sda7/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda7 during installation
UUID=f9e3936b-3020-4ffd-9ec2-fa9401e2cdb9 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
UUID=3053-112D  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/sda9 during installation
UUID=8fc21186-5719-4126-95ae-b9ed5254ec0b /home           ext4    defaults        0       2
# swap was on /dev/sda10 during installation
UUID=9a0c6a81-e4a3-428e-82c0-eba3cd37d25d none            swap    sw              0       0

======================= sda7/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

==================== sda7: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
 418,702144623 = 449,578004480  boot/vmlinuz                                   2
 418,702144623 = 449,578004480  boot/vmlinuz-5.15.0-43-generic                 2
 409,631343842 = 439,838306304  boot/initrd.img                                1
 409,631343842 = 439,838306304  boot/initrd.img-5.15.0-43-generic              1
 409,631343842 = 439,838306304  boot/initrd.img.old                            1

===================== sda7: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 18683 Apr 15  2022 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15  2022 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15  2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 Apr 15  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   700 Feb 19  2022 35_fwupd
-rwxr-xr-x 1 root root   214 Apr 15  2022 40_custom
-rwxr-xr-x 1 root root   215 Apr 15  2022 41_custom

====================== sdb2/boot/grub/grub.cfg (filtered) ======================

Try or Install Ubuntu MATE
Ubuntu MATE (safe graphics)
OEM install (for manufacturers)
Boot from next volume
UEFI Firmware Settings
Test memory

==================== 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
sda7,
using the following options:  sda2/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.1 LTS entry (sda2/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 supeve (Le 03/02/2023, à 19:47)

Hors ligne

#2 Le 02/02/2023, à 22:52

geole

Re : [RESOLU] DualBoot-Ubuntu ne demarre pas et/ou erreur de grub a instal

Bonsoir.
Avec le support d'installation, relance boot-repair réparation standard et donne son retour.
Il faut qu'il répare. Sinon, il faudra le faire manullement.
Le fichier a rectifier

===================== sda2/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 12d3f794-6ec2-4bc9-b902-7eea14cd8780 root hd0,gpt7 
set prefix=($root)'/boot/grub

La bonne valeur.

├─sda7     ext4     f9e3936b-3020-4ffd-9ec2-fa9401e2cdb9 4aca910d-a75e-4638-89bd-3097db070b5d   

Dernière modification par geole (Le 02/02/2023, à 23:03)


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 02/02/2023, à 23:08

supeve

Re : [RESOLU] DualBoot-Ubuntu ne demarre pas et/ou erreur de grub a instal

Merci,

BootRepair ne parvient pas a finir, il reste bloqué sur cette opération peut prendre du temps (quelque chose comme ca, j'ai attendu au moins 30 min).

Je n'est pas compris l’opération à faire manuellement.
A quoi tu penses comme modif ?

edit, j'avais pas vu la fin du post sad
la bonne valeur tu peux ma dire ou je la met STP ?

Pour info, pas d'urgence je ne pourrais le faire que demain soir.

Merci.

Dernière modification par supeve (Le 02/02/2023, à 23:12)

Hors ligne

#4 Le 03/02/2023, à 01:36

geole

Re : [RESOLU] DualBoot-Ubuntu ne demarre pas et/ou erreur de grub a instal

Le problème est que je n'arrive pas à comprendre pourquoi le premier boot-repair ne fonctionne pas.
Puis tu fais une réinstallation   dont la partie boot foire et de nouveau le boot-repair ne marche pas.
Je ne sais pas ce que cela peut cacher. En tout cas, cela ne boote plus sur ubuntu car la structure EFI pointe sur une partition non-existante. Certainement celle de l'ancien ubuntu que tu as écrasée par reformatage.
En conséquence, pour réparer au moins cela
1) Booter avec le support d'installation et choisir essayer avant d'installer
2) Monter la partition de boot

sudo mount -v /dev/sda2 /mnt

3) Remplacer 12d3f794-6ec2-4bc9-b902-7eea14cd8780 par f9e3936b-3020-4ffd-9ec2-fa9401e2cdb9 dans le fichier /mnt/efi/ubuntu/grub.cfg  soit par un éditeur soit en ligne de commande

sudo sed -i 's/12d3f794-6ec2-4bc9-b902-7eea14cd8780/f9e3936b-3020-4ffd-9ec2-fa9401e2cdb9/'    /mnt/efi/ubuntu/grub.cfg

4) Démonter

sudo umount -v /mnt

5) Enlever la ligne de boot qui veut booter sur la seconde partition fat32 qui n'a pas de fichier de configuration.

sudo efibootmgr -B -b 6

6) Retenter de redémarrer.

Dernière modification par geole (Le 03/02/2023, à 01:37)


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 03/02/2023, à 10:15

supeve

Re : [RESOLU] DualBoot-Ubuntu ne demarre pas et/ou erreur de grub a instal

OK. Je regarde ca ce soir.

geole a écrit :

En tout cas, cela ne boote plus sur ubuntu car la structure EFI pointe sur une partition non-existante. Certainement celle de l'ancien ubuntu que tu as écrasée par reformatage.

Quand j'ai réinstallé, je mis le nouveau ubuntu sur la même partition que l'ancien

J'ai remarqué un truc aussi sur gparted, j'ai les 2-3 premières partitions qui ont du rouge, j'ai fait une capture d’écran, mais j'ai pas hébergeur pour la poster.

A priori, au démarrage, j'ai accès à Grub Rescue, je peux tenter de "forcer" le boot sur une partition ?
J'ai vu ca ici : Démarrer sur Linux depuis Grub Rescue en cas d’erreur

Hors ligne

#6 Le 03/02/2023, à 11:15

geole

Re : [RESOLU] DualBoot-Ubuntu ne demarre pas et/ou erreur de grub a instal

Bonjour.
Tu n'as pas dit si tu avais tenté ma réparation.


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 03/02/2023, à 12:21

supeve

Re : [RESOLU] DualBoot-Ubuntu ne demarre pas et/ou erreur de grub a instal

geole a écrit :

Bonjour.
Tu n'as pas dit si tu avais tenté ma réparation.

Je tente ca ce soir.

Hors ligne

#8 Le 03/02/2023, à 19:34

supeve

Re : [RESOLU] DualBoot-Ubuntu ne demarre pas et/ou erreur de grub a instal

geole a écrit :
sudo mount -v /dev/sda2 /mnt
sudo sed -i 's/12d3f794-6ec2-4bc9-b902-7eea14cd8780/f9e3936b-3020-4ffd-9ec2-fa9401e2cdb9/'    /mnt/efi/ubuntu/grub.cfg
sudo umount -v /mnt
sudo efibootmgr -B -b 6

Ca n'a rien changé.
Apres le

sudo efibootmgr -B -b 6

J'ai eu en retour

BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 0004,0003,0005,2001,2003,0002,0002,2002
Boot0000* EFI Network 0 for IPv4 (7C-05-07-FA-8C-B2) 
Boot0001* EFI Network 0 for IPv6 (7C-05-07-FA-8C-B2) 
Boot0002* Lenovo Recovery System
Boot0003* Windows Boot Manager
Boot0004* ubuntu
Boot0005* Ubuntu
Boot0007* EFI USB Device (SanDisk)
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network

Hors ligne

#9 Le 03/02/2023, à 19:45

supeve

Re : [RESOLU] DualBoot-Ubuntu ne demarre pas et/ou erreur de grub a instal

SOLUTION :
Trouvé ici :Repare avec SuperGrub
Si j'ai bien compris, SuperGrub est un Grub en live sur cle USB, qui permet de boot sur une partition du disque dur.

Une fois le démarrage réussi il faut installer le grub

sudo grub-install /dev/sdX

et le mettre à jour

sudo update-grub

Pour info voila ce que j'ai dans le terminal pour ces 2 commandes

carric@Lenovo:~$ sudo grub-install /dev/sda7
[sudo] Mot de passe de carric : 
Installation pour la plate-forme x86_64-efi.
Installation terminée, sans erreur.
carric@Lenovo:~$ 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-5.15.0-43-generic
Found initrd image: /boot/initrd.img-5.15.0-43-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/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
carric@Lenovo:~$ 

Il me reste à voir si il y a une résolution d'écran à rentrer dans le grub ou autre chose, parce que j'ai une fenetre d'erreur furtive (env 5 sec) pour un probleme de résolution.
Mais ca fonctionne, il trouve une résolution tout seul apres quelques instants.

Merci Geole pour ton aide.

Hors ligne

#10 Le 03/02/2023, à 20:05

geole

Re : [RESOLU] DualBoot-Ubuntu ne demarre pas et/ou erreur de grub a instal

supeve a écrit :
geole a écrit :
sudo mount -v /dev/sda2 /mnt
sudo sed -i 's/12d3f794-6ec2-4bc9-b902-7eea14cd8780/f9e3936b-3020-4ffd-9ec2-fa9401e2cdb9/'    /mnt/efi/ubuntu/grub.cfg
sudo umount -v /mnt

Ca n'a rien changé.

Bonjour
Ce n'était pas suffisant!   et je  ne comprends pas le problème boot-repair qui a bouclé...L'important est que tu aies pu réparer.


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