Fedora-Fr - Communauté francophone Fedora - Linux

Communauté francophone des utilisateurs de la distribution Linux Fedora.

  

Dernière news : Un nouveau logo pour Fedora ?

#1 12/11/2018 20:21:12

tuxrouge
Membre
Inscription : 21/11/2008
Messages : 44

pas de windows en double boot

bonjour à vous

Installation de fedora toute fraiche, je n'ai pas windows au boot
voici mon fichier /boot/efi/EFI/fedora/grub.cfg (je n'ai pas de /boot/grub2/grub.cfg)

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

### BEGIN /etc/grub.d/00_header ###
set pager=1

if [ -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
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 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
}

terminal_output console
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/01_menu_auto_hide ###
if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
  set last_boot_ok=1
else
  set last_boot_ok=0
fi

# Reset boot_indeterminate after a successful boot
if [ "${boot_success}" = "1" ] ; then
  set boot_indeterminate=0
# Avoid boot_indeterminate causing the menu to be hidden more then once
elif [ "${boot_indeterminate}" = "1" ]; then
  set boot_indeterminate=2
fi
set boot_success=0
save_env boot_success boot_indeterminate

if [ x$feature_timeout_style = xy ] ; then
  if [ "${menu_show_once}" ]; then
    unset menu_show_once
    save_env menu_show_once
    set timeout_style=menu
    set timeout=60
  elif [ "${menu_auto_hide}" -a "${last_boot_ok}" = "1" ]; then
    set orig_timeout_style=${timeout_style}
    set orig_timeout=${timeout}
    if [ "${fastboot}" = "1" ]; then
      # timeout_style=menu + timeout=0 avoids the countdown code keypress check
      set timeout_style=menu
      set timeout=0
    else
      set timeout_style=hidden
      set timeout=1
    fi
  fi
fi
### END /etc/grub.d/01_menu_auto_hide ###

### BEGIN /etc/grub.d/01_users ###
if [ -f ${prefix}/user.cfg ]; then
  source ${prefix}/user.cfg
  if [ -n "${GRUB2_PASSWORD}" ]; then
    set superusers="root"
    export superusers
    password_pbkdf2 root ${GRUB2_PASSWORD}
  fi
fi
### END /etc/grub.d/01_users ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora (4.18.17-300.fc29.x86_64) 29 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.18.16-300.fc29.x86_64-advanced-e4274077-99ca-4a42-8ef4-62d5433297d8' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  e4274077-99ca-4a42-8ef4-62d5433297d8
	else
	  search --no-floppy --fs-uuid --set=root e4274077-99ca-4a42-8ef4-62d5433297d8
	fi
	linuxefi	/boot/vmlinuz-4.18.17-300.fc29.x86_64 root=UUID=e4274077-99ca-4a42-8ef4-62d5433297d8 ro resume=UUID=d9da887a-5afb-4857-abd6-7414f046d99f rhgb quiet LANG=fr_FR.UTF-8 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
	initrdefi /boot/initramfs-4.18.17-300.fc29.x86_64.img
}
menuentry 'Fedora (4.18.16-300.fc29.x86_64) 29 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.18.16-300.fc29.x86_64-advanced-e4274077-99ca-4a42-8ef4-62d5433297d8' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  e4274077-99ca-4a42-8ef4-62d5433297d8
	else
	  search --no-floppy --fs-uuid --set=root e4274077-99ca-4a42-8ef4-62d5433297d8
	fi
	linux	/boot/vmlinuz-4.18.16-300.fc29.x86_64 root=UUID=e4274077-99ca-4a42-8ef4-62d5433297d8 ro resume=UUID=d9da887a-5afb-4857-abd6-7414f046d99f rhgb quiet LANG=fr_FR.UTF-8 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
	initrdefi /boot/initramfs-4.18.16-300.fc29.x86_64.img
}
menuentry 'Fedora (0-rescue-1a3ef7dcbc61400f9c3d5445bf4d6d89) 29 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-1a3ef7dcbc61400f9c3d5445bf4d6d89-advanced-e4274077-99ca-4a42-8ef4-62d5433297d8' {
	load_video
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  e4274077-99ca-4a42-8ef4-62d5433297d8
	else
	  search --no-floppy --fs-uuid --set=root e4274077-99ca-4a42-8ef4-62d5433297d8
	fi
	linux	/boot/vmlinuz-0-rescue-1a3ef7dcbc61400f9c3d5445bf4d6d89 root=UUID=e4274077-99ca-4a42-8ef4-62d5433297d8 ro resume=UUID=d9da887a-5afb-4857-abd6-7414f046d99f rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
	initrd	/boot/initramfs-0-rescue-1a3ef7dcbc61400f9c3d5445bf4d6d89.img
}

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

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

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

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### 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 ###

comment puis-je insérer une entrée pour windows 10 (qui est sur sda4 ? je m'inquitète de l'indication en début de fichier "do not edit this file"

Dernière modification par tuxrouge (12/11/2018 20:27:09)

Hors ligne

#2 13/11/2018 16:58:44

tetedecrocro
Membre
Inscription : 09/06/2006
Messages : 151

Re : pas de windows en double boot

Bonjour.

# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Ou alors:

dnf install grub-customizer

( à vérifier sinon dans dnf search)

Grub Customizer c'est une application graphique,  il te faudra faire la mise à jour de grub dans Grub-customizer.
Ensuite reboot et tu verras Windows et Fedora normalement.

Dernière modification par tetedecrocro (13/11/2018 17:16:26)


Fedora 28 XFCE et Cinnamon 29
Linux c'est comme visiter une galaxie de planètes mais on ne connait jamais tout, c'est trop vaste.

Hors ligne

Pied de page des forums