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 22/10/2021, à 17:28

JLK

[Ubuntu 20.04.3] 2 entrées Windows dans Grub

Bonjour à tous.

En réinstallant Ubuntu 20.04.3 il y a quelques semaines, j'ai constaté l'apparition d'une deuxième entrée Windows dans le menu GRUB, correspondant à la partition cachée de Windows (sda1). Évidemment, ça ne pointe pas vers le système Windows (sda2). lol Et si je supprime le bloc de texte en trop, il finit par revenir à la suite des mises à jour du noyau, suite à la mise à jour du menu de démarrage de GRUB. Franchement pas top... sad

Comment peut-on y remédier ? Est-ce un bug de l'installateur dUbuntu ? Ou de GRUB ?

Merci de votre compréhension. smile

P.S. : en voulant essayer boot-repair, je ne peux vous montrer le fichier en question, qui demande un compte Ubuntu One... hmm mad

Dernière modification par JLK (Le 22/10/2021, à 17:32)

Hors ligne

#2 Le 22/10/2021, à 17:36

iznobe

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Bonjour , il suffit de mettre le lien ici , comme indiqué dans le tutoriel d ' ailleurs .
il y a aussi une option dans boot info qui permet d' obtenir tout le " truc "  dans un fichier texte , il faut encore regarder dans le choix des options de boot info , selectionner tout ce qu ' il y a dans le fichier en question avec CTRL+A puis sur le forum , appuyer sur balise code puis coller en plein milieu de [ code]    [ /code] .

Dernière modification par iznobe (Le 22/10/2021, à 17:41)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

En ligne

#4 Le 22/10/2021, à 17:51

iznobe

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Voici le rapport en question :

boot-repair-4ppa130                                              [20211022_1713]

============================== 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 /boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid cfc1660e-b106-47c6-86a9-afed4ffa6d07 root hd1,msdos5 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------
 => 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 (,msdos5)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: 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

sdb1: __________________________________________________________________________

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

sdb5: __________________________________________________________________________

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

sdb6: __________________________________________________________________________

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

sdb7: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Unknown
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdb2: __________________________________________________________________________

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


================================ 3 OS detected =================================

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.3 LTS CurrentSession on sdb5
OS#2:   Windows 7 (boot) on sda1
OS#3:   Windows 7 on sda2

============================ Architecture/Host Info ============================

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.11.0-38-generic root=UUID=cfc1660e-b106-47c6-86a9-afed4ffa6d07 ro quiet splash vt.handoff=7


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

This installed-session is not in EFI-mode.



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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

sdb5	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	not-far
sda1	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb6	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb7	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sdb5	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot
sdb2	: 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
sdb7	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sdb5	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sdb
sda1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda2	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sdb2	: maybesepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb
sdb6	: maybesepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb
sdb7	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb

fdisk -l (filtered): ___________________________________________________________

Disk sda: 119.25 GiB, 128035676160 bytes, 250069680 sectors
Disk identifier: 0xff5fd223
      Boot  Start       End   Sectors   Size Id Type
sda1         2048    206847    204800   100M  7 HPFS/NTFS/exFAT
sda2  *    206848 250066222 249859375 119.1G  7 HPFS/NTFS/exFAT
Disk sdb: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk identifier: 0xf8608bf8
      Boot      Start        End    Sectors   Size Id Type
sdb1             2048 1953519615 1953517568 931.5G  5 Extended
sdb2       1953519616 3907028991 1953509376 931.5G 83 Linux
sdb5  *          4096  104861695  104857600    50G 83 Linux
sdb6        104863744  209721343  104857600    50G 83 Linux
sdb7        209723392 1953519615 1743796224 831.5G  7 HPFS/NTFS/exFAT
Partition table entries are not in disk order.

parted -lm (filtered): _________________________________________________________

sda:128GB:scsi:512:512:msdos:ATA SAMSUNG SSD 830:;
1:1049kB:106MB:105MB:ntfs::;
2:106MB:128GB:128GB:ntfs::boot;
sdb:2000GB:scsi:512:4096:msdos:ATA ST2000LX001-1RG1:;
1:1049kB:1000GB:1000GB:::;
5:2097kB:53.7GB:53.7GB:ext4::boot;
6:53.7GB:107GB:53.7GB:ext4::;
7:107GB:1000GB:893GB:ntfs::;
2:1000GB:2000GB:1000GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL              PARTLABEL
sda                                                                                                          
├─sda1 ntfs     FC84959F84955CC8                     ff5fd223-01                          Réservé au système 
└─sda2 ntfs     FE1AA7661AA71AA3                     ff5fd223-02                          WINDOWS            
sdb                                                                                                          
├─sdb1                                               f8608bf8-01                                             
├─sdb2 ext4     eec9c9cf-8e82-4f5a-befa-ef289db84d45 f8608bf8-02                          Données            
├─sdb5 ext4     cfc1660e-b106-47c6-86a9-afed4ffa6d07 f8608bf8-05                          RACINE             
├─sdb6 ext4     7731c179-7540-4c8a-8d2e-8daa4f7dd3a9 f8608bf8-06                          HOME               
└─sdb7 ntfs     611F071D5711EC3C                     f8608bf8-07                          BACKUP             

df (filtered): _________________________________________________________________

                   Avail Use% Mounted on
sda1               74.8M  25% /mnt/FC84959F84955CC8
sda2               27.6G  77% /media/WINDOWS
sdb2              503.6G  40% /media/Donnxc3xa9es
sdb5               29.6G  34% /
sdb6                 13G  68% /home
sdb7              338.9G  59% /media/BACKUP

Mount options: __________________________________________________________________

sda1              rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda2              rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
sdb2              rw,nosuid,nodev,relatime
sdb5              rw,relatime,errors=remount-ro
sdb6              rw,relatime
sdb7              rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096

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

Ubuntu   cfc1660e-b106-47c6-86a9-afed4ffa6d07
Ubuntu, avec Linux 5.11.0-38-generic   cfc1660e-b106-47c6-86a9-afed4ffa6d07
Ubuntu, avec Linux 5.11.0-37-generic   cfc1660e-b106-47c6-86a9-afed4ffa6d07
Ubuntu, avec Linux 5.8.0-59-generic   cfc1660e-b106-47c6-86a9-afed4ffa6d07
Ubuntu, avec Linux 5.4.0-80-generic   cfc1660e-b106-47c6-86a9-afed4ffa6d07
Windows 7 (sur sda1)   FC84959F84955CC8
Windows 7 (sur sda2)   FE1AA7661AA71AA3
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sdb5/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb5 during installation
UUID=cfc1660e-b106-47c6-86a9-afed4ffa6d07 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sdb6 during installation
UUID=7731c179-7540-4c8a-8d2e-8daa4f7dd3a9 /home           ext4    defaults        0       2
# /media/BACKUP was on /dev/sdb7 during installation
UUID=611F071D5711EC3C /media/BACKUP   ntfs    defaults,umask=007,gid=46 0       0
# /media/WINDOWS was on /dev/sda2 during installation
UUID=FE1AA7661AA71AA3 /media/WINDOWS  ntfs    defaults,umask=007,gid=46 0       0
/swapfile                                 none            swap    sw              0       0
/dev/disk/by-uuid/FC84959F84955CC8 /mnt/FC84959F84955CC8 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/eec9c9cf-8e82-4f5a-befa-ef289db84d45 /media/Données auto nosuid,nodev,nofail 0 0

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

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

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

           GiB - GB             File                                 Fragment(s)
  12,175655365 = 13,073510400   boot/grub/grub.cfg                             2
  16,381378174 = 17,589370880   boot/grub/i386-pc/core.img                     1
   8,212886810 = 8,818520064    boot/vmlinuz                                   2
  12,722324371 = 13,660491776   boot/vmlinuz-5.11.0-37-generic                 1
   8,212886810 = 8,818520064    boot/vmlinuz-5.11.0-38-generic                 2
   6,989475250 = 7,504891904    boot/vmlinuz-5.4.0-80-generic                  1
   4,386077881 = 4,709515264    boot/vmlinuz-5.8.0-59-generic                  1
  12,722324371 = 13,660491776   boot/vmlinuz.old                               1
  13,083980560 = 14,048817152   boot/initrd.img                                3
  12,879474640 = 13,829230592   boot/initrd.img-5.11.0-37-generic              2
  13,083980560 = 14,048817152   boot/initrd.img-5.11.0-38-generic              3
   9,493869781 = 10,193965056   boot/initrd.img-5.4.0-80-generic               3
   9,275112152 = 9,959075840    boot/initrd.img-5.8.0-59-generic               3
  12,879474640 = 13,829230592   boot/initrd.img.old                            2

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

-rwxr-xr-x 1 root root 18151 août  12 11:18 10_linux
-rwxr-xr-x 1 root root 42359 janv. 13  2021 10_linux_zfs
-rwxr-xr-x 1 root root 12894 janv. 13  2021 20_linux_xen
-rwxr-xr-x 1 root root 12059 janv. 13  2021 30_os-prober
-rwxr-xr-x 1 root root  1424 janv. 13  2021 30_uefi-firmware
-rwxr-xr-x 1 root root   214 janv. 13  2021 40_custom
-rwxr-xr-x 1 root root   216 janv. 13  2021 41_custom


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

Unknown BootLoader on sdb7

00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 20 80 0c  |........?.... ..|
00000020  00 00 00 00 80 00 80 00  ff 37 f0 67 00 00 00 00  |.........7.g....|
00000030  04 00 00 00 00 00 00 00  7f 03 7f 06 00 00 00 00  |................|
00000040  f6 00 00 00 01 00 00 00  3c ec 11 57 1d 07 1f 61  |........<..W...a|
00000050  00 00 00 00 0e 1f be 71  7c ac 22 c0 74 0b 56 b4  |.......q|.".t.V.|
00000060  0e bb 07 00 cd 10 5e eb  f0 32 e4 cd 16 cd 19 eb  |......^..2......|
00000070  fe 54 68 69 73 20 69 73  20 6e 6f 74 20 61 20 62  |.This is not a b|
00000080  6f 6f 74 61 62 6c 65 20  64 69 73 6b 2e 20 50 6c  |ootable disk. Pl|
00000090  65 61 73 65 20 69 6e 73  65 72 74 20 61 20 62 6f  |ease insert a bo|
000000a0  6f 74 61 62 6c 65 20 66  6c 6f 70 70 79 20 61 6e  |otable floppy an|
000000b0  64 0d 0a 70 72 65 73 73  20 61 6e 79 20 6b 65 79  |d..press any key|
000000c0  20 74 6f 20 74 72 79 20  61 67 61 69 6e 20 2e 2e  | to try again ..|
000000d0  2e 20 0d 0a 00 00 00 00  00 00 00 00 00 00 00 00  |. ..............|
000000e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200


================================= User choice ==================================

Is sdb (ATA ST2000LX001-1RG1) a removable disk? no

Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub2 of
sdb5 into the MBRs of all disks (except live-disks and removable disks without OS).
Additional repair would be performed: unhide-bootmenu-10s      

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your BIOS boot on sdb (ATA ST2000LX001-1RG1) disk!

retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

En ligne

#5 Le 22/10/2021, à 17:52

JLK

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Merci iznobe. Je ne pouvais pas le voir.

Hors ligne

#6 Le 22/10/2021, à 17:56

iznobe

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

wink reste plus qu ' a attendre l ' avis des specialistes . c  ' est la 1ere fois que je vois cela .

Dernière modification par iznobe (Le 22/10/2021, à 17:56)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

En ligne

#7 Le 22/10/2021, à 18:00

JLK

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

iznobe a écrit :

wink reste plus qu ' a attendre l ' avis des specialistes . c  ' est la 1ere fois que je vois cela .

Voir quoi ? Deux entrées Windows ? L'une bonne, et l'autre qui n'a pas lieu d'être ?

Hors ligne

#8 Le 22/10/2021, à 18:43

geole

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Bonjour.
C'est une présentation standard d'une installation windows legacy.
Dans un tel contexte, il peut arriver que le windows de la première partition ne boote pas.
Pour éviter sa génération, il faut ajouter une ligne dans le fichier /etc/default/grub.
Voir paragraphe 2.5 de ce document https://doc.ubuntu-fr.org/tutoriel/grub … age_manuel
donc, pour toi

GRUB_OS_PROBER_SKIP_LIST="FC84959F84955CC8@/dev/sda1"

Puis mettre à jour le grub.

sudo update-grub

Dernière modification par geole (Le 22/10/2021, à 18:54)


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

En ligne

#9 Le 22/10/2021, à 18:56

JLK

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

geole a écrit :

Bonjour.
C'est une présentation standard d'une installation windows legacy.
Dans un tel contexte, il peut arriver que le windows de la première partition ne boote pas.
Pour éviter sa génération, il faut ajouter une ligne dans le fichier /etc/default/grub.
Voir paragraphe 2.5 de ce document https://doc.ubuntu-fr.org/tutoriel/grub … age_manuel
donc, pour toi

GRUB_OS_PROBER_SKIP_LIST="FC84959F84955CC8@/dev/sda1"

Puis mettre à jour le grub.

sudo update-grub

C'est assez étrange qu'il y ait cette apparition.

Hors ligne

#10 Le 22/10/2021, à 19:18

geole

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Voici le rapport en question :

sda1: __________________________________________________________________________
    Boot files:        /bootmgr /Boot/BCD
sda2: __________________________________________________________________________
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe
================================ 3 OS detected =================================
OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.3 LTS CurrentSession on sdb5
OS#2:   Windows 7 (boot) on sda1
OS#3:   Windows 

Je ne sais pas ce que le /boot/bcd de sda1 veut lancer. peut-être l'installation de windows.


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

En ligne

#11 Le 22/10/2021, à 21:38

JLK

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

geole a écrit :

Voici le rapport en question :

sda1: __________________________________________________________________________
    Boot files:        /bootmgr /Boot/BCD
sda2: __________________________________________________________________________
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe
================================ 3 OS detected =================================
OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.3 LTS CurrentSession on sdb5
OS#2:   Windows 7 (boot) on sda1
OS#3:   Windows 

Je ne sais pas ce que le /boot/bcd de sda1 veut lancer. peut-être l'installation de windows.

Je ne comprends pas, Windows est déjà installé.

Hors ligne

#12 Le 23/10/2021, à 11:30

geole

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Bonjour.

https://aidewindows.net/seven/partition1.php#partition1 a écrit :

Partition invisible de 100 Mo :

Lors de l'installation de Windows 7 sur un disque neuf, il est proposé de créer une partition pour le système de 100 Mo
Cette partition est très utile.
Elle n'apparaîtra pas ensuite en utilisation normale. Mais elle sera visible dans le Gestionnaire de disque.

http://www.chantal11.com/2009/05/la-partition-cachee-primaire-installee-par-windows-7/ a écrit :

Elle contient en fait l’Environnement de récupération WinRE qui va permettre de récupérer le système en cas de problème de démarrage, par la ligne Réparer l’ordinateur dans les options avancées de démarrage (appelées par F8 au démarrage).

Dernière modification par geole (Le 23/10/2021, à 11:36)


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

En ligne

#13 Le 24/10/2021, à 11:37

JLK

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Chez moi, lorsque je sélectionne la partition de restauration de Windows, j'ai le droit à un grub error ou quelque chose comme ça.

Hors ligne

#14 Le 25/10/2021, à 14:42

ikewdu

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Qid a écrit :
ikewdu a écrit :

supprimer les fichiers de démarrage inutiles de Windows.

Encore faudrait-il savoir lesquels sont-ils...

Salut,

Si on en croit ce que dit JLK, ce sont ceux-là :

sda1: __________________________________________________________________________
    Boot files:        /bootmgr /Boot/BCD

Ça semble confirmé par l'emplacement du drapeau boot sur sda2. De toute manière, c'est aisément vérifiable depuis windows par une capture du gestionnaire de disques ou par la commande (en mode administrateur) :

bcdedit /v

Par ailleurs, il ne s'agit nullement de la partition de restauration (tu n'en as pas) mais c'est la partition. "Reserved". Pour savoir où se trouve l'éventuelle console de restauration, il faut taper sous windows :

reagentc /info

Et pour info, tu as un GRUB dans le mbr de sda qui n'a rien à y faire. Ton Windows n'est plus capable de booter sans le disque sdb. Cadeau de boot-repair.

Si Qid a le même souci, mieux vaut qu'il ouvre un sujet et on y regardera de près. Rien ne prouve que la situation soit identique.

Qid a écrit :

Mais je doute que passer par la simple suppression de fichiers soit très catholique.

S'il s'agit de ceux sur sda1, on pourra même faire pire : supprimer la partition... Est-ce catholique ? On verra au retour des commandes demandées.

Dernière modification par ikewdu (Le 25/10/2021, à 15:08)

Hors ligne

#15 Le 25/10/2021, à 21:27

JLK

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Donc d'où vient le problème quand il y a une mise à jour du GRUB ? De la détection de os-prober ?

Hors ligne

#16 Le 25/10/2021, à 21:30

ikewdu

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

JLK a écrit :

Donc d'où vient le problème quand il y a une mise à jour du GRUB ? De la détection de os-prober ?

Ça vient du fait que tu as 2 fichiers bootmgr, dont un dysfonctionne. Soit tu appliques la commande de Geôle, soit tu vires définitivement celui qui ne sert à rien.

Pour info, vos deux cas sont sans lien. Les traiter dans un sujet commun pose souci.

Dernière modification par ikewdu (Le 25/10/2021, à 21:53)

Hors ligne

#17 Le 25/10/2021, à 23:23

ikewdu

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

geole a écrit :

Voir cette discussion oû je patauge. https://forum.ubuntu-fr.org/viewtopic.php?id=2067653

Perso, j'ai trop oublié comment fonctionne XP  pour m'en mêler.

Hors ligne

#18 Le 26/10/2021, à 01:39

JLK

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Ça semble un peu compliqué, cette histoire. hmm

Hors ligne

#19 Le 26/10/2021, à 07:14

ikewdu

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

JLK a écrit :

Ça semble un peu compliqué, cette histoire. hmm

Re,
De ton côté, si tu as suivi le conseil de Geôle, ton souci est supposé réglé. Si tu veux identifier les fichiers posant problème, voire les supprimer, il faut me donner le retour de commandes demandées précédemment, de préférence sur un forum Windows. J'interviens sur PCA si tu le souhaites

Dernière modification par ikewdu (Le 26/10/2021, à 07:14)

Hors ligne

#20 Le 26/10/2021, à 19:27

JLK

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Je n'ai pas encore opéré mes modifications.
Donc si je résume bien, j'ajoute une ligne :

GRUB_OS_PROBER_SKIP_LIST="FC84959F84955CC8@/dev/sda1"

dans /etc/default/grub puis on met à jour le GRUB, avec :

sudo update-grub

C'est bien ça ?

Dernière modification par JLK (Le 26/10/2021, à 19:38)

Hors ligne

#21 Le 26/10/2021, à 19:34

geole

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Bonjour
Oui puisque c'est SDA1 qui ne fonctionne pas si j'ai bien compris

blkid (filtered): ______________________________________________________________
NAME   FSTYPE   UUID                                 PARTUUID                             LABEL              PARTLABEL
sda                                                                                                          
├─sda1 ntfs     FC84959F84955CC8                     ff5fd223-01   

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

En ligne

#22 Le 26/10/2021, à 19:41

JLK

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Je viens d'effectuer la manipulation sans redémarrage.

Voici le contenu de mon nouveau /boot/grub/grub.cfg :

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${initrdfail}" = 2 ]; then
   set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
   set next_entry="${prev_entry}"
   set prev_entry=
   save_env prev_entry
   if [ "${next_entry}" ]; then
      set initrdfail=2
   fi
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function initrdfail {
    if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
      if [ -z "${initrdfail}" ]; then
        set initrdfail=1
        if [ -n "${boot_once}" ]; then
          set prev_entry="${default}"
          save_env prev_entry
        fi
      fi
      save_env initrdfail
    fi; fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd1,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5  cfc1660e-b106-47c6-86a9-afed4ffa6d07
else
  search --no-floppy --fs-uuid --set=root cfc1660e-b106-47c6-86a9-afed4ffa6d07
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=fr_FR
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=hidden
    set timeout=10
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 10 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cfc1660e-b106-47c6-86a9-afed4ffa6d07' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5  cfc1660e-b106-47c6-86a9-afed4ffa6d07
	else
	  search --no-floppy --fs-uuid --set=root cfc1660e-b106-47c6-86a9-afed4ffa6d07
	fi
	linux	/boot/vmlinuz-5.11.0-38-generic root=UUID=cfc1660e-b106-47c6-86a9-afed4ffa6d07 ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-5.11.0-38-generic
}
submenu 'Options avancées pour Ubuntu' $menuentry_id_option 'gnulinux-advanced-cfc1660e-b106-47c6-86a9-afed4ffa6d07' {
	menuentry 'Ubuntu, avec Linux 5.11.0-38-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.11.0-38-generic-advanced-cfc1660e-b106-47c6-86a9-afed4ffa6d07' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5  cfc1660e-b106-47c6-86a9-afed4ffa6d07
		else
		  search --no-floppy --fs-uuid --set=root cfc1660e-b106-47c6-86a9-afed4ffa6d07
		fi
		echo	'Chargement de Linux 5.11.0-38-generic…'
		linux	/boot/vmlinuz-5.11.0-38-generic root=UUID=cfc1660e-b106-47c6-86a9-afed4ffa6d07 ro  quiet splash $vt_handoff
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.11.0-38-generic
	}
	menuentry 'Ubuntu, avec Linux 5.11.0-38-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.11.0-38-generic-recovery-cfc1660e-b106-47c6-86a9-afed4ffa6d07' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5  cfc1660e-b106-47c6-86a9-afed4ffa6d07
		else
		  search --no-floppy --fs-uuid --set=root cfc1660e-b106-47c6-86a9-afed4ffa6d07
		fi
		echo	'Chargement de Linux 5.11.0-38-generic…'
		linux	/boot/vmlinuz-5.11.0-38-generic root=UUID=cfc1660e-b106-47c6-86a9-afed4ffa6d07 ro recovery nomodeset dis_ucode_ldr 
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.11.0-38-generic
	}
	menuentry 'Ubuntu, avec Linux 5.11.0-37-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.11.0-37-generic-advanced-cfc1660e-b106-47c6-86a9-afed4ffa6d07' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5  cfc1660e-b106-47c6-86a9-afed4ffa6d07
		else
		  search --no-floppy --fs-uuid --set=root cfc1660e-b106-47c6-86a9-afed4ffa6d07
		fi
		echo	'Chargement de Linux 5.11.0-37-generic…'
		linux	/boot/vmlinuz-5.11.0-37-generic root=UUID=cfc1660e-b106-47c6-86a9-afed4ffa6d07 ro  quiet splash $vt_handoff
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.11.0-37-generic
	}
	menuentry 'Ubuntu, avec Linux 5.11.0-37-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.11.0-37-generic-recovery-cfc1660e-b106-47c6-86a9-afed4ffa6d07' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5  cfc1660e-b106-47c6-86a9-afed4ffa6d07
		else
		  search --no-floppy --fs-uuid --set=root cfc1660e-b106-47c6-86a9-afed4ffa6d07
		fi
		echo	'Chargement de Linux 5.11.0-37-generic…'
		linux	/boot/vmlinuz-5.11.0-37-generic root=UUID=cfc1660e-b106-47c6-86a9-afed4ffa6d07 ro recovery nomodeset dis_ucode_ldr 
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.11.0-37-generic
	}
	menuentry 'Ubuntu, avec Linux 5.8.0-59-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.8.0-59-generic-advanced-cfc1660e-b106-47c6-86a9-afed4ffa6d07' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5  cfc1660e-b106-47c6-86a9-afed4ffa6d07
		else
		  search --no-floppy --fs-uuid --set=root cfc1660e-b106-47c6-86a9-afed4ffa6d07
		fi
		echo	'Chargement de Linux 5.8.0-59-generic…'
		linux	/boot/vmlinuz-5.8.0-59-generic root=UUID=cfc1660e-b106-47c6-86a9-afed4ffa6d07 ro  quiet splash $vt_handoff
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.8.0-59-generic
	}
	menuentry 'Ubuntu, avec Linux 5.8.0-59-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.8.0-59-generic-recovery-cfc1660e-b106-47c6-86a9-afed4ffa6d07' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5  cfc1660e-b106-47c6-86a9-afed4ffa6d07
		else
		  search --no-floppy --fs-uuid --set=root cfc1660e-b106-47c6-86a9-afed4ffa6d07
		fi
		echo	'Chargement de Linux 5.8.0-59-generic…'
		linux	/boot/vmlinuz-5.8.0-59-generic root=UUID=cfc1660e-b106-47c6-86a9-afed4ffa6d07 ro recovery nomodeset dis_ucode_ldr 
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.8.0-59-generic
	}
	menuentry 'Ubuntu, avec Linux 5.4.0-80-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-80-generic-advanced-cfc1660e-b106-47c6-86a9-afed4ffa6d07' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5  cfc1660e-b106-47c6-86a9-afed4ffa6d07
		else
		  search --no-floppy --fs-uuid --set=root cfc1660e-b106-47c6-86a9-afed4ffa6d07
		fi
		echo	'Chargement de Linux 5.4.0-80-generic…'
		linux	/boot/vmlinuz-5.4.0-80-generic root=UUID=cfc1660e-b106-47c6-86a9-afed4ffa6d07 ro  quiet splash $vt_handoff
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.4.0-80-generic
	}
	menuentry 'Ubuntu, avec Linux 5.4.0-80-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-80-generic-recovery-cfc1660e-b106-47c6-86a9-afed4ffa6d07' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5  cfc1660e-b106-47c6-86a9-afed4ffa6d07
		else
		  search --no-floppy --fs-uuid --set=root cfc1660e-b106-47c6-86a9-afed4ffa6d07
		fi
		echo	'Chargement de Linux 5.4.0-80-generic…'
		linux	/boot/vmlinuz-5.4.0-80-generic root=UUID=cfc1660e-b106-47c6-86a9-afed4ffa6d07 ro recovery nomodeset dis_ucode_ldr 
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.4.0-80-generic
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5  cfc1660e-b106-47c6-86a9-afed4ffa6d07
	else
	  search --no-floppy --fs-uuid --set=root cfc1660e-b106-47c6-86a9-afed4ffa6d07
	fi
	knetbsd	/boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5  cfc1660e-b106-47c6-86a9-afed4ffa6d07
	else
	  search --no-floppy --fs-uuid --set=root cfc1660e-b106-47c6-86a9-afed4ffa6d07
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (sur /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-FE1AA7661AA71AA3' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  FE1AA7661AA71AA3
	else
	  search --no-floppy --fs-uuid --set=root FE1AA7661AA71AA3
	fi
	parttool ${root} hidden-
	chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

C'est bon, maintenant, non ?

Dernière modification par JLK (Le 26/10/2021, à 19:42)

Hors ligne

#23 Le 26/10/2021, à 19:48

geole

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Il semble que oui puisqu'il n'y a plus qu'une entrée de générée
Normalement il prévient qu'il ne regarde pas dans la partition au moment de la génération du fichier

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (sur /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-FE1AA7661AA71AA3' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  FE1AA7661AA71AA3
	else
	  search --no-floppy --fs-uuid --set=root FE1AA7661AA71AA3
	fi
	parttool ${root} hidden-
	chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

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

En ligne

#24 Le 27/10/2021, à 08:01

ikewdu

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

Salut,

La question que je me pose maintenant : puisque sda1 ne sert à rien, comme on le dit depuis l'affichage du rapport boot-info, que se passera-t-il côté Grub si on vient à la supprimer ? Peut-on s'attendre à un message d'erreur bloquant au démarrage ?

Hors ligne

#25 Le 27/10/2021, à 09:08

Qid

Re : [Ubuntu 20.04.3] 2 entrées Windows dans Grub

ikewdu a écrit :

Si Qid a le même souci, mieux vaut qu'il ouvre un sujet et on y regardera de près. Rien ne prouve que la situation soit identique.

Qid a écrit :

Mais je doute que passer par la simple suppression de fichiers soit très catholique.

S'il s'agit de ceux sur sda1, on pourra même faire pire : supprimer la partition... Est-ce catholique ? On verra au retour des commandes demandées.

Pour ceux qui l'aurait raté mon cas a été basculé ici

Sinon à part ça je reste pas d'accord avec ça

ikewdu a écrit :

La question que je me pose maintenant : puisque sda1 ne sert à rien, comme on le dit depuis l'affichage du rapport boot-info, que se passera-t-il côté Grub si on vient à la supprimer ?

Sda1 est quand-même marqué comme boot dans son rapport ("OS#2:   Windows 7 (boot) on sda1")... Et windows en installation d'usine a toujours mis son démarreur sur une autre partition que la partition système...

Édit : moi ce qui me chiffonne du coup maintenant c'est que je viens de percuter la différence entre nos 2 cas...

Dernière modification par Qid (Le 27/10/2021, à 09:12)


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne