Page 1 sur 2

[Resolut par Jo-con-Ël] ajouter une entrée windows a grub

Posté : mer. 29 mai 2024 23:56
par triki1
Bonjour j'ai un disque dur par system
sda Linux
sdb Windows

J'ai essayé la commande OS-PROBER puis UPDATE-GRUB

Code : Tout sélectionner

Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-107-generic
Found initrd image: /boot/initrd.img-5.15.0-107-generic
Found linux image: /boot/vmlinuz-5.15.0-91-generic
Found initrd image: /boot/initrd.img-5.15.0-91-generic
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
voici ce que j'ai avec la commande BLKID

Code : Tout sélectionner

/dev/sdd1: LABEL="GAMES" BLOCK_SIZE="512" UUID="01D93354486DB8C0" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="0000ff9d-8ba0-47ac-543b-d9013aff0100"
/dev/sdb2: BLOCK_SIZE="512" UUID="2A0C54350C53F9F1" TYPE="ntfs" PARTUUID="d13aa92f-02"
/dev/sdb3: BLOCK_SIZE="512" UUID="C0C8BF12C8BF0626" TYPE="ntfs" PARTUUID="d13aa92f-03"
/dev/sdb1: LABEL="RM-CM-)servM-CM-) au systM-CM-(me" BLOCK_SIZE="512" UUID="82B050DDB050D8ED" TYPE="ntfs" PARTUUID="d13aa92f-01"
/dev/sdc2: LABEL="PARTAGE" BLOCK_SIZE="512" UUID="6890F13056F48C7E" TYPE="ntfs" PARTUUID="8bb92af5-a78d-4698-8748-251237fe9742"
/dev/sdc1: LABEL="AMIGA" BLOCK_SIZE="512" UUID="5FAAE4A578FF2800" TYPE="ntfs" PARTUUID="f86333b9-c04e-4638-a3b0-addc6c444c70"
/dev/sda2: UUID="dbd100f2-b9b2-40a4-9398-6a7173bbf950" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="d899740a-8b2f-4a7f-aecc-df5e6bdb0f46"
/dev/sda1: UUID="57F8-5DD9" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="02701a29-ef78-4fc4-aedf-eb5ce97f5b49"
J'ai sdb1 et sdb2 en partition windows, comment puis-je ajouter une entrée pour avoir un dualboot?
Une autre question je suis obligé de taper sur MAJ en boot du system pour avoir grub, comment puis je l'avoir de suite sans appuyer sur la touche MAJ.

Grand merci a vous, il est tard alors je vous dis a demain.

Re: ajouter une entrée windows a grub

Posté : jeu. 30 mai 2024 08:26
par cyrille
bjr
Que retourne

Code : Tout sélectionner

cat  /etc/default/grub | egrep PROBER

Re: ajouter une entrée windows a grub

Posté : jeu. 30 mai 2024 08:37
par cyrille
Tu devrais lire ce sujet https://www.debian-fr.org/t/grub-option ... ee/86457/5
C'est expliqué comment insérer une entrée win$ au grub si os-prober n'est pas actif ou ne la trouve pas : https://www.debian-fr.org/t/grub-option ... ee/86457/5

Re: ajouter une entrée windows a grub

Posté : jeu. 30 mai 2024 19:13
par triki1
Bonjour merci pour ta réponce
J'ai créer le fichier 40_custom dans etc/default/grub.d

Code : Tout sélectionner

#!/bin/sh
exec tail -n +3 $0
menuentry "Windows" --class windows --class os {
   insmod ntfs    
   search --no-floppy --set=root --fs-uuid 82B050DDB050D8ED
   ntldr /bootmgr
Ensuite j'ai édité etc/grub et placé ceci
# Uncomment this to run os-prober to search for and add other OS
# installations to the grub boot menu
GRUB_DISABLE_OS_PROBER=false

J'ai ensuite lancé la commande update-grub, toujours pas d'entrée, une idée?

Code : Tout sélectionner

Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-107-generic
Found initrd image: /boot/initrd.img-5.15.0-107-generic
Found linux image: /boot/vmlinuz-5.15.0-91-generic
Found initrd image: /boot/initrd.img-5.15.0-91-generic
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.
Adding boot menu entry for UEFI Firmware Settings ...
done

Re: ajouter une entrée windows a grub

Posté : jeu. 30 mai 2024 19:18
par cyrille
C'est la partition uefi que ta mis et non celle de windows ?

Re: ajouter une entrée windows a grub

Posté : jeu. 30 mai 2024 19:32
par triki1
lsblk

Code : Tout sélectionner

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda      8:0    0   3,6T  0 disk 
├─sda1   8:1    0   512M  0 part /boot/efi
└─sda2   8:2    0   3,6T  0 part /
sdb      8:16   0 931,5G  0 disk 
├─sdb1   8:17   0    50M  0 part /media/tux/Réservé au système
├─sdb2   8:18   0 930,9G  0 part 
└─sdb3   8:19   0   611M  0 part 
sdc      8:32   0   3,6T  0 disk 
├─sdc1   8:33   0   1,8T  0 part 
└─sdc2   8:34   0   1,8T  0 part 
sdd      8:48   0   3,6T  0 disk 
└─sdd1   8:49   0   3,6T  0 part 

Code : Tout sélectionner

/dev/sdb2: BLOCK_SIZE="512" UUID="2A0C54350C53F9F1" TYPE="ntfs" PARTUUID="d13aa92f-02"
/dev/sdb3: BLOCK_SIZE="512" UUID="C0C8BF12C8BF0626" TYPE="ntfs" PARTUUID="d13aa92f-03"
/dev/sdb1: LABEL="RM-CM-)servM-CM-) au systM-CM-(me" BLOCK_SIZE="512" UUID="82B050DDB050D8ED" TYPE="ntfs" PARTUUID="d13aa92f-01"
/dev/sdc2: LABEL="PARTAGE" BLOCK_SIZE="512" UUID="6890F13056F48C7E" TYPE="ntfs" PARTUUID="8bb92af5-a78d-4698-8748-251237fe9742"
/dev/sdc1: LABEL="AMIGA" BLOCK_SIZE="512" UUID="5FAAE4A578FF2800" TYPE="ntfs" PARTUUID="f86333b9-c04e-4638-a3b0-addc6c444c70"
/dev/sda2: UUID="dbd100f2-b9b2-40a4-9398-6a7173bbf950" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="d899740a-8b2f-4a7f-aecc-df5e6bdb0f46"
/dev/sda1: UUID="57F8-5DD9" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="02701a29-ef78-4fc4-aedf-eb5ce97f5b49"
Sur nemo :
Réservé au système (/dev/sdb1)
Volume de 1000 GB (/dev/sdb2)

dans le volume Réservé au system soit sdb1 j'ai bien un fichier bootmgr
Je t'aurai bien fait un screenshoot mais je ne sais pas quel soft installer.
Quel est mon erreure?
Merci

Re: ajouter une entrée windows a grub

Posté : jeu. 30 mai 2024 20:29
par petit_café
Bonjour,
triki1 a écrit :
mer. 29 mai 2024 23:56
Une autre question je suis obligé de taper sur MAJ en boot du system pour avoir grub, comment puis je l'avoir de suite sans appuyer sur la touche MAJ.
J'ai cette solution ici : https://forum.ubuntu-fr.org/viewtopic.php?id=2028750

Sinon, sur mon vieux PC, j'avais contourné le problème avec la touche boot lorsque le PC s'allume. Je ne me souviens plus vraiment laquelle, il fallait tapoter sur F quelque-chose. Reste à voir avec le modèle de la carte mère ;)

Re: ajouter une entrée windows a grub

Posté : jeu. 30 mai 2024 22:06
par Jennatux
Bonjour

Cherche la touche boot menu (ça depend des marque de pc , (HP c'est souvent F9 , Chez moi Dell c'est F12 , Clevo F7 )qui te propose le le choix du boot , dans les choix pour EFI tu as peut etre deux possibilités pour Ubuntu , si oui essaye l'autre

Re: ajouter une entrée windows a grub

Posté : jeu. 30 mai 2024 22:13
par triki1
Pour l'affichage grub c'est bon.
Merci a tous

Par contre le dual boot toujours pas, je comprends pas

Re: ajouter une entrée windows a grub

Posté : ven. 31 mai 2024 07:51
par cyrille
Bonjour
Relis le lien donné
Perso je n'ai pas de win$ mais

Code : Tout sélectionner

menuentry "Windows" --class windows --class os {
   insmod ntfs    # à commenter si UEFI
   search --no-floppy --set=root --fs-uuid COPIEZ-UUID
   ntldr /bootmgr    # à commenter si UEFI
   # chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi    # à décommenter si UEFI
}
Si tu es en UEFI, tu as un chainloader à adapter dans ton entrée grub, non ?