Contenu | Rechercher | Menus

Annonce

DVD, clés USB et t-shirts Ubuntu-fr disponibles sur la boutique En Vente Libre

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 21/11/2020, à 13:26

TomurIII

[Résolu] Je n'arrive plus à sélectionné window ou ubuntu.

Bonjour,

Je n'arrive plus à sélectionné window ou ubuntu quand je démarre. J'ai installé ubuntu 20.04 LTS et depuis que j'ai voulu redimensionné mon disque dur pour avoir plus de place sur ubuntu, je n'ai pas réussi. Maintenant je n'arrive plus à démarrer  window 7. L'ordinateur démarre directement sur ubuntu. Comment puis- je avoir nouveau accès  à window 7 ?

Merci d'avance

Dernière modification par TomurIII (Le 23/11/2020, à 13:16)

Hors ligne

#2 Le 21/11/2020, à 17:05

geole

Re : [Résolu] Je n'arrive plus à sélectionné window ou ubuntu.

Bonjour
Te serait-il possible de fournir le résultat d'un boot-info https://doc.ubuntu-fr.org/tutoriel/boot-info

Hors ligne

#3 Le 21/11/2020, à 18:51

TomurIII

Re : [Résolu] Je n'arrive plus à sélectionné window ou ubuntu.

Bonjour,

Voici le rapport du boot-info.

Fichier rapport boot info
C'est un lien we transfer car je ne sais comment ajouter des fichiers.

Merci d'avance

Hors ligne

#4 Le 21/11/2020, à 19:02

geole

Re : [Résolu] Je n'arrive plus à sélectionné window ou ubuntu.

Collage du boot-info

boot-info-4ppa125                                              [20201121_1739]

============================== 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 (,msdos2)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------
 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdb.
 => No boot loader is installed in the MBR of /dev/sdc.

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    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

sda4: __________________________________________________________________________

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

sda5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  According to the info in the boot sector, sda5 starts 
                       at sector 2048.
    Mounting failed:   $MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/sda5': Erreur d'entrée/sortie
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
$MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/sda5': Erreur d'entrée/sortie
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 6.04
    Boot sector info:  Syslinux looks at sector 32776 of /dev/sdb1 for its 
                       second stage. The integrity check of Syslinux failed. 
                       No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /syslinux.cfg 
                       /efi/BOOT/grubx64.efi /efi/BOOT/mmx64.efi /ldlinux.sys

sdc1: __________________________________________________________________________

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


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

OS#1:   Ubuntu 20.04 LTS on sda2
OS#2:   Windows 7 on sda3

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

CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04 LTS, focal, x86_64)


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

BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.

efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0000,0003
Boot0000* Hard Drive	BBS(HD,,0x0)
Boot0001* CD/DVD Drive	BBS(CDROM,,0x0)P2: Optiarc DVD RW AD-7580S   .
Boot0002* UEFI: USB USB Hard Drive	PciRoot(0x0)/Pci(0x1d,0x0)/USB(1,0)/USB(4,0)/HD(1,MBR,0x565a5,0x800,0xeed7c0)
Boot0003* Network Card	BBS(Network,,0x0)Atheros Boot Agent.



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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	not-far
sda3	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda5	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdc1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far

Partitions info (2/3): _________________________________________________________

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

Partitions info (3/3): _________________________________________________________

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,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda3	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda5	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sdc1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdc

fdisk -l (filtered): ___________________________________________________________

Disk sda: 596.18 GiB, 640135028736 bytes, 1250263728 sectors
Disk identifier: 0xaa9693fe
      Boot     Start        End   Sectors   Size Id Type
sda1            2048    1050623   1048576   512M  b W95 FAT32
sda2         1050624   52430847  51380224  24.5G 83 Linux
sda3  *     52430848  552536063 500105216 238.5G  7 HPFS/NTFS/exFAT
sda4       552538110 1249206363 696668254 332.2G  f W95 Ext'd (LBA)
sda5       552538112 1249204315 696666204 332.2G  7 HPFS/NTFS/exFAT
Disk sdb: 7.48 GiB, 8015282176 bytes, 15654848 sectors
Disk identifier: 0x000565a5
      Boot Start      End  Sectors  Size Id Type
sdb1  *     2048 15654847 15652800  7.5G  c W95 FAT32 (LBA)
Disk sdc: 58.43 GiB, 62724374528 bytes, 122508544 sectors
Disk identifier: 0x00000000
      Boot Start       End   Sectors  Size Id Type
sdc1          32 122508543 122508512 58.4G  c W95 FAT32 (LBA)

parted -lm (filtered): _________________________________________________________

sda:640GB:scsi:512:4096:msdos:ATA Hitachi HTS54756:;
1:1049kB:538MB:537MB:fat32::;
2:538MB:26.8GB:26.3GB:ext4::;
3:26.8GB:283GB:256GB:ntfs::boot;
4:283GB:640GB:357GB:::lba;
5:283GB:640GB:357GB:ntfs::;
sdb:8015MB:scsi:512:512:msdos:Kingston DT 101 II:;
1:1049kB:8015MB:8014MB:fat32::boot, lba;
sdc:62.7GB:scsi:512:512:msdos:SanDisk Cruzer Edge:;
1:16.4kB:62.7GB:62.7GB:fat32::lba;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL       PARTLABEL
sda                                                                                                   
├─sda1 vfat     C126-9F2A                            aa9693fe-01                                      
├─sda2 ext4     7ca81cfb-31e9-4ca7-81bc-47c153565e55 aa9693fe-02                                      
├─sda3 ntfs     262485182484EBDD                     aa9693fe-03                          OS          
├─sda4                                               aa9693fe-04                                      
└─sda5 ntfs     C4B6D947B6D93A9E                     aa9693fe-05                          DATA        
sdb                                                                                                   
└─sdb1 vfat     2A78-224C                            000565a5-01                          UBUNTU 20_0 
sdc                                                                                                   
└─sdc1 vfat     DEB4-B13F                                                                 TOM DUTREY  

df (filtered): _________________________________________________________________

       Avail Use% Mounted on
sda1     511M   0% /mnt/boot-sav/sda1
sda2     5.9G  70% /mnt/boot-sav/sda2
sda3   131.7G  45% /mnt/boot-sav/sda3
sdb1     4.9G  34% /cdrom
sdc1    23.1G  60% /mnt/boot-sav/sdc1

Mount options: __________________________________________________________________

sda1   rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda2   rw,relatime
sda3   rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sdb1   ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sdc1   rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

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

Ubuntu   7ca81cfb-31e9-4ca7-81bc-47c153565e55
Ubuntu, with Linux 5.4.0-53-generic   7ca81cfb-31e9-4ca7-81bc-47c153565e55
Ubuntu, with Linux 5.4.0-26-generic   7ca81cfb-31e9-4ca7-81bc-47c153565e55
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda4 during installation
UUID=7ca81cfb-31e9-4ca7-81bc-47c153565e55 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda3 during installation
/swapfile                                 none            swap    sw              0       0

======================= sda2/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=""

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

           GiB - GB             File                                 Fragment(s)
  16,631603241 = 17,858048000   boot/grub/grub.cfg                             1
  17,042274475 = 18,299002880   boot/grub/i386-pc/core.img                     1
  15,582164764 = 16,731222016   boot/vmlinuz                                   1
   3,852535248 = 4,136628224    boot/vmlinuz-5.4.0-26-generic                  2
  15,582164764 = 16,731222016   boot/vmlinuz-5.4.0-53-generic                  1
   3,852535248 = 4,136628224    boot/vmlinuz.old                               2
  16,051395416 = 17,235054592   boot/initrd.img                                3
  10,133445740 = 10,880704512   boot/initrd.img-5.4.0-26-generic               3
  16,051395416 = 17,235054592   boot/initrd.img-5.4.0-53-generic               3
  10,133445740 = 10,880704512   boot/initrd.img.old                            3

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

-rwxr-xr-x 1 root root 17123 avril 15  2020 10_linux
-rwxr-xr-x 1 root root 42128 avril 15  2020 10_linux_zfs
-rwxr-xr-x 1 root root 12894 avril 15  2020 20_linux_xen
-rwxr-xr-x 1 root root 12059 avril 15  2020 30_os-prober
-rwxr-xr-x 1 root root  1424 avril 15  2020 30_uefi-firmware
-rwxr-xr-x 1 root root   214 avril 15  2020 40_custom
-rwxr-xr-x 1 root root   216 avril 15  2020 41_custom

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

Ubuntu
Ubuntu (safe graphics)
OEM install (for manufacturers)
Boot from next volume
UEFI Firmware Settings

========================= sdb1/syslinux.cfg (filtered) =========================

DEFAULT loadconfig

LABEL loadconfig
  CONFIG /isolinux/isolinux.cfg
  APPEND /isolinux/

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1

================== sdb1: Location of files loaded by Syslinux ==================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             syslinux.cfg                                   1
            ?? = ??             ldlinux.sys                                    1


Error code 13
mount -r /dev/sda5 /mnt/boot-sav/sda5

mount -r /dev/sda5 : Error code 13
Unmount sdc1 from /media/ubuntu/TOM DUTREY/ to avoid special characters (& or \ or space) incompatibilities

Error code 13
mount -r /dev/sda5 /mnt/boot-sav/sda5

mount -r /dev/sda5 : Error code 13
Suggested repair: ______________________________________________________________

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

Confirmation request before suggested repair: __________________________________

LegacyWindows detected. The boot of your PC is in EFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.
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 Hitachi HTS54756) disk!
Please set your BIOS in Legacy mode in order to start your Ubuntu 20.04 LTS, then type command [sudo update-grub] in order to add the Windows entry to your GRUB menu.

Comment faire pour traiter cela lorsque windows ne boote pas

 Mounting failed:   $MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/sda5': Erreur d'entrée/sortie
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.


Cela serait plus simple si tu ne bootais pas en EFI mais en LEGACY

===================================== UEFI =====================================
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.

La suite arrive.

Dernière modification par geole (Le 21/11/2020, à 19:08)

Hors ligne

#5 Le 21/11/2020, à 19:08

TomurIII

Re : [Résolu] Je n'arrive plus à sélectionné window ou ubuntu.

Bonjour,

Je ne comprend pas.

Merci

Hors ligne

#6 Le 21/11/2020, à 19:34

geole

Re : [Résolu] Je n'arrive plus à sélectionné window ou ubuntu.

La suite.

fdisk -l (filtered): ___________________________________________________________
Disk sda: 596.18 GiB, 640135028736 bytes, 1250263728 sectors
Disk identifier: 0xaa9693fe
      Boot     Start        End   Sectors   Size Id Type
sda1            2048    1050623   1048576   512M  b W95 FAT32
sda2         1050624   52430847  51380224  24.5G 83 Linux
sda3  *     52430848  552536063 500105216 238.5G  7 HPFS/NTFS/exFAT
sda4       552538110 1249206363 696668254 332.2G  f W95 Ext'd (LBA)
sda5       552538112 1249204315 696666204 332.2G  7 HPFS/NTFS/exFAT
Boot sector info:  According to the info in the boot sector, sda5 starts  at sector 2048.

Je ne sais pas comment tu as fait pour installer ubuntu

Ton disque est partitionné en MS-DOS ( présence d'une partition "Ext'd
Dans un tel contexte , le début du disque contient le logiciel permettant de booter windows
Il a disparu et est remplacé par ubuntu (SDA1 et SDA2)

Si tu disposes encore du support d'installation de windows 7, Tu peux peut-être essayer quelque chose.
Mais je pense que la réparation qu'il peut proposer ne conviendra pas.
Il faudra probablement que tu réinstalle windows

Tu devrais être capable de booter ubuntu

=> 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 (,msdos2)/boot/grub. It also embeds following components:
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk

à condition  que tu ne bootes pas en EFI car en EFI, il n'y a rien d'installé dans la structure de boot

sda1: __________________________________________________________________________
    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

Voici les conseils de boot info

Please do not forget to make your BIOS boot on sda (ATA Hitachi HTS54756) disk!
Please set your BIOS in Legacy mode in order to start your Ubuntu 20.04 LTS, then type command [sudo update-grub] in order to add the Windows entry to your GRUB menu.


Lorsque tu auras booté en LEGACY,  tu pourras tenter

sudo os-prober

si windows est détecté

sudo update-grub

et tu donneras le retour de cette commande par copier/coller

cat /boot/grub/grub.cfg

On verra alors s'il a récupéré windows7

Pour savoir si tu bootes réellement en Legacy (NON-EFI)

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

Si tu ne réussis  pas du tout, tu pourras supprimer la partition SDA1, l'ordinateur bootera certainement alors en LEGACY

Dernière modification par geole (Le 21/11/2020, à 19:37)

Hors ligne

#7 Le 22/11/2020, à 11:16

TomurIII

Re : [Résolu] Je n'arrive plus à sélectionné window ou ubuntu.

Bonjour,

tom@doudou:~$ sudo os-prober
/dev/sda3:Windows 7:Windows:chain
tom@doudou:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Création du fichier de configuration GRUB…
Image Linux trouvée : /boot/vmlinuz-5.4.0-53-generic
Image mémoire initiale trouvée : /boot/initrd.img-5.4.0-53-generic
Image Linux trouvée : /boot/vmlinuz-5.4.0-26-generic
Image mémoire initiale trouvée : /boot/initrd.img-5.4.0-26-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Windows 7 trouvé sur /dev/sda3
fait
tom@doudou:~$ cat /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='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  7ca81cfb-31e9-4ca7-81bc-47c153565e55
else
  search --no-floppy --fs-uuid --set=root 7ca81cfb-31e9-4ca7-81bc-47c153565e55
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-7ca81cfb-31e9-4ca7-81bc-47c153565e55' {
	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='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  7ca81cfb-31e9-4ca7-81bc-47c153565e55
	else
	  search --no-floppy --fs-uuid --set=root 7ca81cfb-31e9-4ca7-81bc-47c153565e55
	fi
	linux	/boot/vmlinuz-5.4.0-53-generic root=UUID=7ca81cfb-31e9-4ca7-81bc-47c153565e55 ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-5.4.0-53-generic
}
submenu 'Options avancées pour Ubuntu' $menuentry_id_option 'gnulinux-advanced-7ca81cfb-31e9-4ca7-81bc-47c153565e55' {
	menuentry 'Ubuntu, avec Linux 5.4.0-53-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-53-generic-advanced-7ca81cfb-31e9-4ca7-81bc-47c153565e55' {
		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='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  7ca81cfb-31e9-4ca7-81bc-47c153565e55
		else
		  search --no-floppy --fs-uuid --set=root 7ca81cfb-31e9-4ca7-81bc-47c153565e55
		fi
		echo	'Chargement de Linux 5.4.0-53-generic…'
		linux	/boot/vmlinuz-5.4.0-53-generic root=UUID=7ca81cfb-31e9-4ca7-81bc-47c153565e55 ro  quiet splash $vt_handoff
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.4.0-53-generic
	}
	menuentry 'Ubuntu, avec Linux 5.4.0-53-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-53-generic-recovery-7ca81cfb-31e9-4ca7-81bc-47c153565e55' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		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  7ca81cfb-31e9-4ca7-81bc-47c153565e55
		else
		  search --no-floppy --fs-uuid --set=root 7ca81cfb-31e9-4ca7-81bc-47c153565e55
		fi
		echo	'Chargement de Linux 5.4.0-53-generic…'
		linux	/boot/vmlinuz-5.4.0-53-generic root=UUID=7ca81cfb-31e9-4ca7-81bc-47c153565e55 ro recovery nomodeset 
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.4.0-53-generic
	}
	menuentry 'Ubuntu, avec Linux 5.4.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-26-generic-advanced-7ca81cfb-31e9-4ca7-81bc-47c153565e55' {
		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='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  7ca81cfb-31e9-4ca7-81bc-47c153565e55
		else
		  search --no-floppy --fs-uuid --set=root 7ca81cfb-31e9-4ca7-81bc-47c153565e55
		fi
		echo	'Chargement de Linux 5.4.0-26-generic…'
		linux	/boot/vmlinuz-5.4.0-26-generic root=UUID=7ca81cfb-31e9-4ca7-81bc-47c153565e55 ro  quiet splash $vt_handoff
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.4.0-26-generic
	}
	menuentry 'Ubuntu, avec Linux 5.4.0-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-26-generic-recovery-7ca81cfb-31e9-4ca7-81bc-47c153565e55' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		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  7ca81cfb-31e9-4ca7-81bc-47c153565e55
		else
		  search --no-floppy --fs-uuid --set=root 7ca81cfb-31e9-4ca7-81bc-47c153565e55
		fi
		echo	'Chargement de Linux 5.4.0-26-generic…'
		linux	/boot/vmlinuz-5.4.0-26-generic root=UUID=7ca81cfb-31e9-4ca7-81bc-47c153565e55 ro recovery nomodeset 
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.4.0-26-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='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  7ca81cfb-31e9-4ca7-81bc-47c153565e55
	else
	  search --no-floppy --fs-uuid --set=root 7ca81cfb-31e9-4ca7-81bc-47c153565e55
	fi
	knetbsd	/boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
	insmod part_msdos
	insmod ext2
	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  7ca81cfb-31e9-4ca7-81bc-47c153565e55
	else
	  search --no-floppy --fs-uuid --set=root 7ca81cfb-31e9-4ca7-81bc-47c153565e55
	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/sda3)' --class windows --class os $menuentry_id_option 'osprober-chain-262485182484EBDD' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  262485182484EBDD
	else
	  search --no-floppy --fs-uuid --set=root 262485182484EBDD
	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 ###
tom@doudou:~$       [ -d /sys/firmware/efi ] && echo "Session EFI" || echo "Session non-EFI" 
Session non-EFI

Merci

Hors ligne

#8 Le 22/11/2020, à 13:04

geole

Re : [Résolu] Je n'arrive plus à sélectionné window ou ubuntu.

Bonjour
Il y a de l'espoir.     Il propose le choix de windows

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

Tu vas donc pouvoir rebooter , choisir windows et voir sa réaction.

Hors ligne

#9 Le 22/11/2020, à 13:17

TomurIII

Re : [Résolu] Je n'arrive plus à sélectionné window ou ubuntu.

Bonjour,

Je peut à nouveau sélectionner windows 7 ou ubuntu.

Merci pour tout.

Hors ligne