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 28/12/2022, à 14:52

fred101

Grub en vrac !! [résolu]

Bonjour tout le monde et meilleurs à toutes et tous !
Pour moi ça commence mal .. hier je change ma carte mère (en fait je remonte celle qui y était avant) pas de soucis de ce côté à priori mais mon grub ne trouvait plus mon DD Windows il ne trouvait que mes 2 version Ubuntu 20.04 sur un sata  et 22.04 sur un SSD : tout à déjà fonctionné !! mais le changement a fait que plouf !! donc j'ai bidouillé comme je l'ai eu déjà fait pour récupérer mon DD win mais là rien à faire du coup maintenant je ne peux démarrer que le SSD tout le reste est ignoré .
j'ai un CD boot repair mais ça n'a rien donné .. j'ai donc besoin d'aide !!
j'ai déjà fait réinstall grub ; update grub; os-prober... mais rien de tous ça n'a changé ..
Merci de votre écoute ..

Dernière modification par fred101 (Le 29/12/2022, à 19:35)

Hors ligne

#2 Le 28/12/2022, à 15:15

geole

Re : Grub en vrac !! [résolu]

Bonjour.
Avec ton  ubuntu qui fonctionne, peux-tu installer boot-into, le lancer et publier l'URL qu'il va générer.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Je défie QUICONQUE de trouver une discussion où j'aurais suggéré de remplacer un SSD par un disque dur.
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#3 Le 28/12/2022, à 15:27

Astrolivier

Re : Grub en vrac !! [résolu]

bonjour,


est-ce que tes disques sont bien reconnus par le bios ?

que donnent :

lsblk

cat /boot/grub/grub.cfg 

S'il faut absolument faire des sacrifices pour assurer le progrès de l'humanité, ne serait-il pas indispensable de s'en tenir au principe selon lequel c'est à ceux dont on exige le sacrifice que la décision doit revenir en dernier ressort ? (howard zinn)

Hors ligne

#4 Le 28/12/2022, à 15:31

fred101

Re : Grub en vrac !! [résolu]

Bonjour, je commence à répondre à geole si vous voulez bien..

Hors ligne

#5 Le 28/12/2022, à 15:34

fred101

Re : Grub en vrac !! [résolu]

j'envoie cette ligne de commande en console ? sudo add-apt-repository -y ppa:yannubuntu/boot-repair; sudo apt update; sudo apt install -y boot-info; boot-info

Hors ligne

#6 Le 28/12/2022, à 15:38

fred101

Re : Grub en vrac !! [résolu]

https://paste.ubuntu.com/p/h3dpvW2sgx/
voila ce qu'on me donne ..pour vous !

Hors ligne

#7 Le 28/12/2022, à 15:44

fred101

Re : Grub en vrac !! [résolu]

Astrolivier a écrit :

bonjour,


est-ce que tes disques sont bien reconnus par le bios ?

que donnent :

lsblk

cat /boot/grub/grub.cfg 

disons que je les voient tous dans le gestionnaire de fichiers..

Hors ligne

#8 Le 28/12/2022, à 15:47

fred101

Re : Grub en vrac !! [résolu]

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_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  D943-9356
else
  search --no-floppy --fs-uuid --set=root D943-9356
fi
    font="/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
if background_color 60,59,55; then
  clear
fi

color_normal=light-gray/black

if [ -e ${prefix}/themes/ubuntu-mate/theme.txt ]; then
  insmod png
  theme=${prefix}/themes/ubuntu-mate/theme.txt
fi
### END /etc/grub.d/05_debian_theme ###

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

### BEGIN /etc/grub.d/10_linux_zfs ###
function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=1
	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
function zsyshistorymenu {
	# $1: root dataset (eg rpool/ROOT/ubuntu_2zhm07@autozsys_k56fr6)
	# $2: boot device id (eg 411f29ce1557bfed)
	# $3: initrd (eg /BOOT/ubuntu_2zhm07@autozsys_k56fr6/initrd.img-5.4.0-21-generic)
	# $4: kernel (eg /BOOT/ubuntu_2zhm07@autozsys_k56fr6/vmlinuz-5.4.0-21-generic)
	# $5: kernel_version (eg 5.4.0-21-generic)

	set root_dataset="${1}"
	set boot_device="${2}"
	set initrd="${3}"
	set kernel="${4}"
	set kversion="${5}"

	menuentry 'Revert system only' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-${root_dataset}-${kversion}' {
		recordfail
		load_video
		gfxmode ${linux_gfx_mode}
		insmod gzio
		if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi
		if [ ${boot_device} = /dev/sda4 ]; then
			insmod part_gpt
			insmod zfs
			set root='hd0,gpt4'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d499fa216b115b9e
			else
			  search --no-floppy --fs-uuid --set=root d499fa216b115b9e
			fi
		fi
		linux	"${kernel}" root=ZFS="${root_dataset}" ro quiet splash ${vt_handoff}
		initrd	"${initrd}"
	}
	menuentry 'Revert system and user data' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-${root_dataset}-${kversion}' {
		recordfail
		load_video
		gfxmode ${linux_gfx_mode}
		insmod gzio
		if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi
		if [ ${boot_device} = /dev/sda4 ]; then
			insmod part_gpt
			insmod zfs
			set root='hd0,gpt4'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d499fa216b115b9e
			else
			  search --no-floppy --fs-uuid --set=root d499fa216b115b9e
			fi
		fi
		linux	"${kernel}" root=ZFS="${root_dataset}" ro quiet splash ${vt_handoff} zsys-revert=userdata
		initrd	"${initrd}"
	}
	menuentry 'Revert system only (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-${root_dataset}-${kversion}' {
		recordfail
		load_video
		insmod gzio
		if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi
		if [ ${boot_device} = /dev/sda4 ]; then
			insmod part_gpt
			insmod zfs
			set root='hd0,gpt4'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d499fa216b115b9e
			else
			  search --no-floppy --fs-uuid --set=root d499fa216b115b9e
			fi
		fi
		echo Loading Linux ${kversion} ...
		linux	"${kernel}" root=ZFS="${root_dataset}" ro recovery nomodeset dis_ucode_ldr
		echo 'Loading initial ramdisk ...'
		initrd	"${initrd}"
	}
	menuentry 'Revert system and user data (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-${root_dataset}-${kversion}' {
		recordfail
		load_video
		insmod gzio
		if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi
		if [ ${boot_device} = /dev/sda4 ]; then
			insmod part_gpt
			insmod zfs
			set root='hd0,gpt4'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d499fa216b115b9e
			else
			  search --no-floppy --fs-uuid --set=root d499fa216b115b9e
			fi
		fi
		echo Loading Linux ${kversion} ...
		linux	"${kernel}" root=ZFS="${root_dataset}" ro recovery nomodeset dis_ucode_ldr zsys-revert=userdata
		echo 'Loading initial ramdisk ...'
		initrd	"${initrd}"
	}
}

menuentry 'Ubuntu 22.04.1 LTS' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-rpool/ROOT/ubuntu_b9mjbl-5.15.0-56-generic' {
	recordfail
	load_video
	gfxmode ${linux_gfx_mode}
	insmod gzio
	if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod zfs
	set root='hd0,gpt4'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d499fa216b115b9e
	else
	  search --no-floppy --fs-uuid --set=root d499fa216b115b9e
	fi
	linux	"/BOOT/ubuntu_b9mjbl@/vmlinuz-5.15.0-56-generic" root=ZFS="rpool/ROOT/ubuntu_b9mjbl" ro quiet splash ${vt_handoff}
	initrd	"/BOOT/ubuntu_b9mjbl@/initrd.img-5.15.0-56-generic"
}
submenu 'Advanced options for Ubuntu 22.04.1 LTS' ${menuentry_id_option} 'gnulinux-advanced-rpool/ROOT/ubuntu_b9mjbl' {
	menuentry 'Ubuntu 22.04.1 LTS, with Linux 5.15.0-56-generic' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-rpool/ROOT/ubuntu_b9mjbl-5.15.0-56-generic' {
		recordfail
		load_video
		gfxmode ${linux_gfx_mode}
		insmod gzio
		if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod zfs
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d499fa216b115b9e
		else
		  search --no-floppy --fs-uuid --set=root d499fa216b115b9e
		fi
		echo Loading Linux 5.15.0-56-generic ...
		linux	"/BOOT/ubuntu_b9mjbl@/vmlinuz-5.15.0-56-generic" root=ZFS="rpool/ROOT/ubuntu_b9mjbl" ro quiet splash ${vt_handoff}
		echo 'Loading initial ramdisk ...'
		initrd	"/BOOT/ubuntu_b9mjbl@/initrd.img-5.15.0-56-generic"
	}
	menuentry 'Ubuntu 22.04.1 LTS, with Linux 5.15.0-56-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-rpool/ROOT/ubuntu_b9mjbl-5.15.0-56-generic' {
		recordfail
		load_video
		insmod gzio
		if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod zfs
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d499fa216b115b9e
		else
		  search --no-floppy --fs-uuid --set=root d499fa216b115b9e
		fi
		echo Loading Linux 5.15.0-56-generic ...
		linux	"/BOOT/ubuntu_b9mjbl@/vmlinuz-5.15.0-56-generic" root=ZFS="rpool/ROOT/ubuntu_b9mjbl" ro recovery nomodeset dis_ucode_ldr
		echo 'Loading initial ramdisk ...'
		initrd	"/BOOT/ubuntu_b9mjbl@/initrd.img-5.15.0-56-generic"
	}
	menuentry 'Ubuntu 22.04.1 LTS, with Linux 5.15.0-53-generic' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-rpool/ROOT/ubuntu_b9mjbl-5.15.0-53-generic' {
		recordfail
		load_video
		gfxmode ${linux_gfx_mode}
		insmod gzio
		if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod zfs
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d499fa216b115b9e
		else
		  search --no-floppy --fs-uuid --set=root d499fa216b115b9e
		fi
		echo Loading Linux 5.15.0-53-generic ...
		linux	"/BOOT/ubuntu_b9mjbl@/vmlinuz-5.15.0-53-generic" root=ZFS="rpool/ROOT/ubuntu_b9mjbl" ro quiet splash ${vt_handoff}
		echo 'Loading initial ramdisk ...'
		initrd	"/BOOT/ubuntu_b9mjbl@/initrd.img-5.15.0-53-generic"
	}
	menuentry 'Ubuntu 22.04.1 LTS, with Linux 5.15.0-53-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-rpool/ROOT/ubuntu_b9mjbl-5.15.0-53-generic' {
		recordfail
		load_video
		insmod gzio
		if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod zfs
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d499fa216b115b9e
		else
		  search --no-floppy --fs-uuid --set=root d499fa216b115b9e
		fi
		echo Loading Linux 5.15.0-53-generic ...
		linux	"/BOOT/ubuntu_b9mjbl@/vmlinuz-5.15.0-53-generic" root=ZFS="rpool/ROOT/ubuntu_b9mjbl" ro recovery nomodeset dis_ucode_ldr
		echo 'Loading initial ramdisk ...'
		initrd	"/BOOT/ubuntu_b9mjbl@/initrd.img-5.15.0-53-generic"
	}
}
### 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+ ###
### END /etc/grub.d/20_memtest86+ ###

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

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### 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 ###
fred@fred-desktop:~$ 

Hors ligne

#9 Le 28/12/2022, à 15:48

fred101

Re : Grub en vrac !! [résolu]

Pas de trace de Windows à priori ni Ubuntu 20.04...

Hors ligne

#10 Le 28/12/2022, à 15:50

fred101

Re : Grub en vrac !! [résolu]

lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0    7:0    0  63,2M  1 loop /snap/core20/1738
loop1    7:1    0     4K  1 loop /snap/bare/5
loop2    7:2    0  63,3M  1 loop /snap/core20/1778
loop3    7:3    0 238,9M  1 loop /snap/firefox/2186
loop4    7:4    0 238,4M  1 loop /snap/firefox/2211
loop5    7:5    0 400,8M  1 loop /snap/gnome-3-38-2004/112
loop6    7:6    0 346,3M  1 loop /snap/gnome-3-38-2004/119
loop7    7:7    0  91,7M  1 loop /snap/gtk-common-themes/1535
loop8    7:8    0   304K  1 loop /snap/snapd-desktop-integration/43
loop9    7:9    0  49,6M  1 loop /snap/snapd/17883
loop10   7:10   0    16K  1 loop /snap/software-boutique/57
loop11   7:11   0   304K  1 loop /snap/snapd-desktop-integration/49
loop12   7:12   0  13,5M  1 loop /snap/ubuntu-mate-welcome/709
loop13   7:13   0  13,5M  1 loop /snap/ubuntu-mate-welcome/714
sda      8:0    0 465,8G  0 disk 
├─sda1   8:1    0     1M  0 part 
├─sda2   8:2    0   513M  0 part /boot/grub
├─sda3   8:3    0     2G  0 part [SWAP]
├─sda4   8:4    0     2G  0 part 
└─sda5   8:5    0 461,3G  0 part 
sdb      8:16   0 596,2G  0 disk 
├─sdb1   8:17   0   100M  0 part 
├─sdb2   8:18   0 595,6G  0 part 
└─sdb3   8:19   0   529M  0 part 
sdc      8:32   0 931,5G  0 disk 
└─sdc1   8:33   0 931,5G  0 part 
sdd      8:48   0   1,8T  0 disk 
├─sdd1   8:49   0   512M  0 part 
├─sdd2   8:50   0     1K  0 part 
└─sdd5   8:53   0   1,8T  0 part 
sr0     11:0    1  1024M  0 rom  
fred@fred-desktop:~$ 

Hors ligne

#11 Le 28/12/2022, à 15:51

fred101

Re : Grub en vrac !! [résolu]

Voila ce que donnent les commandes.

Hors ligne

#12 Le 28/12/2022, à 16:16

geole

Re : Grub en vrac !! [résolu]

Ce n'est pas souvent qu'on voit une installation ZFS
Le grub est là

/dev/sda2                               vfat          512M    16M   496M   3% /boot/grub

On voit qu'il ne propose rien.

=========================== sda2/grub.cfg (filtered) ===========================
Revert system only   gnulinux-${root_dataset}-${kversion}
Revert system and user data   gnulinux-${root_dataset}-${kversion}
Ubuntu 22.04.1 LTS   gnulinux-rpool/ROOT/ubuntu_b9mjbl-5.15.0-56-generic
Ubuntu 22.04.1 LTS, with Linux 5.15.0-56-generic   gnulinux-rpool/ROOT/ubuntu_b9mjbl-5.15.0-56-generic
Ubuntu 22.04.1 LTS, with Linux 5.15.0-53-generic   gnulinux-rpool/ROOT/ubuntu_b9mjbl-5.15.0-53-generic
### END /etc/grub.d/30_os-prober ###

D"autre part, on voit que tu as démarré en EFI.

===================================== UEFI =====================================
BIOS/UEFI firmware: F51(5.14) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this installed-session.
SecureBoot disabled (confirmed by mokutil).
UEFI Firmware Settings   uefi-firmware

et que windows et ton autre ubuntu ont été installés en LEGACY
Donc rien à faire,   Tout est correct.   Cependant
Tu peux convertir WINDOWS pour qu'il boote  lui aussi en EFI avec l'application MBR2GPT car il est seul sur le disque

sdb1: __________________________________________________________________________
    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD
sdb2: __________________________________________________________________________
    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 8 or 10
    Boot files:        /Windows/System32/winload.exe
sdb3: __________________________________________________________________________
    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:   

Des liens https://learn.microsoft.com/fr-fr/windo … mbr-to-gpt
https://lecrabeinfo.net/mbr2gpt-convert … nnees.html
https://forum.ubuntu-fr.org/viewtopic.php?id=2075545
   
L'autre ubuntu devrait se convertir facilement en EFI grâce à boot-repair. Sa structure  est déjà présente

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

A priori, Il te suffira de rebooter et de  regarder le contenu du fichier /etc/default/grub
grep -v "#"  /etc/default/grub
et si tu vois
GRUB_DISABLE_OS_PROBER=true
tu remplaces par
GRUB_DISABLE_OS_PROBER=false

A priori c'est ce contenu

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

Si ton grub ne s'affiche pas,   remplace le mot hidden par le mot menu
Puis tu mets à jour

sudo update-grub

Dernière modification par geole (Le 28/12/2022, à 16:42)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Je défie QUICONQUE de trouver une discussion où j'aurais suggéré de remplacer un SSD par un disque dur.
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#13 Le 28/12/2022, à 16:23

fred101

Re : Grub en vrac !! [résolu]

merci de tes explications , mais j'ai peur de ne pas tout comprendre... pour l'instant je suis coincé, j'ai téléchargé le dernier boot repair et il est en train de s'extraire dans une clé USB.(ça à l'air long)
je me remet à tes explications tout de suite après ..

Hors ligne

#14 Le 28/12/2022, à 16:30

geole

Re : Grub en vrac !! [résolu]

Nota
J'ai probablement dit une bêtise:  Il est possible que ta nouvelle carte-mère ne connaisse pas du tout le mode LEGACY mais uniquement le mode EFI.   Si c'est le cas, tu es  bon pour  utiliser l'outil MBR2GPT avec un support d'installation. Je crois que c'est possible, il faudrait chercher un tuto.....
Celui-ci me semble assez clair https://www.malekal.com/mbr2gpt-convert … Windows_10

Dernière modification par geole (Le 28/12/2022, à 16:33)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Je défie QUICONQUE de trouver une discussion où j'aurais suggéré de remplacer un SSD par un disque dur.
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#15 Le 28/12/2022, à 16:41

fred101

Re : Grub en vrac !! [résolu]

j'avais déjà cette carte mère il y a quelques semaines !! et tout fonctionnait la seule différence c'est qu'il n'y avait pas de disque SSD c'est tout ..

Hors ligne

#16 Le 28/12/2022, à 16:43

fred101

Re : Grub en vrac !! [résolu]

je ne me rappelle plus comment on edite le grub en su ? sudo ..?

Hors ligne

#17 Le 28/12/2022, à 16:44

xubu1957

Re : Grub en vrac !! [résolu]

Bonjour,

Collage du Boot-info :

boot-info-4ppa203                                              [20221228_1435]

============================== Boot Info Summary ===============================

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 2048 
    of the same hard drive for core.img. core.img is at this location and 
    looks for (,gpt2)/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp fat part_gpt biosdisk
    ---------------------------------------------------------------------------
 => Windows 7/8/10/11/2012 is installed in the MBR of /dev/sdb.
 => Windows 7/8/10/11/2012 is installed in the MBR of /dev/sdc.
 => Grub2 (v2.00) is installed in the MBR of /dev/sdd 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:       BIOS Boot partition
    Boot sector type:  Grub2's core.img
    Boot sector info: 

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda4: __________________________________________________________________________

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

sda5: __________________________________________________________________________

    File system:       zfs_member
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 22.04.1 LTS
    Boot files:        /etc/fstab /etc/default/grub

sdb1: __________________________________________________________________________

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

sdb2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 8 or 10
    Boot files:        /Windows/System32/winload.exe

sdb3: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdc1: __________________________________________________________________________

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

sdd1: __________________________________________________________________________

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

sdd2: __________________________________________________________________________

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

sdd5: __________________________________________________________________________

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


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

OS#1:   L'OS actuellement utilisé - Ubuntu 22.04.1 LTS CurrentSession on rpool/ROOT/ubuntu_b9mjbl
OS#2:   Ubuntu 20.04.5 LTS on sdd5
OS#3:   Windows 8 or 10 on sdb2

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: Curacao XT / Trinidad XT [Radeon R7 370 / R9 270X/370X] from Advanced Micro Devices, Inc. [AMD/ATI]
BOOT_IMAGE of the installed session in use:
/BOOT/ubuntu_b9mjbl@/vmlinuz-5.15.0-56-generic root=ZFS=rpool/ROOT/ubuntu_b9mjbl ro quiet splash
df -Th / : rpool/ROOT/ubuntu_b9mjbl zfs    322G    8,9G  313G   3% /

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

BIOS/UEFI firmware: F51(5.14) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this installed-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0007
Timeout: 1 seconds
BootOrder: 0007,0005,0008,0009,000A,000B
Boot0005* DRW-24D5MT	BBS(CDROM,,0x0)..BO
Boot0007* ubuntu	HD(2,GPT,ed9df690-a736-4ea5-a449-f8665cdd1219,0x1000,0x100800)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0008* Samsung SSD 860 EVO 500GB	BBS(HD,,0x0)..BO
Boot0009* SAMSUNG HD642JJ	BBS(HD,,0x0)..BO
Boot000A* ST1000DM003-1CH162	BBS(HD,,0x0)..BO
Boot000B* ST2000DM001-1ER164	BBS(HD,,0x0)..BO


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

Disks info: ____________________________________________________________________

sdd	: notGPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes
sdb	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes
sdc	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes
sda	: is-GPT,	hasBIOSboot,	has---ESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sdd5	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sdd1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sdb2	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb3	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sdc1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda4	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	grubenv-ok,	noupdategrub,	not-far
sda2	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda5	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sdd5	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdd1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb2	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	bootmgr,	is-winboot
sdc1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sdd5	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sdd
sdd1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdd
sdb2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdb3	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdb1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdc1	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdc
sda4	: is--zfs-boot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda5	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 4A1F5D32-CC5B-47D4-AAB3-1454D355BED8
        Start       End   Sectors   Size Type
sda1     2048      4095      2048     1M BIOS boot
sda2     4096   1054719   1050624   513M EFI System
sda3  1054720   5249023   4194304     2G Linux swap
sda4  5249024   9443327   4194304     2G Solaris boot
sda5  9443328 976773134 967329807 461.3G Solaris root
Disk sdb: 596.17 GiB, 640135028736 bytes, 1250263728 sectors
Disk identifier: 0xbf854c2c
      Boot      Start        End    Sectors   Size Id Type
sdb1  *          2048     206847     204800   100M  7 HPFS/NTFS/exFAT
sdb2           206848 1249175313 1248968466 595.6G  7 HPFS/NTFS/exFAT
sdb3       1249175552 1250258943    1083392   529M 27 Hidden NTFS WinRE
Disk sdc: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 0x0f04fa03
      Boot Start        End    Sectors   Size Id Type
sdc1        2048 1953523711 1953521664 931.5G 83 Linux
Disk sdd: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk identifier: 0x3e4fe2c1
      Boot   Start        End    Sectors  Size Id Type
sdd1  *       2048    1050623    1048576  512M  b W95 FAT32
sdd2       1052670 3907028991 3905976322  1.8T  5 Extended
sdd5       1052672 3907028991 3905976320  1.8T 83 Linux

parted -lm (filtered): _________________________________________________________

sda:500GB:scsi:512:512:gpt:ATA Samsung SSD 860:;
1:1049kB:2097kB:1049kB:::bios_grub;
2:2097kB:540MB:538MB:fat32:EFI System Partition:boot, esp;
3:540MB:2688MB:2147MB:linux-swap(v1)::swap;
4:2688MB:4835MB:2147MB:zfs::;
5:4835MB:500GB:495GB:zfs::;
sdb:640GB:scsi:512:512:msdos:ATA SAMSUNG HD642JJ:;
1:1049kB:106MB:105MB:ntfs::boot;
2:106MB:640GB:639GB:ntfs::;
3:640GB:640GB:555MB:ntfs::msftres;
sdc:1000GB:scsi:512:4096:msdos:ATA ST1000DM003-1CH1:;
1:1049kB:1000GB:1000GB:ext4::;
sdd:2000GB:scsi:512:4096:msdos:ATA ST2000DM001-1ER1:;
1:1049kB:538MB:537MB:fat32::boot;
2:539MB:2000GB:2000GB:::;
5:539MB:2000GB:2000GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE     UUID                                 PARTUUID                             LABEL   PARTLABEL
sda                                                                                                 
├─sda1                                                 5c58af1e-38e1-492c-a70e-b329ff49557c         
├─sda2 vfat       D943-9356                            ed9df690-a736-4ea5-a449-f8665cdd1219         EFI System Partition
├─sda3 swap       ad6f3d2e-5011-47d6-a6f4-da7597994f47 fd68eccb-53b6-c344-b330-5ba38073a9c5         
├─sda4 zfs_member 15319550628914617246                 bd6b7fa9-1f9c-304a-87de-b72317f8a96a bpool   
└─sda5 zfs_member 10961854845785932688                 1dfcd62c-7233-d246-967a-a9b259ec3bfb rpool   
sdb                                                                                                 
├─sdb1 ntfs       58C429D5C429B662                     bf854c2c-01                                  
├─sdb2 ntfs       C6F6DBF3F6DBE22B                     bf854c2c-02                                  
└─sdb3 ntfs       021C43451C4332C9                     bf854c2c-03                                  
sdc                                                                                                 
└─sdc1 ext4       e46120ef-bc6f-4637-bb59-d311e134c840 0f04fa03-01                          reserve 
sdd                                                                                                 
├─sdd1 vfat       62F9-0344                            3e4fe2c1-01                                  
├─sdd2                                                 3e4fe2c1-02                                  
└─sdd5 ext4       cc2053a9-b4c4-4fa4-bf74-8628b7a250b3 3e4fe2c1-05                                  

Mount points (filtered): _______________________________________________________

                                                  Avail Use% Mounted on
bpool/BOOT/ubuntu_b9mjbl                           1.5G  14% /boot
/dev/sda2[/grub]                                   496M   3% /boot/grub
/dev/sdb1                                         71.3M  29% /mnt/boot-sav/sdb1
/dev/sdb2                                        306.8G  48% /mnt/boot-sav/sdb2
/dev/sdb3                                         86.6M  84% /mnt/boot-sav/sdb3
/dev/sdc1                                        568.6G  33% /mnt/boot-sav/sdc1
/dev/sdd1                                        510.9M   0% /mnt/boot-sav/sdd1
/dev/sdd5                                        987.2G  41% /mnt/boot-sav/sdd5
rpool/ROOT/ubuntu_b9mjbl                         312.6G   3% /
rpool/ROOT/ubuntu_b9mjbl/srv                     312.6G   0% /srv
rpool/ROOT/ubuntu_b9mjbl/usr/local               312.6G   0% /usr/local
rpool/ROOT/ubuntu_b9mjbl/var/games               312.6G   0% /var/games
rpool/ROOT/ubuntu_b9mjbl/var/lib                 312.6G   1% /var/lib
rpool/ROOT/ubuntu_b9mjbl/var/lib/AccountsService 312.6G   0% /var/lib/AccountsService
rpool/ROOT/ubuntu_b9mjbl/var/lib/apt             312.6G   0% /var/lib/apt
rpool/ROOT/ubuntu_b9mjbl/var/lib/dpkg            312.6G   0% /var/lib/dpkg
rpool/ROOT/ubuntu_b9mjbl/var/lib/NetworkManager  312.6G   0% /var/lib/NetworkManager
rpool/ROOT/ubuntu_b9mjbl/var/log                 312.6G   0% /var/log
rpool/ROOT/ubuntu_b9mjbl/var/mail                312.6G   0% /var/mail
rpool/ROOT/ubuntu_b9mjbl/var/snap                312.6G   0% /var/snap
rpool/ROOT/ubuntu_b9mjbl/var/spool               312.6G   0% /var/spool
rpool/ROOT/ubuntu_b9mjbl/var/www                 312.6G   0% /var/www
rpool/USERDATA/fred_io6w6g                       312.6G  28% /home/fred
rpool/USERDATA/root_io6w6g                       312.6G   0% /root

Mount options (filtered): ______________________________________________________


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

Revert system only   gnulinux-${root_dataset}-${kversion}
Revert system and user data   gnulinux-${root_dataset}-${kversion}
Ubuntu 22.04.1 LTS   gnulinux-rpool/ROOT/ubuntu_b9mjbl-5.15.0-56-generic
Ubuntu 22.04.1 LTS, with Linux 5.15.0-56-generic   gnulinux-rpool/ROOT/ubuntu_b9mjbl-5.15.0-56-generic
Ubuntu 22.04.1 LTS, with Linux 5.15.0-53-generic   gnulinux-rpool/ROOT/ubuntu_b9mjbl-5.15.0-53-generic
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

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

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

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             vmlinuz
            ?? = ??             vmlinuz-5.15.0-53-generic
            ?? = ??             vmlinuz-5.15.0-56-generic
            ?? = ??             vmlinuz.old
            ?? = ??             initrd.img
            ?? = ??             initrd.img-5.15.0-53-generic
            ?? = ??             initrd.img-5.15.0-56-generic
            ?? = ??             initrd.img.old

========================== sda5/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# /boot/efi was on /dev/sdb2 during installation
UUID=D943-9356  /boot/efi       vfat    umask=0022,fmask=0022,dmask=0022      0       1
/boot/efi/grub	/boot/grub	none	defaults,bind	0	0
UUID=ad6f3d2e-5011-47d6-a6f4-da7597994f47	none	swap	sw	0	0

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

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/vmlinuz
            ?? = ??             boot/vmlinuz-5.15.0-53-generic
            ?? = ??             boot/vmlinuz-5.15.0-56-generic
            ?? = ??             boot/vmlinuz.old
            ?? = ??             boot/initrd.img
            ?? = ??             boot/initrd.img-5.15.0-53-generic
            ?? = ??             boot/initrd.img-5.15.0-56-generic
            ?? = ??             boot/initrd.img.old

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

-rwxr-xr-x 1 root root 18683 Apr 15  2022 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15  2022 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15  2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 Apr 15  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   700 Feb 19  2022 35_fwupd
-rwxr-xr-x 1 root root   214 Apr 15  2022 40_custom
-rwxr-xr-x 1 root root   215 Apr 15  2022 41_custom

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

Ubuntu   cc2053a9-b4c4-4fa4-bf74-8628b7a250b3
Ubuntu, avec Linux 5.15.0-48-generic   cc2053a9-b4c4-4fa4-bf74-8628b7a250b3
Ubuntu, avec Linux 5.15.0-46-generic   cc2053a9-b4c4-4fa4-bf74-8628b7a250b3
Ubuntu 18.04.3 LTS (18.04) (sur sda1)   82e4b568-ef86-48e9-a4f0-13673588af9e
Ubuntu (sur sda1)   82e4b568-ef86-48e9-a4f0-13673588af9e
Ubuntu, avec Linux 5.0.0-23-generic (sur sda1)   82e4b568-ef86-48e9-a4f0-13673588af9e
Windows 10 (sur sdc1)   E2C83A70C83A4359
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sdd5/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=cc2053a9-b4c4-4fa4-bf74-8628b7a250b3 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=62F9-0344  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

           GiB - GB             File                                 Fragment(s)
 904.629966736 = 971.339030528  boot/grub/grub.cfg                             3
1112.635318756 = 1194.683076608 boot/grub/i386-pc/core.img                     1
 232.259761810 = 249.387020288  boot/vmlinuz                                   2
 310.337886810 = 333.222768640  boot/vmlinuz-5.15.0-46-generic                 2
 232.259761810 = 249.387020288  boot/vmlinuz-5.15.0-48-generic                 2
 310.337886810 = 333.222768640  boot/vmlinuz.old                               2
1067.337886810 = 1146.045329408 boot/initrd.img                                3
1148.337886810 = 1233.018417152 boot/initrd.img-5.15.0-46-generic             15
1067.337886810 = 1146.045329408 boot/initrd.img-5.15.0-48-generic              3
1148.337886810 = 1233.018417152 boot/initrd.img.old                           15

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

-rwxr-xr-x 1 root root 18224 Jan 11  2022 10_linux
-rwxr-xr-x 1 root root 42359 Sep  8  2020 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Jul 31  2020 20_linux_xen
-rwxr-xr-x 1 root root 12059 Jul 31  2020 30_os-prober
-rwxr-xr-x 1 root root  1424 Jul 31  2020 30_uefi-firmware
-rwxr-xr-x 1 root root   700 Feb 21  2022 35_fwupd
-rwxr-xr-x 1 root root   214 Jul 31  2020 40_custom
-rwxr-xr-x 1 root root   216 Jul 31  2020 41_custom



====================== Installed session with Root on ZFS ======================

zpool list NAME    SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
bpool  1.88G   254M  1.63G        -         -     0%    13%  1.00x    ONLINE  -
rpool   460G   133G   327G        -         -    10%    28%  1.00x    ONLINE  -

SOURCE                                           FSTYPE        SIZE   USED  AVAIL USE% TARGET
rpool/ROOT/ubuntu_b9mjbl                         zfs         321.4G   8.9G 312.6G   3% /
rpool/USERDATA/fred_io6w6g                       zfs           434G 121.4G 312.6G  28% /home/fred
rpool/ROOT/ubuntu_b9mjbl/srv                     zfs         312.6G   128K 312.6G   0% /srv
rpool/USERDATA/root_io6w6g                       zfs         312.6G   1.8M 312.6G   0% /root
rpool/ROOT/ubuntu_b9mjbl/var/mail                zfs         312.6G   128K 312.6G   0% /var/mail
rpool/ROOT/ubuntu_b9mjbl/var/log                 zfs         312.9G 367.5M 312.6G   0% /var/log
rpool/ROOT/ubuntu_b9mjbl/usr/local               zfs         312.6G   256K 312.6G   0% /usr/local
rpool/ROOT/ubuntu_b9mjbl/var/lib                 zfs         314.9G   2.3G 312.6G   1% /var/lib
rpool/ROOT/ubuntu_b9mjbl/var/games               zfs         312.6G   128K 312.6G   0% /var/games
rpool/ROOT/ubuntu_b9mjbl/var/www                 zfs         312.6G   128K 312.6G   0% /var/www
rpool/ROOT/ubuntu_b9mjbl/var/snap                zfs         312.6G   1.3M 312.6G   0% /var/snap
rpool/ROOT/ubuntu_b9mjbl/var/spool               zfs         312.6G     4M 312.6G   0% /var/spool
rpool/ROOT/ubuntu_b9mjbl/var/lib/apt             zfs         312.7G  86.1M 312.6G   0% /var/lib/apt
rpool/ROOT/ubuntu_b9mjbl/var/lib/NetworkManager  zfs         312.6G   256K 312.6G   0% /var/lib/NetworkManager
rpool/ROOT/ubuntu_b9mjbl/var/lib/AccountsService zfs         312.6G   128K 312.6G   0% /var/lib/AccountsService
rpool/ROOT/ubuntu_b9mjbl/var/lib/dpkg            zfs         312.6G  70.1M 312.6G   0% /var/lib/dpkg
bpool/BOOT/ubuntu_b9mjbl                         zfs           1.7G 252.1M   1.5G  14% /boot
/dev/sda2                                        vfat          512M    16M   496M   3% /boot/efi
/dev/sda2[/grub]                                 vfat          512M    16M   496M   3% /boot/grub
rpool/ROOT/ubuntu_b9mjbl[/usr/share/hunspell]    zfs         321.4G   8.9G 312.6G   3% /var/snap/firefox/common/host-hunspell




Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub2 of
sdd5 into the MBR of sdd.
Grub-efi would not be selected by default because legacy Windows detected.
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix

Blockers in case of suggested repair: __________________________________________

LegacyWindows detected. Please enable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB). Please use this software in a live-session (live-CD or live-USB). This will enable this feature.

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 sdd (ATA ST2000DM001-1ER1) disk!
The boot of your PC is in UEFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#18 Le 28/12/2022, à 16:54

fred101

Re : Grub en vrac !! [résolu]

Voila déjà j'ai changé hidden par menu et j'ai un grub affiché au boot avec seulement le 22.04.. reste à rajouter les autres disques !!

Hors ligne

#19 Le 28/12/2022, à 16:59

fred101

Re : Grub en vrac !! [résolu]

voila ce que me donne update-grub:

sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: vmlinuz-5.15.0-56-generic in rpool/ROOT/ubuntu_b9mjbl
Found initrd image: initrd.img-5.15.0-56-generic in rpool/ROOT/ubuntu_b9mjbl
Found linux image: vmlinuz-5.15.0-53-generic in rpool/ROOT/ubuntu_b9mjbl
Found initrd image: initrd.img-5.15.0-53-generic in rpool/ROOT/ubuntu_b9mjbl
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
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

Hors ligne

#20 Le 28/12/2022, à 17:05

fred101

Re : Grub en vrac !! [résolu]

De plus après le update "hidden" est revenu dans le grub 

  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

Hors ligne

#21 Le 28/12/2022, à 17:13

geole

Re : Grub en vrac !! [résolu]

fred101 a écrit :

j'avais déjà cette carte mère il y a quelques semaines !! et tout fonctionnait la seule différence c'est qu'il n'y avait pas de disque SSD c'est tout ..

Cela je l'ai compris
Sur cette carte tout était en LEGACY pour le choix des boot
Sur la nouvelle carte, Tout est en EFI pour le choix des boot,  Cela fait quand même trois ans que ce risque  est annoncé

Tant que tu n'auras pas converti les deux applications pour leur ajouter la structure de boot EFI manquante, elles ne seront pas proposées au boot EFI

Je doute que tu ais eu le temps de faire les deux conversions

Dernière modification par geole (Le 28/12/2022, à 18:32)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Je défie QUICONQUE de trouver une discussion où j'aurais suggéré de remplacer un SSD par un disque dur.
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#22 Le 28/12/2022, à 17:16

geole

Re : Grub en vrac !! [résolu]

fred101 a écrit :

voila ce que me donne update-grub:

sudo update-grub
.......
Warning: os-prober will not be executed to detect other bootable partitions.
...

Ajoute cette ligne dans le fichier /etc/default/grub

GRUB_DISABLE_OS_PROBER=false

et retente une mise à jour du grub pour voir si le message existe toujours


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Je défie QUICONQUE de trouver une discussion où j'aurais suggéré de remplacer un SSD par un disque dur.
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#23 Le 28/12/2022, à 17:30

fred101

Re : Grub en vrac !! [résolu]

Ou est ce que je la rajoute dans le fichier ?

Hors ligne

#24 Le 28/12/2022, à 17:40

fred101

Re : Grub en vrac !! [résolu]

Voila , c'est fait je l'ai rajouté et j'ai aussi remis menu à la place de hidden comme ça:

If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

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

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

Hors ligne

#25 Le 28/12/2022, à 17:41

fred101

Re : Grub en vrac !! [résolu]

J'ai maintenant mes deux ubuntu dans le grub , il manque plus que windows..
Lorsque je demarre il y a cette ligne en plus des ubuntu : "UEFI firmware settings"
Non c'est juste pour aller dans le bios en fait ...c'est UEFI et pas EFI ...

Dernière modification par fred101 (Le 28/12/2022, à 19:12)

Hors ligne