Résolu le 2-06-24 [Resolut par Jo-con-Ël] ajouter une entrée windows a grub

Postez ici toutes vos demandes d’assistance.
triki1
Messages : 10
Enregistré le : mer. 29 mai 2024 23:32
Localisation : rhone

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

Message 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.
Modifié en dernier par triki1 le sam. 1 juin 2024 20:44, modifié 1 fois.
Kernel: 5.15.0-107-generic x86_64 bits: 64
Desktop: Cinnamon 6.0.4 Distro: Linux Mint 21.3 Virginia
Info: quad core model: AMD Ryzen 3 3200G with Radeon Vega Graphics bits: 64
Device-1: NVIDIA driver: nvidia v: 535.171.04
Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia
Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
Memory: 15.56 GiB used: 1.81 GiB (11.7%)

Avatar du membre
cyrille
Administrateur du site
Messages : 13037
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: ajouter une entrée windows a grub

Message par cyrille »

bjr
Que retourne

Code : Tout sélectionner

cat  /etc/default/grub | egrep PROBER
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

Avatar du membre
cyrille
Administrateur du site
Messages : 13037
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: ajouter une entrée windows a grub

Message 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
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

triki1
Messages : 10
Enregistré le : mer. 29 mai 2024 23:32
Localisation : rhone

Re: ajouter une entrée windows a grub

Message 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
Kernel: 5.15.0-107-generic x86_64 bits: 64
Desktop: Cinnamon 6.0.4 Distro: Linux Mint 21.3 Virginia
Info: quad core model: AMD Ryzen 3 3200G with Radeon Vega Graphics bits: 64
Device-1: NVIDIA driver: nvidia v: 535.171.04
Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia
Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
Memory: 15.56 GiB used: 1.81 GiB (11.7%)

Avatar du membre
cyrille
Administrateur du site
Messages : 13037
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: ajouter une entrée windows a grub

Message par cyrille »

C'est la partition uefi que ta mis et non celle de windows ?
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

triki1
Messages : 10
Enregistré le : mer. 29 mai 2024 23:32
Localisation : rhone

Re: ajouter une entrée windows a grub

Message 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
Kernel: 5.15.0-107-generic x86_64 bits: 64
Desktop: Cinnamon 6.0.4 Distro: Linux Mint 21.3 Virginia
Info: quad core model: AMD Ryzen 3 3200G with Radeon Vega Graphics bits: 64
Device-1: NVIDIA driver: nvidia v: 535.171.04
Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia
Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
Memory: 15.56 GiB used: 1.81 GiB (11.7%)

petit_café
Messages : 19
Enregistré le : jeu. 30 mai 2024 09:46

Re: ajouter une entrée windows a grub

Message 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 ;)
Linux Mint 21.3 Cinnamon / Carte mère : Gigabyte B760-Gaming-X-AX-DDR4 / Processeur : Intel I5 13400F / Mémoire : G.Skill Ripjaws 3200 16Go / Carte graphique : Gigabyte GTX 1070 TI gaming / Boîtier : Fractal Design Pop Air TG / Alimentation Seasonic Focus 650 / Stockage 1 SSD Western Digital Blue 1To / Stockage 2 SSD Western Digital Black 2 TO (jeux) / Écran : Fox Spirit 32 pouces

Jennatux
Messages : 2003
Enregistré le : mer. 1 nov. 2017 01:59

Re: ajouter une entrée windows a grub

Message 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
Clevo
Ubuntu 24.04 - Xubuntu 24.04 - Ubuntu Unity 24.04 - Kubuntu 24.04
Tour Ubuntu Gnome 24.04 - Ubuntu Unity 24.04 - Xubuntu 24.04 - Debian 12 Gnome et Xfce - Linux Mint 21 Cinnamon et Xfce - Lmde6
Avec partition data

Une fraction de seconde

triki1
Messages : 10
Enregistré le : mer. 29 mai 2024 23:32
Localisation : rhone

Re: ajouter une entrée windows a grub

Message par triki1 »

Pour l'affichage grub c'est bon.
Merci a tous

Par contre le dual boot toujours pas, je comprends pas
Kernel: 5.15.0-107-generic x86_64 bits: 64
Desktop: Cinnamon 6.0.4 Distro: Linux Mint 21.3 Virginia
Info: quad core model: AMD Ryzen 3 3200G with Radeon Vega Graphics bits: 64
Device-1: NVIDIA driver: nvidia v: 535.171.04
Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia
Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
Memory: 15.56 GiB used: 1.81 GiB (11.7%)

Avatar du membre
cyrille
Administrateur du site
Messages : 13037
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: ajouter une entrée windows a grub

Message 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 ?
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

Répondre