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 09/08/2024, à 16:27

didi53

Grub sur plusieurs disques

Bonjour,
J'ai depuis quelques années un dual boot Windows / Ubuntu.
Au fur et a mesure de l'évolution de mon matériel, je récupère mes anciens disques durs pour continuer à les utiliser comme disques de stockages.
Ayant acquis dernièrement un SSD, j'ai maintenant 3 Disques durs et bien sûr, mes os sont installés sur le SSD==> sda
Comme je veux upgrader mon W10 vers W11, l'installation de ce dernier est interrompue car la vérification de l’espace disque ne peut se faire, plus que probablement à cause du dual boot et de Grub selon l'assistance Win.
Je voulais donc démarrer mon PC directement sur windows10 (via le Bios) mais là aussi, je constate que, via un Boot Info, Grub est installé sur le mbr des 3 disques (résidus des installations précédentes) sda, sdb et sdc , cela ne me parait pas nécessaire et sans doute contreproductif.

D'où ma question, comment puis-je proprement enlever Grub ,sachant que:
-  les 2 OS sont installés sur le même disque sda, windows en sda1 et Ubuntu en sda5
-  je voudrais pouvoir démarrer directement sur windows sans passer par Grub ?

J'ai aussi constaté lors de l'installation d'Ubuntu qu'un petit disque vfat fat32 comportant une section efi/boot à été créée en sda2

Peut-être devrais-je réinstaller Ubuntu et grub sur le sdb ?

Merci d'avance pour m'éclairer dans ce dédale
Didier

Hors ligne

#2 Le 09/08/2024, à 16:48

geole

Re : Grub sur plusieurs disques

didi53 a écrit :

Bonjour,
J'ai depuis quelques années un dual boot Windows / Ubuntu.
Comme je veux upgrader mon W10 vers W11, l'installation de ce dernier est interrompue car la vérification de l’espace disque ne peut se faire, plus que probablement à cause du dual boot et de Grub selon l'assistance Win.
Je voulais donc démarrer mon PC directement sur windows10 (via le Bios) mais là aussi, je constate que, via un Boot Info, Grub est installé sur le mbr des 3 disques (résidus des installations précédentes) sda, sdb et sdc .
Didier

Bonjour.
Dommages que tu n'aies pas pensé à fournir le boot-info.
On aurait pu voir si l'ordinateur boote en EFI par la partition FAT32
Ou en légacy via le MBR. Ce que je crois.

Il est probable que l'assistance windows  ne soit pas de bonne qualité.
A mon avis, l'ugrade de windows10 vers  windows 11 pourrait être refusée parce le boot est en legacy.
Mais, as-tu passé l'outil d'aptitude à faire une mise à jour windows 10 vers windows 11)
https://support.microsoft.com/fr-fr/win … 258df6812b
Pourrais-tu donner ce retour pour savoir si boot EFI ou pas.

[ -d /sys/firmware/efi ] && echo "Session EFI" || echo "Session non-EFI"

Si tu veux remettre le boot windows standard, il faut booter avec le support d'installation de windows et lui  demander de reconstruire la structure de boot ( soit EFI soit LEGACY )
https://lecrabeinfo.net/reparer-demarra … ws-10.html

Tu peux effectivement, en live USB, transferrer les partitions FAT32, SWAP et EXT4 de SDA dans SDB  en utilisant gparted puis supprimer seulement les partitions SWAP et EXT4 puis refaire un boot-repair standard.
puis voir  si ton problème windows est résolu. Ce qui serait possible car l'outil windows pourrait alors convertir ton installation windows legacy en windows EFI

Dernière modification par geole (Le 09/08/2024, à 17:07)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#3 Le 09/08/2024, à 17:03

didi53

Re : Grub sur plusieurs disques

Oui, j'ai le boot info en txt, mais pas de possibilité de joindre un fichier et comme il fait 7 pages, je ne voulais pas copier/coller dans mon message...

Hors ligne

#4 Le 09/08/2024, à 17:06

xubu1957

Re : Grub sur plusieurs disques

Bonjour,

Plus de 1000 lignes, le boot-info ?


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] 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

#5 Le 09/08/2024, à 17:12

geole

Re : Grub sur plusieurs disques

Le boot-info a une option de diffusion en ligne.
Faire un copier-coller de l’URL (paste.ubuntu.com/XXXXXXXX/ ou paste2.org/XXXXXXXX) générée dans votre discussion du forum afin que les bénévoles qui vous aident puissent consulter le rapport.

Dernière modification par geole (Le 09/08/2024, à 17:12)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#6 Le 10/08/2024, à 02:15

didi53

Re : Grub sur plusieurs disques

Voici l'URL: https://paste.ubuntu.com/p/dj4FgY2JBD/
Merci d'avance pour votre aide.

Hors ligne

#7 Le 10/08/2024, à 07:21

xubu1957

Re : Grub sur plusieurs disques

Bonjour,

Collage du Boot-info :

boot-info-4ppa2079                                              [20240810_0158]

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

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos5)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------
 => 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 (,msdos6)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------
 => Grub2 (v2.00) is installed in the MBR of /dev/sdc and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for /boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid 6dabfc52-96d4-48a8-9fc4-91705a280ff5 root hd0,msdos7 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 8 or 10
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________________________________

    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/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg /bootmgr

sda3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 22.04.4 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sda6: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  NTFS
    Boot sector info:  According to the info in the boot sector, sda6 starts 
                       at sector 63.
    Operating System:  
    Boot files:        

sdb1: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sdb5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 2000/XP: NTFS
    Boot sector info:  According to the info in the boot sector, sdb5 starts 
                       at sector 63.
    Operating System:  
    Boot files:        

sdb6: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 2000/XP: NTFS
    Boot sector info:  According to the info in the boot sector, sdb6 starts 
                       at sector 63.
    Operating System:  
    Boot files:        

sdb7: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 2000/XP: NTFS
    Boot sector info:  According to the info in the boot sector, sdb7 starts 
                       at sector 63.
    Operating System:  
    Boot files:        

sdc1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  According to the info in the boot sector, sdc1 starts 
                       at sector 2048. But according to the info from fdisk, 
                       sdc1 starts at sector 63. According to the info in the 
                       boot sector, sdc1 has 976701756 sectors, but according 
                       to the info from fdisk, it has 2930079284 sectors.
    Operating System:  
    Boot files:        

sdc2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 2000/XP: NTFS
    Boot sector info:  According to the info in the boot sector, sdc2 starts 
                       at sector 63. But according to the info from fdisk, 
                       sdc2 starts at sector 2930079348. According to the 
                       info in the boot sector, sdc2 has 488608316 sectors, 
                       but according to the info from fdisk, it has 976944716 
                       sectors.
    Operating System:  
    Boot files:        

sdc3: __________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 


================================ 2 OS detected =================================

OS#1:   L'OS actuellement utilisé - Ubuntu 22.04.4 LTS on sda5
OS#2:   Windows 10 on sda1

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

CPU architecture: 64-bit
Video: GT218 [GeForce 210] from NVIDIA Corporation
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-6.5.0-45-generic root=UUID=a4a82ed2-cab9-496f-ac18-1f790405d23e ro quiet splash vt.handoff=7
df -Th / : /dev/sda5        ext4    59G     16G   41G  27% /

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

BIOS/UEFI firmware: 1403(4.6) from American Megatrends Inc.
This installed-session is in Legacy/BIOS/CSM mode (not in EFI mode).


a9c517741ac31962d7feb152948ad1ee   sda2/BOOT/fbx64.efi
a660182adef313615746a665966d2ccc   sda2/BOOT/mmx64.efi
a1da253696a304dce6b4668b70151c0e   sda2/ubuntu/grubx64.efi
a660182adef313615746a665966d2ccc   sda2/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3   sda2/ubuntu/shimx64.efi
64349b3622c65f495a99dbf6102496e3   sda2/BOOT/BOOTX64.efi

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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

sda5	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	end-after-100GB
sdb7	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sdb5	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sdb6	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sdc2	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sdc5	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sdc1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sdc4	: 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	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sda6	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB

Partitions info (2/3): _________________________________________________________

sda5	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb7	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb6	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdc2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdc5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdc1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdc4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	bootmgr,	notwinboot
sda1	: 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,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda5	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sdb7	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdb5	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdb6	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdc2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdc
sdc5	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdc
sdc1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdc
sdc4	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdc
sda2	: not--sepboot,	no-kernel,	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
sda6	: 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: 0xaeef871a
     Boot     Start        End    Sectors   Size Id Type
sda1            2048  633655295  633653248 302.1G  7 HPFS/NTFS/exFAT
sda2  *    633657344  634707967    1050624   513M ef EFI (FAT-12/16/32)
sda3       634710015 1953523711 1318813697 628.9G  f W95 Ext'd (LBA)
sda5       634710016  760645631  125935616  60.1G 83 Linux
sda6       760661752 1953523711 1192861960 568.8G  7 HPFS/NTFS/exFAT
Disk sdb: 298.09 GiB, 320072933376 bytes, 625142448 sectors
Disk identifier: 0x6a97b9c7
     Boot     Start       End   Sectors   Size Id Type
sdb1           16065 625137344 625121280 298.1G  f W95 Ext'd (LBA)
sdb5           16128 124547379 124531252  59.4G  7 HPFS/NTFS/exFAT
sdb6       124552008 584187659 459635652 219.2G  7 HPFS/NTFS/exFAT
sdb7       584187723 625137344  40949622  19.5G  7 HPFS/NTFS/exFAT
Disk sdc: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk identifier: 0x56a8532b
     Boot      Start        End    Sectors   Size Id Type
sdc1               63 2930079347 2930079285   1.4T 42 SFS
sdc2       2930079348 3907024064  976944717 465.8G 42 SFS
sdc3       3907024065 3907027119       3055   1.5M 42 SFS

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:512:msdos:ATA CT1000MX500SSD1:;
1:1049kB:324GB:324GB:ntfs::;
2:324GB:325GB:538MB:fat32::boot, esp;
3:325GB:1000GB:675GB:::lba;
5:325GB:389GB:64.5GB:ext4::;
6:389GB:1000GB:611GB:ntfs::;
sdb:320GB:scsi:512:512:msdos:ATA WDC WD3200AAJS-2:;
1:8225kB:320GB:320GB:::lba;
5:8258kB:63.8GB:63.8GB:ntfs::;
6:63.8GB:299GB:235GB:ntfs::;
7:299GB:320GB:21.0GB:ntfs::;
sdc:2000GB:scsi:512:4096:msdos:ATA WDC WD20EFRX-68A:;
1:32.3kB:1500GB:1500GB:::;
2:1500GB:2000GB:500GB:ntfs::;
3:2000GB:2000GB:1564kB:::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL            PARTLABEL
sda                                                                                                        
├─sda1 ntfs     8ADA24C3DA24ACFF                     aeef871a-01                          Systeme SSD      
├─sda2 vfat     21B0-DD79                            aeef871a-02                          GRUB             
├─sda3                                               aeef871a-03                                           
├─sda5 ext4     a4a82ed2-cab9-496f-ac18-1f790405d23e aeef871a-05                                           
└─sda6 ntfs     EA22849F2284727D                     aeef871a-06                          Super ReserveSSD 
sdb                                                                                                        
├─sdb1                                               6a97b9c7-01                                           
├─sdb5 ntfs     01D932B8172AC330                     6a97b9c7-05                          Documents        
├─sdb6 ntfs     01D936A0712BBF60                     6a97b9c7-06                          Lecture          
└─sdb7 ntfs     01D9DCD0BBBB41A0                     6a97b9c7-07                          Memvirtuelle     
sdc                                                                                                        
├─sdc1 ntfs     901AE2941AE2771E                                                          Musique          
├─sdc2 ntfs     01CE23700C3A4DE0                                                          Photos           
├─sdc3                                                                                                     
├─sdc4 ntfs     01CE23700F84E500                                                          Films-Series     
└─sdc5 ntfs     01CE2370128CF4E0                                                          Reserve Save     
sdd                                                                                                        
sde                                                                                                        
sdf                                                                                                        
sdg                                                                                                        

Mount points (filtered): _______________________________________________________

                                Avail Use% Mounted on
/dev/sda1                      181.9G  40% /mnt/boot-sav/sda1
/dev/sda2                      500.2M   2% /mnt/boot-sav/sda2
/dev/sda5                       40.7G  26% /
/dev/sda6                      568.7G   0% /mnt/boot-sav/sda6
/dev/sdb5                         39G  34% /mnt/boot-sav/sdb5
/dev/sdb6                      199.1G   9% /mnt/boot-sav/sdb6
/dev/sdb7                       17.1G  13% /mnt/boot-sav/sdb7
/dev/sdc1                      208.9G  55% /mnt/boot-sav/sdc1
/dev/sdc2                       33.8G  86% /mnt/boot-sav/sdc2
/dev/sdc5                      276.6G  41% /mnt/boot-sav/sdc5

Mount options (filtered): ______________________________________________________

/dev/sda1                      fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda2                      vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda5                      ext4            rw,relatime,errors=remount-ro
/dev/sda6                      fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdb5                      fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdb6                      fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdb7                      fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdc1                      fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdc2                      fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdc5                      fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096

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

search.fs_uuid a4a82ed2-cab9-496f-ac18-1f790405d23e root hd0,msdos7 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   a4a82ed2-cab9-496f-ac18-1f790405d23e
Windows 10 (on sda1)   8ADA24C3DA24ACFF
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda5/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda7 during installation
UUID=a4a82ed2-cab9-496f-ac18-1f790405d23e /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda4 during installation
/swapfile                                 none            swap    sw              0       0

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

GRUB_DEFAULT=4
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false

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

           GiB - GB             File                                 Fragment(s)
 358,820152283 = 385,280204800  boot/grub/grub.cfg                             1
 304,866786957 = 327,348219904  boot/grub/i386-pc/core.img                     1
 357,775974274 = 384,159027200  boot/vmlinuz                                   1
 360,830673218 = 387,438985216  boot/vmlinuz-6.5.0-41-generic                  2
 357,775974274 = 384,159027200  boot/vmlinuz-6.5.0-45-generic                  1
 360,830673218 = 387,438985216  boot/vmlinuz.old                               2
 311,653316498 = 334,635200512  boot/initrd.img                                2
 310,469429016 = 333,364011008  boot/initrd.img-6.5.0-41-generic               2
 311,653316498 = 334,635200512  boot/initrd.img-6.5.0-45-generic               2
 310,469429016 = 333,364011008  boot/initrd.img.old                            2

===================== sda5: 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

======================== Unknown MBRs/Boot Sectors/etc =========================

Unknown BootLoader on sdc3


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


Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub2 of
sda5 into the MBR of sda.
Grub-efi would not be selected by default because legacy Windows detected.
Additional repair would be performed: unhide-bootmenu-10s

Confirmation request before suggested repair: __________________________________

SFS detected. You may want to retry after converting Windows dynamic partitioning (SFS partitions) to a basic disk. This can be performed via tools such as TestDisk or EASEUS-Partition-Master / MiniTool-Partition-Wizard.
Are you sure you want to continue anyway?

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your BIOS boot on sda (ATA CT1000MX500SSD1) disk!

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] 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

#8 Le 10/08/2024, à 16:09

geole

Re : Grub sur plusieurs disques

Bonjour
Le boot info confirme de c'est bien une installation légacy.

This installed-session is in Legacy/BIOS/CSM mode (not in EFI mode).

le MBR de SDA est correct.

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of   the same hard drive for core.img. core.img is at this location 
and looks  for (,msdos5)/boot/grub.
avec
sda5: __________________________________________________________________________
    File system:       ext4
    Operating System:  Ubuntu 22.04.4 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 

Mais pas le mbr de SDB.

=> 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 (,msdos6)/boot/grub.
car
sda6: __________________________________________________________________________
    File system:       ntfs
    Boot files:

Mais pas le MBR de SDC .

=> Grub2 (v2.00) is installed in the MBR of /dev/sdc and looks at sector 1 of  the same hard drive for core.img. core.img is at this location and looks for /boot/grub.
 It also embeds following components:
    search.fs_uuid 6dabfc52-96d4-48a8-9fc4-91705a280ff5 root hd0,msdos7 

Il n'y a pas de partition 7 dans le disque sda.

J'ai noté

Disk sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
     Boot     Start        End    Sectors   Size Id Type
sda5       634710016  760645631  125935616  60.1G 83 Linux
Disk sdb: 298.09 GiB, 320072933376 bytes, 625142448 sectors
     Boot     Start       End   Sectors   Size Id Type
sdb5           16128 124547379 124531252  59.4G  7 HPFS/NTFS/exFAT
sdb6       124552008 584187659 459635652 219.2G  7 HPFS/NTFS/exFAT
sdb7       584187723 625137344  40949622  19.5G  7 HPFS/NTFS/exFAT*

                                Avail Use% Mounted on
/dev/sda5                       40.7G  26% /
/dev/sdb5                         39G  34% /mnt/boot-sav/sdb5
/dev/sdb6                      199.1G   9% /mnt/boot-sav/sdb6
/dev/sdb7                       17.1G  13% /mnt/boot-sav/sdb7

Tu devrais donc pouvoir aisément diminuer la taille de SDB6 de 61492 Mo (60.1G)  et  copier SDA5 dans l'espace libéré.

Dernière modification par geole (Le 10/08/2024, à 16:23)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#9 Le 10/08/2024, à 17:14

Babdu89

Re : Grub sur plusieurs disques

Bonjour/
Post#1 on lit;

-  je voudrais pouvoir démarrer directement sur windows sans passer par Grub ?

Dans le boot info on voit que ;

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 0xaeef871a
     Boot     Start        End    Sectors   Size Id Type
sda1            2048  633655295  633653248 302.1G  7 HPFS/NTFS/exFAT
sda2  *    633657344  634707967    1050624   513M ef EFI (FAT-12/16/32)
sda3       634710015 1953523711 1318813697 628.9G  f W95 Ext'd (LBA)
sda5       634710016  760645631  125935616  60.1G 83 Linux
sda6       760661752 1953523711 1192861960 568.8G  7 HPFS/NTFS/exFAT
Disk sdb: 298.09 GiB, 320072933376 bytes, 625142448 sectors
Disk identifier: 0x6a97b9c7
     Boot     Start       End   Sectors   Size Id Type

Que le drapeau boot ( * ) est mis sur le partition /dev/sda2.
Il semble me rappeler que pour démarrer Ubuntu cela n'a pas d'importance.
Mais ce n'est pas de même pour un Windows installé en Legacy. Le boot devrait se faire sur la partition /dev/sda1 qui contient;

Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

Geole confirmera, je propose en live ou en installé Ubuntu, avec Gparted de mettre le drapeau boot sur /dev/sda1, puisque le magasin boot Windows est sur cette partition.

Édit;

Alors si c'est confirmé; Ubuntu ne démarrera plus. Il faudra réinstaller grub de Ubuntu en /dev/sda5; avec boot-repair en passant par les "Options avancées" ;
Grub s'installe en deux parties;
La première partie de grub dans /dev/sd*  (choisir le disque qui te convient, pas /dev/sda)
Et il faudra choisir ce disque pour démarrer Ubuntu.
La deuxième parti de Grub sur /dev/sda5

Mais bon, on peut aussi installer grub tout sur /dev/sda, et il y a une ligne Windows dans Grub au démarrage.

@+.   Babdu89  .

Dernière modification par Babdu89 (Le 10/08/2024, à 17:29)


J'ai découvert Ubuntu avec la 07.10.... Et alors?!...  Depuis je regarde de temps en temps si Windows marche toujours....

Hors ligne

#10 Le 10/08/2024, à 17:22

geole

Re : Grub sur plusieurs disques

Bonjour baddu89.
C est une idée
Mais comme
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of   the same hard drive for core.img. core.img is at this location
Il faudra aussi lancer un boot repair en demandant de réinstaller une structure de boot générique    qui contient alors  le logiciel de recherche de la partition ayant le drapeau boot.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#11 Le 10/08/2024, à 17:35

Babdu89

Re : Grub sur plusieurs disques

Bonjour geole.

Et bien oui c'est vrai il faut réinstaller un mbr Windows dans le secteur de boot de /dev/sda.

@+.   Babdu89  .


J'ai découvert Ubuntu avec la 07.10.... Et alors?!...  Depuis je regarde de temps en temps si Windows marche toujours....

Hors ligne