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 27/05/2023, à 17:46

hugotor

[Résolu] dual boot ubuntu -pas de boot windows si disque ubuntu enlevé

Bonjour,

J'ai un PC avec ubuntu sur un disque et un windows 10 sur un autre
Lorsque j'enlève le disque ubuntu le windows ne démarre pas, et affiche un

grub>

J'ai remarqué ce problème car j'ai fait tombé le pc et la broche sata s'était défaite et le disque de boot (ubuntu) n'était pas actif

Mon installation c'est
> disque 1 : Ubuntu avec partition de boot
> disque 2 : windows 10

Question : Comment refaire le boot du disque 2 pour le faire démarrer seul ?

Merci d'avance
Hugotor

Dernière modification par hugotor (Le 09/06/2023, à 08:43)


Ubuntu 22.04 LTS

Hors ligne

#2 Le 27/05/2023, à 17:59

geole

Re : [Résolu] dual boot ubuntu -pas de boot windows si disque ubuntu enlevé

Bonjour
Peux-tu préciser que le disque  ubuntu est bien un disque interne.
Peux-tu produire un boot-info afin de te donner directement le bon conseil.

Dernière modification par geole (Le 27/05/2023, à 17:59)


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 27/05/2023, à 18:15

hugotor

Re : [Résolu] dual boot ubuntu -pas de boot windows si disque ubuntu enlevé

Merci Geole,

Le PC est un portable et le disque ubuntu est bien interne (Sata)
Le deuxième disque est de type mSATA

Je regarderai le boot-info

A+


Ubuntu 22.04 LTS

Hors ligne

#4 Le 07/06/2023, à 19:23

hugotor

Re : [Résolu] dual boot ubuntu -pas de boot windows si disque ubuntu enlevé

Voici le boot-info généré
https://paste.ubuntu.com/p/StP7BcCdBP/

C'est vrai que c'est pas simple à lire

Merci pour votre aide


Ubuntu 22.04 LTS

Hors ligne

#5 Le 07/06/2023, à 20:38

geole

Re : [Résolu] dual boot ubuntu -pas de boot windows si disque ubuntu enlevé

1) Tu bootes en mode EFI

The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).

2) La NVRAM contient bien une amorce EFI.

BootOrder: 0002,....
Boot0002* Windows Boot Manager	HD(2,GPT,25f9cd33-2e0c-4db3-9b1a-054fea531985,0xfa000,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.

Mais  elle ne me semble pas correcte.
Les noms de fichiers de boot sont  bien ceux qu'il faut mais ils sont recherché dans une partition N° 2 ayant un uuid 25f9cd33-2e0c-4db3-9b1a-..... qui n'existe pas.
Je pense que c'est dans l'autre disque qui contient UBUNTU.

3) La structure de la partition de boot EFI  contient bien les bons  fichiers.

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi 
                       /efi/Microsoft/Boot/bootmgfw.efi 
                       /efi/Microsoft/Boot/bootmgr.efi /bootmgr /boot/bcd

Certains bios EFI permettent de rechercher les fichiers de boot dans les disques.

C'est la première chose à faire.
Si tu ne trouves pas, ton bios EFI a très certaiment une fonction de réinitialisation.
Il refabriquera correctement. En dernier recours, je te propose d'installer refind


4) Les fichiers de boot de windows sont bien présents mais il y a un intrus et d'après ce que tu dis, il est probable qu'il ait  pris la main..
sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Boot file info:      Grub2 (v1.97-1.98) in the file /lsmc.isk looks at
                       sector 1 of the same hard drive for core.img, but
                       core.img can not be found at this location

    Operating System:  Windows 10 or 11
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

C'est la première fois que je vois un fichier nommé /lsmc.isk
Il va falloir que je cherche un peu.
===> Je ne trouve rien d'intéressant.

Dernière modification par geole (Le 07/06/2023, à 21:32)


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

#6 Le 07/06/2023, à 21:12

xubu1957

Re : [Résolu] dual boot ubuntu -pas de boot windows si disque ubuntu enlevé

Bonjour,

Collage du Boot-info :

boot-info-4ppa203                                              [20230607_1701]

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

 => Grub2 (v1.99-2.00) is installed in the MBR of /dev/sda and looks at sector 
    1 of the same hard drive for core.img, but core.img can not be found at 
    this location.
 => 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 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
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi 
                       /efi/Microsoft/Boot/bootmgfw.efi 
                       /efi/Microsoft/Boot/bootmgr.efi /bootmgr /boot/bcd

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Boot file info:      Grub2 (v1.97-1.98) in the file /lsmc.isk looks at 
                       sector 1 of the same hard drive for core.img, but 
                       core.img can not be found at this location.
    Operating System:  Windows 10 or 11
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda3: __________________________________________________________________________

    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 already mounted or mount point busy.
       dmesg(1) may have more information after failed mount system call.

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


================================ 1 OS detected =================================

OS#1:   Windows 10 or 11 on sda2

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

CPU architecture: 64-bit
Video: Mars XTX [Radeon HD 8790M] 4th Gen Core Processor Integrated Graphics Controller from Advanced Micro Devices, Inc. [AMD/ATI] Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 23.04, lunar, x86_64)

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

BIOS/UEFI firmware: A16(65.16) from Dell Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 000A
Timeout: 0 seconds
BootOrder: 0002,0008,000A,0006,0009,0001,0004,0005
Boot0001  Diskette Drive	BBS(Floppy,Diskette Drive,0x0)AMBO
Boot0002* Windows Boot Manager	HD(2,GPT,25f9cd33-2e0c-4db3-9b1a-054fea531985,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.}...M................
Boot0004* CD/DVD/CD-RW Drive	BBS(CDROM,P1: TSSTcorp DVD+/-RW SU-208GB,0x0)AMBO
Boot0005* Onboard NIC	BBS(Network,IBA CL Slot 00C8 v0110,0x0)AMBO
Boot0006* Internal HDD	BBS(HD,P0: SAMSUNG SSD PM871 M.2 2280 256GB,0x0)AMBO
Boot0008* UEFI: Hard Drive 	PciRoot(0x0)/Pci(0x1f,0x2)/EDD10(0x2a010480)/HD(1,MBR,0x9c7a47e2,0x800,0x100000)AMBO
Boot0009* USB Storage	BBS(USB,KingstonDataTraveler 3.0,0x0)AMBO
Boot000A* UEFI: KingstonDataTraveler 3.0	PciRoot(0x0)/Pci(0x1d,0x0)/USB(1,0)/USB(3,0)/HD(2,MBR,0xd0ce558f,0x39933f0,0x10000)AMBO

85fa9d77b929ec4231aba29476574eb6   sda1/BOOT/fbx64.efi
469e608783843a701d172242f016c79c   sda1/BOOT/mmx64.efi
23de89ec237345413d864c8a619d6109   sda1/Microsoft/Boot/bootmgfw.efi
2c5164e838a35dc04aab81860f41e838   sda1/Microsoft/Boot/bootmgr.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/BOOTX64.efi

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

Disks info: ____________________________________________________________________

sdb	: notGPT,	no-BIOSboot,	has-noESP, 	usb-disk,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes
sda	: notGPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sdb1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda3	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far

Partitions info (2/3): _________________________________________________________

sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	bootmgr,	is-winboot

Partitions info (3/3): _________________________________________________________

sdb1	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sda2	: not--sepboot,	no---boot,	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
sda1	: 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: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 0x9c7a47e2
      Boot     Start       End   Sectors   Size Id Type
sda1  *         2048   1050623   1048576   512M  b W95 FAT32
sda2         1050624 498418351 497367728 237.2G  7 HPFS/NTFS/exFAT
sda3       498419712 500118191   1698480 829.3M 27 Hidden NTFS WinRE
Disk sdb: 28.82 GiB, 30943995904 bytes, 60437492 sectors
Disk identifier: 0xd0ce558f
      Boot    Start      End  Sectors  Size Id Type
sdb1  *        2048 60371951 60369904 28.8G  7 HPFS/NTFS/exFAT
sdb2       60371952 60437487    65536   32M ef EFI (FAT-12/16/32)
Disk mapper/ventoy: 4.59 GiB, 4932407296 bytes, 9633608 sectors
Disk identifier: F05C32E4-7288-463C-99EA-DC437A059E92
                      Start     End Sectors  Size Type
mapper/ventoy-part1      64 9622875 9622812  4.6G Microsoft basic data
mapper/ventoy-part2 9622876 9632943   10068  4.9M EFI System
mapper/ventoy-part3 9632944 9633543     600  300K Microsoft basic data

parted -lm (filtered): _________________________________________________________

sda:256GB:scsi:512:512:msdos:ATA SAMSUNG SSD PM87:;
1:1049kB:538MB:537MB:fat32::boot;
2:538MB:255GB:255GB:ntfs::;
3:255GB:256GB:870MB:ntfs::msftres;
sdb:30.9GB:scsi:512:512:msdos:Kingston DataTraveler 3.0:;
1:1049kB:30.9GB:30.9GB:::boot;
2:30.9GB:30.9GB:33.6MB:fat16::esp;
mapper/ventoy:4932MB:dm:512:512:gpt:Linux device-mapper (linear):;
1:32.8kB:4927MB:4927MB::ISO9660:hidden, msftdata;
2:4927MB:4932MB:5155kB::Appended2:boot, esp;
3:4932MB:4932MB:307kB::Gap1:hidden, msftdata;

blkid (filtered): ______________________________________________________________

NAME       FSTYPE   UUID                                 PARTUUID                             LABEL PARTLABEL
sda                                                                                                 
├─sda1     vfat     5D1D-72E5                            9c7a47e2-01                                
├─sda2     ntfs     941095FE3C16F61F                     9c7a47e2-02                                
└─sda3     ntfs     24DC79C63B75830E                     9c7a47e2-03                                
sdb                                                                                                 
├─sdb1     exfat    4E21-0000                            d0ce558f-01                          YUMI  
│ └─ventoy                                                                                          
└─sdb2                                                                                              

Mount points (filtered): _______________________________________________________

                           Avail Use% Mounted on
/dev/mapper/ventoy             0 100% /cdrom
/dev/sda1                 464.5M   9% /mnt/boot-sav/sda1
/dev/sda2                  51.6G  78% /mnt/boot-sav/sda2
/dev/sda3                 337.4M  59% /mnt/boot-sav/sda3

Mount options (filtered): ______________________________________________________


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

/dev/mapper:
control
ventoy

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

Try or Install Ubuntu
Ubuntu (safe graphics)
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

mount -t ntfs-3g -o remove_hiberfile /dev/sda2 /mnt/boot-sav/sda2 


Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would not act on the MBR.
Additional repair would be performed: unhide-bootmenu-10s

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#7 Le 07/06/2023, à 21:18

hugotor

Re : [Résolu] dual boot ubuntu -pas de boot windows si disque ubuntu enlevé

Ouhaou !
Merci pour l'analyse !

Effectivement l'installation ubuntu est sur l'autre disque qui est HS

Je pensai vouloir refaire la partition de boot à zéro
en vidant tous les fichiers sur la partition sda1 ?

A+


Ubuntu 22.04 LTS

Hors ligne

#8 Le 09/06/2023, à 08:39

hugotor

Re : [Résolu] dual boot ubuntu -pas de boot windows si disque ubuntu enlevé

Avec rEFInd c'est bon !

J'ai utilisé l'ISO pour booter sur une clef USB
Ensuite j'ai choisi de booter sur le disque et c'est passé

Merci pour votre aide !


Ubuntu 22.04 LTS

Hors ligne