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 26/10/2020, à 12:10

Sebiohazard

[RESOLU] Grub a disparu !

Bonjour à tous !

Après une mise à jour de Windows 10 Pro Grub a disparu & il m'est donc impossible de booter ni sur Ubuntu ni sur Windows... j'ai ce message d'erreur:

error: unknow filesystem.
Entering rescue mode...
grub rescue>

J'ai donc démarré sur une clé Ubuntu live & j'ai lancé Boot Repair avec la première option. Ce dernier me dit d'entrer ces lignes de commandes dans un terminal:

sudo chroot "/mnt/boot-sav/sda3" dpkg --configure -a
sudo chroot "/mnt/boot-sav/sda3" apt-get install -fy
sudo chroot "/mnt/boot-sav/sda3" apt-get purge -y grub*-common grub-common:i386 shim-signed

Je redémarre le PC & toujours la même erreur !!! Au secours !!!

Dernière modification par Sebiohazard (Le 27/10/2020, à 14:31)


Ubuntu 18.04.2 LTS x64

Hors ligne

#2 Le 26/10/2020, à 12:13

geole

Re : [RESOLU] Grub a disparu !

Bonjour
Avant de lancer un réparateur, il faut diagnostiquer en fournissant un boot-info


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

En ligne

#3 Le 26/10/2020, à 12:32

Sebiohazard

Re : [RESOLU] Grub a disparu !

Voici

Dernière modification par Sebiohazard (Le 26/10/2020, à 12:34)


Ubuntu 18.04.2 LTS x64

Hors ligne

#4 Le 26/10/2020, à 12:35

xubu1957

Re : [RESOLU] Grub a disparu !

Bonjour,

Collage du Boot-info :

Boot Info Script 8f991e4 + Boot-Repair extra info      [Boot-Info 25oct2017]


============================= 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.

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 20
    Boot files:        /boot/grub/grub.cfg /etc/fstab 
                       /boot/grub/i386-pc/core.img

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 6.03
    Boot sector info:  Syslinux looks at sector 32784 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 /ldlinux.sys

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

Drive: sda _____________________________________________________________________
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048   487,308,954   487,306,907   7 NTFS / exFAT / HPFS
/dev/sda2         487,309,312   488,384,511     1,075,200  27 Hidden NTFS (Recovery Environment)
/dev/sda3         488,386,560   976,773,119   488,386,560  83 Linux


Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 7.3 GiB, 7851737088 bytes, 15335424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *          2,048    15,335,423    15,333,376   c W95 FAT32 (LBA)


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/sda1        79BF0C1F7C900F52                       ntfs       Windows 10
/dev/sda2        D2EEB9A9EEB985EF                       ntfs       
/dev/sda3        d5111084-0c68-4cbd-bdb6-2f9ac273233d   ext4       
/dev/sdb1        5AFD-85E5                              vfat       LINUX MINT

========================= "ls -l /dev/disk/by-id" output: ======================

total 0
lrwxrwxrwx 1 root root  9 Oct 26 10:14 ata-HL-DT-ST_DVDRAM_GTC0N_KZIK1EJ4013 -> ../../sr0
lrwxrwxrwx 1 root root  9 Oct 26 11:29 ata-WDC_WDS500G2B0B-00YS70_2021DB443710 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 26 11:30 ata-WDC_WDS500G2B0B-00YS70_2021DB443710-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 26 11:30 ata-WDC_WDS500G2B0B-00YS70_2021DB443710-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 26 11:29 ata-WDC_WDS500G2B0B-00YS70_2021DB443710-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Oct 26 11:29 usb-Kingston_DataTraveler_2.0_50E549C69355BE71A91EF106-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Oct 26 11:29 usb-Kingston_DataTraveler_2.0_50E549C69355BE71A91EF106-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Oct 26 10:14 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root  9 Oct 26 11:29 wwn-0x5001b444a7745ffd -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 26 11:30 wwn-0x5001b444a7745ffd-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 26 11:30 wwn-0x5001b444a7745ffd-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 26 11:29 wwn-0x5001b444a7745ffd-part3 -> ../../sda3

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sdb1        /cdrom                   vfat       (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)


=========================== sda3/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
}

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  d5111084-0c68-4cbd-bdb6-2f9ac273233d
else
  search --no-floppy --fs-uuid --set=root d5111084-0c68-4cbd-bdb6-2f9ac273233d
fi
if loadfont /boot/grub/unicode.pf2 ; then
  set gfxmode=3840x2160
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=fr_CH
  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=30
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 30 ; 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 'Linux Mint 20 Cinnamon' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d5111084-0c68-4cbd-bdb6-2f9ac273233d' {
	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  d5111084-0c68-4cbd-bdb6-2f9ac273233d
	else
	  search --no-floppy --fs-uuid --set=root d5111084-0c68-4cbd-bdb6-2f9ac273233d
	fi
	linux	/boot/vmlinuz-5.4.0-26-generic root=UUID=d5111084-0c68-4cbd-bdb6-2f9ac273233d ro  quiet splash 
	initrd	/boot/initrd.img-5.4.0-26-generic
}
submenu 'Options avancées pour Linux Mint 20 Cinnamon' $menuentry_id_option 'gnulinux-advanced-d5111084-0c68-4cbd-bdb6-2f9ac273233d' {
	menuentry 'Linux Mint 20 Cinnamon, avec Linux 5.4.0-26-generic' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-26-generic-advanced-d5111084-0c68-4cbd-bdb6-2f9ac273233d' {
		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  d5111084-0c68-4cbd-bdb6-2f9ac273233d
		else
		  search --no-floppy --fs-uuid --set=root d5111084-0c68-4cbd-bdb6-2f9ac273233d
		fi
		echo	'Chargement de Linux 5.4.0-26-generic…'
		linux	/boot/vmlinuz-5.4.0-26-generic root=UUID=d5111084-0c68-4cbd-bdb6-2f9ac273233d ro  quiet splash 
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.4.0-26-generic
	}
	menuentry 'Linux Mint 20 Cinnamon, avec Linux 5.4.0-26-generic (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-26-generic-recovery-d5111084-0c68-4cbd-bdb6-2f9ac273233d' {
		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  d5111084-0c68-4cbd-bdb6-2f9ac273233d
		else
		  search --no-floppy --fs-uuid --set=root d5111084-0c68-4cbd-bdb6-2f9ac273233d
		fi
		echo	'Chargement de Linux 5.4.0-26-generic…'
		linux	/boot/vmlinuz-5.4.0-26-generic root=UUID=d5111084-0c68-4cbd-bdb6-2f9ac273233d ro recovery nomodeset dis_ucode_ldr 
		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/30_os-prober_proxy ###


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

### 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 ###
--------------------------------------------------------------------------------

=============================== sda3/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=d5111084-0c68-4cbd-bdb6-2f9ac273233d /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw              0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 351.018417358 = 376.903155712  boot/grub/grub.cfg                             1
 351.016395569 = 376.900984832  boot/grub/i386-pc/core.img                     1
 237.133903503 = 254.620590080  boot/vmlinuz                                   1
 237.133903503 = 254.620590080  boot/vmlinuz-5.4.0-26-generic                  1
 238.336299896 = 255.911653376  boot/initrd.img                                2
 238.336299896 = 255.911653376  boot/initrd.img-5.4.0-26-generic               2
 238.336299896 = 255.911653376  boot/initrd.img.old                            2

=========================== sdb1/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------

if loadfont /boot/grub/font.pf2 ; then
	set gfxmode=auto
	insmod efi_gop
	insmod efi_uga
	insmod gfxterm
	terminal_output gfxterm
    set theme=/boot/grub/themes/linuxmint/theme.txt
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

menuentry "Start Linux Mint 19.3 Cinnamon 64-bit" --class linuxmint {
	set gfxpayload=keep
	linux	/casper/vmlinuz  file=/cdrom/preseed/linuxmint.seed boot=casper iso-scan/filename=${iso_path} quiet splash --
	initrd	/casper/initrd.lz
}
menuentry "Start Linux Mint 19.3 Cinnamon 64-bit (compatibility mode)" {
	linux	/casper/vmlinuz  file=/cdrom/preseed/linuxmint.seed boot=casper xforcevesa iso-scan/filename=${iso_path} ramdisk_size=1048576 root=/dev/ram rw noapic noacpi nosplash irqpoll --
	initrd	/casper/initrd.lz
}
menuentry "OEM install (for manufacturers)" {
	set gfxpayload=keep
	linux	/casper/vmlinuz  file=/cdrom/preseed/linuxmint.seed oem-config/enable=true only-ubiquity boot=casper iso-scan/filename=${iso_path} quiet splash --
	initrd	/casper/initrd.lz
}
menuentry "Check the integrity of the medium" {
	linux	/casper/vmlinuz  boot=casper integrity-check iso-scan/filename=${iso_path} quiet splash --
	initrd	/casper/initrd.lz
}
--------------------------------------------------------------------------------

============================== sdb1/syslinux.cfg: ==============================

--------------------------------------------------------------------------------
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

=============================== StdErr Messages: ===============================

File descriptor 9 (/proc/11065/mountinfo) leaked on lvs invocation. Parent PID 20722: bash
File descriptor 63 (pipe:[78405]) leaked on lvs invocation. Parent PID 20722: bash

ADDITIONAL INFORMATION :
=================== log of boot-repair 20201026_1129 ===================
boot-repair version : 4ppa65
boot-sav version : 4ppa65
boot-sav-extra version : 4ppa65
glade2script version : 3.2.3~ppa4
boot-repair is executed in live-session (Linux Mint 19.3 Tricia, tricia, LinuxMint, x86_64)
CPU op-mode(s):      32-bit, 64-bit
BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/linuxmint.seed boot=casper initrd=/casper/initrd.lz quiet splash --
ls: cannot access '/home/usr/.config': No such file or directory

=================== os-prober:
/dev/sda1:Windows 10:Windows:chain
/dev/sda3:Linux Mint 20 Ulyana (20):LinuxMint:linux

=================== blkid:
/dev/sda1: LABEL="Windows 10" UUID="79BF0C1F7C900F52" TYPE="ntfs" PARTUUID="98b1b967-01"
/dev/sda2: UUID="D2EEB9A9EEB985EF" TYPE="ntfs" PARTUUID="98b1b967-02"
/dev/sda3: UUID="d5111084-0c68-4cbd-bdb6-2f9ac273233d" TYPE="ext4" PARTUUID="98b1b967-03"
/dev/sdb1: LABEL="LINUX MINT" UUID="5AFD-85E5" TYPE="vfat" PARTUUID="00102155-01"
/dev/loop0: TYPE="squashfs"


1 disks with OS, 2 OS : 1 Linux, 0 MacOS, 1 Windows, 0 unknown type OS.


=================== sda3/etc/grub.d/ :
drwxr-xr-x  5 root root    4096 Oct 23 00:22 grub.d
total 132
-rwxr-xr-x 1 root root 10627 Apr 15  2020 00_header
-rwxr-xr-x 1 root root  6258 Apr 15  2020 05_debian_theme
-rwxr-xr-x 1 root root 17622 Sep  8 10:24 10_linux
-rwxr-xr-x 1 root root 42359 Sep  8 10:24 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Apr 15  2020 20_linux_xen
-rwxr-xr-x 1 root root   208 Oct 23 00:22 30_os-prober_proxy
-rwxr-xr-x 1 root root  1424 Apr 15  2020 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Apr 15  2020 40_custom
-rwxr-xr-x 1 root root   216 Apr 15  2020 41_custom
-rw-r--r-- 1 root root   483 Apr 15  2020 README
drwxr-xr-x 4 root root  4096 Oct 23 00:15 backup
drwxr-xr-x 2 root root  4096 Oct 23 00:22 bin
drwxr-xr-x 2 root root  4096 Oct 23 00:22 proxifiedScripts




=================== sda3/etc/default/grub :

# 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="hidden"
GRUB_TIMEOUT="30"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# 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="3840x2160"

# 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"

GRUB_FONT="/boot/grub/unicode.pf2"



=================== UEFI/Legacy mode:
This live-session is not in EFI-mode.
EFI in dmesg.
[    0.007720] ACPI: UEFI 0x000000008AC801F0 000042 (v01 INTEL  EDK2     00000002      01000013)
SecureBoot maybe enabled.


=================== PARTITIONS & DISKS:
sda1	: sda,	not-sepboot,	no-grubenv	nogrub,	no-docgrub,	no-update-grub,	32,	no-boot,	is-os,	not--efi--part,	part-has-no-fstab,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	farbios,	notbiosboot, /mnt/boot-sav/sda1.
sda2	: sda,	not-sepboot,	no-grubenv	nogrub,	no-docgrub,	no-update-grub,	32,	no-boot,	no-os,	not--efi--part,	part-has-no-fstab,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	farbios,	notbiosboot, /mnt/boot-sav/sda2.
sda3	: sda,	not-sepboot,	grubenv-ok	grub2,	grub-pc ,	update-grub,	64,	with-boot,	is-os,	not--efi--part,	fstab-without-boot,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot,	apt-get,	grub-install,	with--usr,	fstab-without-usr,	not-sep-usr,	customized,	farbios,	notbiosboot, /mnt/boot-sav/sda3.

sda	: not-GPT,	BIOSboot-not-needed,	has-no-EFIpart, 	not-usb,	not-mmc, has-os,	2048 sectors * 512 bytes


=================== parted -lm:

BYT;
/dev/sda:500GB:scsi:512:512:msdos:ATA WDC WDS500G2B0B:;
1:1049kB:250GB:250GB:ntfs::boot;
2:250GB:250GB:551MB:ntfs::diag;
3:250GB:500GB:250GB:ext4::;

BYT;
/dev/sdb:7852MB:scsi:512:512:msdos:Kingston DataTraveler 2.0:;
1:1049kB:7852MB:7851MB:fat32::boot, lba;

=================== lsblk:
KNAME TYPE FSTYPE     SIZE LABEL
loop0 loop squashfs   1.8G
sda   disk          465.8G
sda1  part ntfs     232.4G Windows 10
sda2  part ntfs       525M
sda3  part ext4     232.9G
sdb   disk            7.3G
sdb1  part vfat       7.3G LINUX MINT
sr0   rom            1024M

KNAME ROTA RO RM STATE   MOUNTPOINT
loop0    1  1  0         /rofs
sda      0  0  0 running
sda1     0  0  0         /mnt/boot-sav/sda1
sda2     0  0  0         /mnt/boot-sav/sda2
sda3     0  0  0         /mnt/boot-sav/sda3
sdb      1  0  1 running
sdb1     1  0  1         /cdrom
sr0      1  0  1 running


=================== mount:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8130060k,nr_inodes=2032515,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1630716k,mode=755)
/dev/sdb1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 on /rofs type squashfs (ro,noatime)
/cow on / type overlay (rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
mqueue on /dev/mqueue type mqueue (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=45,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=14046)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=1630712k,mode=700,uid=999,gid=999)
gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
/dev/sda1 on /mnt/boot-sav/sda1 type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sda2 on /mnt/boot-sav/sda2 type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sda3 on /mnt/boot-sav/sda3 type ext4 (rw,relatime)


=================== ls:
/sys/block/sda (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro sda1 sda2 sda3 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered):  autofs block bsg btrfs-control bus cdrom cdrw char console core cpu cpu_dma_latency cuse disk dri drm_dp_aux0 drm_dp_aux1 dvd dvdrw ecryptfs fb0 fd full fuse hidraw0 hidraw1 hpet hugepages hwrng i2c-0 i2c-1 i2c-2 i2c-3 i2c-4 initctl input kmsg kvm lightnvm log mapper mcelog mei0 mem memory_bandwidth mqueue net network_latency network_throughput null port ppp pps0 psaux ptmx ptp0 ptp1 pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sdb sdb1 sg0 sg1 sg2 shm snapshot snd sr0 stderr stdin stdout udmabuf uhid uinput urandom usb userio vfio vga_arbiter vhci vhost-net vhost-vsock zero
ls /dev/mapper:  control

=================== hexdump -n512 -C /dev/sda1
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 08 00 00  |........?.......|
00000020  00 00 00 00 80 00 80 00  9a b6 0b 1d 00 00 00 00  |................|
00000030  04 00 00 00 00 00 00 00  7f c2 d1 01 00 00 00 00  |................|
00000040  f6 00 00 00 01 00 00 00  52 0f 90 7c 1f 0c bf 79  |........R..|...y|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 52 11 16  68 09 00 66 53 66 53 66  |h...hR..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  0a 13 b9 f6 0c fc f3 aa  e9 fe 01 90 90 66 60 1e  |.............f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a1 f6 01 e8 09 00  |...u...fa.......|
00000170  a1 fa 01 e8 03 00 f4 eb  fd 8b f0 ac 3c 00 74 09  |............<.t.|
00000180  b4 0e bb 07 00 cd 10 eb  f2 c3 0d 0a 41 20 64 69  |............A di|
00000190  73 6b 20 72 65 61 64 20  65 72 72 6f 72 20 6f 63  |sk read error oc|
000001a0  63 75 72 72 65 64 00 0d  0a 42 4f 4f 54 4d 47 52  |curred...BOOTMGR|
000001b0  20 69 73 20 63 6f 6d 70  72 65 73 73 65 64 00 0d  | is compressed..|
000001c0  0a 50 72 65 73 73 20 43  74 72 6c 2b 41 6c 74 2b  |.Press Ctrl+Alt+|
000001d0  44 65 6c 20 74 6f 20 72  65 73 74 61 72 74 0d 0a  |Del to restart..|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 8a 01  a7 01 bf 01 00 00 55 aa  |..............U.|
00000200

=================== hexdump -n512 -C /dev/sda2
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 c0 0b 1d  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff 67 10 00 00 00 00 00  |.........g......|
00000030  00 af 00 00 00 00 00 00  02 00 00 00 00 00 00 00  |................|
00000040  f6 00 00 00 01 00 00 00  ef 85 b9 ee a9 b9 ee d2  |................|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 52 11 16  68 09 00 66 53 66 53 66  |h...hR..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  0a 13 b9 f6 0c fc f3 aa  e9 fe 01 90 90 66 60 1e  |.............f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a1 f6 01 e8 09 00  |...u...fa.......|
00000170  a1 fa 01 e8 03 00 f4 eb  fd 8b f0 ac 3c 00 74 09  |............<.t.|
00000180  b4 0e bb 07 00 cd 10 eb  f2 c3 0d 0a 45 72 72 65  |............Erre|
00000190  75 72 20 6c 65 63 74 75  72 65 20 64 69 73 71 75  |ur lecture disqu|
000001a0  65 00 0d 0a 42 4f 4f 54  4d 47 52 20 63 6f 6d 70  |e...BOOTMGR comp|
000001b0  72 65 73 73 82 00 0d 0a  43 74 72 6c 2b 41 6c 74  |ress....Ctrl+Alt|
000001c0  2b 53 75 70 70 72 20 70  6f 75 72 20 72 65 64 82  |+Suppr pour red.|
000001d0  6d 61 72 72 65 72 0d 0a  00 73 74 61 72 74 0d 0a  |marrer...start..|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 8a 01  a2 01 b6 01 00 00 55 aa  |..............U.|
00000200

=================== df -Th:

Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  7.8G     0  7.8G   0% /dev
tmpfs          tmpfs     1.6G  1.5M  1.6G   1% /run
/dev/sdb1      vfat      7.3G  1.9G  5.4G  27% /cdrom
/dev/loop0     squashfs  1.9G  1.9G     0 100% /rofs
/cow           overlay   7.8G   98M  7.7G   2% /
tmpfs          tmpfs     7.8G   26M  7.8G   1% /dev/shm
tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
tmpfs          tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup
tmpfs          tmpfs     7.8G  600K  7.8G   1% /tmp
tmpfs          tmpfs     1.6G   40K  1.6G   1% /run/user/999
/dev/sda1      fuseblk   233G  115G  118G  50% /mnt/boot-sav/sda1
/dev/sda2      fuseblk   525M  437M   89M  84% /mnt/boot-sav/sda2
/dev/sda3      ext4      229G   16G  202G   8% /mnt/boot-sav/sda3

=================== fdisk -l:
Disk /dev/loop0: 1.8 GiB, 1948299264 bytes, 3805272 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes




Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x98b1b967

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048 487308954 487306907 232.4G  7 HPFS/NTFS/exFAT
/dev/sda2       487309312 488384511   1075200   525M 27 Hidden NTFS WinRE
/dev/sda3       488386560 976773119 488386560 232.9G 83 Linux


Disk /dev/sdb: 7.3 GiB, 7851737088 bytes, 15335424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00102155

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1  *     2048 15335423 15333376  7.3G  c W95 FAT32 (LBA)




=================== Suggested repair
The default repair of the Boot-Repair utility would purge (in order to fix customized files) and reinstall the grub2 of sda3 into the MBR of sda.
Additional repair would be performed: unhide-bootmenu-10s


=================== Final advice in case of suggested repair


The boot files of [Linux Mint 20 Ulyana] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)


=================== User settings
The settings chosen by the user will not act on the boot.




pastebinit  packages needed
Gtk-Message: 11:29:47.146: GtkDialog mapped without a transient parent. This is discouraged.
E: The repository 'cdrom://Linux Mint 19.3 _Tricia_ - Release amd64 20191213 bionic Release' does not have a Release file.
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
paste2.org ko (http://paste2.org/)

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] 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

Hors ligne

#5 Le 26/10/2020, à 12:43

geole

Re : [RESOLU] Grub a disparu !

Le boot-info dit que le grub est dans la partition 2
============================= 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:
    mdules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk

Or ce n'est plus vrai, la mise à jour de windows a certainement renuméroté les partitions

sda3: __________________________________________________________________________
    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 20
    Boot files:        /boot/grub/grub.cfg /etc/fstab 
                       /boot/grub/i386-pc/core.img

Cependant,  ta méthode de transfert  a oublié de copier la fin des propositions de réparation.

Donc a tout hasard:   Tu fais la réparation recommandée,et si cela ne fonctionne pas, tu refais un boot-info et tu transmets l'URL générée. Il n'y aura rien d'oublié.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

En ligne

#6 Le 26/10/2020, à 18:54

Sebiohazard

Re : [RESOLU] Grub a disparu !

Voici

Sinon j'ai trouvé ceci qui m'a permit de démarrer sur mon Grub mais au redémarrage cela n'a rien changé...

Je fais quoi maintenant ?


Ubuntu 18.04.2 LTS x64

Hors ligne

#7 Le 26/10/2020, à 19:10

geole

Re : [RESOLU] Grub a disparu !

As-tu tenté le boot-repair standard?
=================== Suggested repair
The default repair of the Boot-Repair utility would purge (in order to fix customized files) and reinstall the grub2 of  sda3 into the MBR of sda.

Si oui, tu t'es trompé

=> 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:

Dernière modification par geole (Le 26/10/2020, à 19:12)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

En ligne

#8 Le 26/10/2020, à 21:32

Sebiohazard

Re : [RESOLU] Grub a disparu !

As-tu tenté le boot-repair standard?

Qu'est-ce que tu entends par " Standard " ? J'ai choisi la première option de Boot Repair, ce n'est pas bien ?


Ubuntu 18.04.2 LTS x64

Hors ligne

#9 Le 26/10/2020, à 21:36

geole

Re : [RESOLU] Grub a disparu !

"Réparation recommandée "


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

En ligne

#10 Le 26/10/2020, à 21:46

Sebiohazard

Re : [RESOLU] Grub a disparu !

Oui c'est bien ce que j'ai fait mais toujours la même erreur au démarrage.


Ubuntu 18.04.2 LTS x64

Hors ligne

#11 Le 26/10/2020, à 22:06

geole

Re : [RESOLU] Grub a disparu !

Peux-tu refaire le boot-repair et poster le résultat de son passage?


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

En ligne

#12 Le 27/10/2020, à 00:11

alh54

Re : [RESOLU] Grub a disparu !

Sinon j'ai trouvé ceci qui m'a permit de démarrer sur mon Grub mais au redémarrage cela n'a rien changé...

Si tu as pu amorcer Ubuntu pourquoi ne pas avoir réinstallé grub avant de rebooter?

sudo grub-install /dev/sda
sudo update-grub

Puis tu rebootes.

Hors ligne

#13 Le 27/10/2020, à 00:19

Sebiohazard

Re : [RESOLU] Grub a disparu !

Alors Boot Repair me demande d'entrer ces lignes:

sudo chroot "/mnt/boot-sav/sda3" dpkg --configure -a
sudo chroot "/mnt/boot-sav/sda3" apt-get install -fy
sudo chroot "/mnt/boot-sav/sda3" apt-get purge -y grub*-common grub-common:i386 shim-signed

& voici les retours:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'grub-common' for glob 'grub*-common'
Note, selecting 'grub2-common' for glob 'grub*-common'
E: Unable to locate package grub-common:i386

Ubuntu 18.04.2 LTS x64

Hors ligne

#14 Le 27/10/2020, à 00:23

Sebiohazard

Re : [RESOLU] Grub a disparu !

& voici le fichier info ici


Ubuntu 18.04.2 LTS x64

Hors ligne

#15 Le 27/10/2020, à 10:38

geole

Re : [RESOLU] Grub a disparu !

Bonjour
On s'est mal compris, Tu as refais un boot-info, alors que c'est le retour boot-repair que je voulais voir pour comprendre ce qu'il  ne faisait pas.

Cela est d'autant plus nécessaire que tu signales qu'une commande s'est très mal déroulée.
Ce que tu peux tenter
    Lancer boot-repair
      Contrôler qu'il s'exécute bien  en mode LEGACY et pas EFI
     Choisir  options avancée  et demander la réinstallation du grub
     Puis fournir si possible son rapport d’exécution.

Je note
  Operating System:  Linux Mint 20

Dernière modification par geole (Le 27/10/2020, à 12:02)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

En ligne

#16 Le 27/10/2020, à 11:58

Sebiohazard

Re : [RESOLU] Grub a disparu !

Hello !

J'ai enfin résolu mon soucis, grâce à cette vidéo ici. Voici la procédure que j'ai suivi:

1. Au démarrage du PC (menu rescue) j'ai entré ces lignes de commande:

set boot=(hd0,msdos3)
set prefix=(hd0,msdos3)/boot/grub
insmod normal
normal

2. A ce stade j'ai pu enfin accéder à mon Grub & démarrer sous Mint. Puis j'ai ouvert un terminal & entré ces commandes:

sudo grub-install --force /dev/sda
sudo update-grub

Maintenant j'aimerais juste comprendre pourquoi cette saloperie de MAJ Windows m'a créé une nouvelle partition cachée de 500 Mo qui a bousillé mon Grub sans rien me demander au préalable ?!


Ubuntu 18.04.2 LTS x64

Hors ligne

#17 Le 27/10/2020, à 12:12

geole

Re : [RESOLU] Grub a disparu !

Sebiohazard a écrit :

Maintenant j'aimerais juste comprendre pourquoi cette saloperie de MAJ Windows m'a créé une nouvelle partition cachée de 500 Mo qui a bousillé mon Grub sans rien me demander au préalable ?!

Qui te fait dire  que cette partition vient d'être créée.
Je pense plutôt que windows a remis en état sa partition en éliminant une structure de boot inconnue de lui  qui  a probablement été installée  par mauvais choix il y a quelque temps
sudo grub-install  /dev/sda2

====> https://forum.ubuntu-fr.org/viewtopic.p … #p22128834

Dernière modification par geole (Le 27/10/2020, à 12:19)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

En ligne

#18 Le 27/10/2020, à 12:21

Sebiohazard

Re : [RESOLU] Grub a disparu !

Tout simplement parce que je me suis efforcé de ne PAS l'avoir cette partition UEFI qui ne sert à rien puisque je suis en Legacy & MBR !

Lorsque j'ai installé Windows, j'ai bien vérifié que je n'avais qu'une SEULE partition à la fin de l'installation ! C'est après cette ... MAJ qu'elle est apparue !


Ubuntu 18.04.2 LTS x64

Hors ligne

#19 Le 27/10/2020, à 12:44

geole

Re : [RESOLU] Grub a disparu !

Extrait de ton boot-info

Drive: sda _____________________________________________________________________
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048   487,308,954   487,306,907   7 NTFS / exFAT / HPFS
/dev/sda2         487,309,312   488,384,511     1,075,200  27 Hidden NTFS (Recovery Environment)
/dev/sda3         488,386,560   976,773,119   488,386,560  83 Linux

Trois possibilités
Soit la partition existait et le démarrage de ubuntu  s'est mis dedans
Soit la partition a été créée dans l'espace de ubntu, Dans ce cas ubuntu n'aurait pas pu mettre en route
Soit la partition a été créée dans l'espace de windows et windows a renuméroté les partitions. Ce qui n'est pas interdit. Bien au contraire car cela évite le message d'erreur disant que les N° de partitions ne sont pas dans l'ordre d'implantation physique.

=> Ton grub n'a pas été bousillé, il se trompe simplement de Numéro.

Dernière modification par geole (Le 27/10/2020, à 12:45)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

En ligne

#20 Le 27/10/2020, à 12:54

moko138

Re : [RESOLU] Grub a disparu !

geole,
Est-ce que grub accepte de s'installer dans un NTFS ?
Et si ce NTFS est celui de C:, est-ce que Windows démarre encore ensuite ?


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#21 Le 27/10/2020, à 13:21

geole

Re : [RESOLU] Grub a disparu !

Bonjour Moko138

Cela empêche  windows de redémarrer..   ===> https://forum.ubuntu-fr.org/viewtopic.p … #p22128730 Mais je ne sais pas si c'est systématique.

Dans ce contexte,
    Soit la partition existait  et grub était installé dedans. La grosse mise à jour de windows a certainement reformaté la partition  de recovery. Mais je n'ai aucune idée pour faire afficher la date de création et la date de formatage.   Je ne sais d'ailleurs pas si cette information existe.

   Soit la partition n'existait pas et la nouvelle version windows a  réduit le C: pour créer une partition de recovery devenue nécessaire en renumérotant les partitions. C'est un cas classique de plantage du grub LEGACY    et du grub EFI

a@a:~$ cd /boot/efi/EFI/ubuntu
a@a:/boot/efi/EFI/ubuntu$ cat grub.cfg
search.fs_uuid fcb39a24-7877-485d-9083-0e92cf2dadc2 root hd0,gpt8 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
a@a:/boot/efi/EFI/ubuntu$ 

Dans ce contexte, cela risque de faire mal. Je pense à  tous qui ont du supprimer une partition  pour installer ubuntu et à qui on a proposé la suppression du RECOVERY  après réinjection dans le C:

Dernière modification par geole (Le 27/10/2020, à 13:27)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

En ligne

#22 Le 27/10/2020, à 15:07

moko138

Re : [RESOLU] Grub a disparu !

Eh oui, merci geole !  smile

  - -

Mais je n'ai aucune idée pour faire afficher la date de création et la date de formatage.   Je ne sais d'ailleurs pas si cette information existe.

Pour l'ext*, nous disposons de

sudo tune2fs -l /dev/sda5 | grep -E "Filesystem|Last"

Il serait étonnant que Windows ne dispose pas d'un outil analogue.

Dans GNU/Linux :

man ntfsprogs
NAME
       ntfsprogs - tools for doing neat things with NTFS

OVERVIEW
       ntfsprogs  is  a  suite of NTFS utilities based around a shared library.  The tools are available for free and come
       with full source code.

TOOLS
       mkntfs(8) - Create an NTFS filesystem.

       ntfscat(8) - Dump a file's content to the standard output.

       ntfsclone(8) - Efficiently clone, backup, restore or rescue NTFS.

       ntfscluster(8) - Locate the files which use the given sectors or clusters.

       ntfscmp(8) - Compare two NTFS filesystems and tell the differences.

       ntfscp(8) - Copy a file to an NTFS volume.

       ntfsfix(8) - Check and fix some common errors, clear the LogFile and make Windows perform  a  thorough  check  next
       time it boots.

       ntfsinfo(8) - Show information about NTFS or one of the files or directories within it.

       ntfslabel(8) - Show, or set, an NTFS filesystem's volume label.

       ntfsls(8) - List information about files in a directory residing on an NTFS.

       ntfsresize(8) - Resize NTFS without losing data.

       ntfsundelete(8) - Recover deleted files from NTFS.

          Et

man ntfsinfo
NAME
       ntfsinfo - dump a file's attributes
SYNOPSIS
       ntfsinfo [options] device
DESCRIPTION
       ntfsinfo  will dump the attributes of inode inode-number or the file path-filename and/or information about the mft
       ( -m option).  Run ntfsinfo without arguments for a full list of options.

OPTIONS
       Below is a summary of all the options that ntfsinfo accepts.  Nearly all options have two  equivalent  names.   The
       short  name  is  preceded  by - and the long name is preceded by --.  Any single letter options, that don't take an
       argument, can be combined into a single command, e.g.  -fv is equivalent to -f  -v.   Long  named  options  can  be
       abbreviated to any unique prefix of their name.

       -F, --file FILE
              Show information about this file
       -f, --force
              This  will  override some sensible defaults, such as not overwriting an existing file.  Use this option with
              caution.
       -h, --help
              Show a list of options with a brief description of each one.
       -i, --inode NUM
              Show information about this inode.
       -m, --mft
              Show information about the volume.
       -q, --quiet
              Produce less output.
       -t, --notime
              Do not display timestamps in the output.
       -v, --verbose
              Increase the amount of output that ntfsinfo prints.
      -V, --version
              Show the version number, copyright and license.

            .
Mais je n'ai pas trouvé de date dans le retour de

sudo ntfsinfo /dev/sda1 -m -v

%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#23 Le 27/10/2020, à 17:15

Sebiohazard

Re : [RESOLU] Grub a disparu !

geole a écrit :

Extrait de ton boot-info
Trois possibilités
Soit la partition existait et le démarrage de ubuntu  s'est mis dedans
Soit la partition a été créée dans l'espace de ubntu, Dans ce cas ubuntu n'aurait pas pu mettre en route
Soit la partition a été créée dans l'espace de windows et windows a renuméroté les partitions. Ce qui n'est pas interdit. Bien au contraire car cela évite le message d'erreur disant que les N° de partitions ne sont pas dans l'ordre d'implantation physique.

=> Ton grub n'a pas été bousillé, il se trompe simplement de Numéro.

C'est la dernière possibilité j'ai vérifié en comparant la taille des partitions. Maintenant j'aimerais shooter cette partition UFEI qui sert à rien, mais j'imagine que c'est risqué ?


Ubuntu 18.04.2 LTS x64

Hors ligne

#24 Le 27/10/2020, à 17:37

geole

Re : [RESOLU] Grub a disparu !

Sebiohazard a écrit :

C'est la dernière possibilité j'ai vérifié en comparant la taille des partitions. Maintenant j'aimerais shooter cette partition UFEI qui sert à rien, mais j'imagine que c'est risqué ?

Il n'y a aucun risque lol . Ubuntu ne sait pas renuméroter automatiquement, Il faudra juste attendre une prochaine mise  jour de window pour  trouver le problème inverse. big_smile

Cependant, je ne sais pourquoi tu dis que c'est une partition EFI
sda2: __________________________________________________________________________
    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System: 
    Boot files:       

alors alors que c'est une partition RECOVERY de windows

/dev/sda1    *          2,048   487,308,954   487,306,907   7 NTFS / exFAT / HPFS
/dev/sda2         487,309,312   488,384,511     1,075,200  27 Hidden NTFS (Recovery Environment)

qui est utilisée lorsque windows se plante.
Personnellement  je considère qu'il arrive que windows se plante. Sans partition recovery, je ne sais pas se qui se passera pour windows, mais cela ne devrait pas impacter ubuntu


Pour moko138:   Sous windows, le logiciel de partition est diskpart.exe et je n'ai pas trouvé non plus d'options pour afficher la date de création

Dernière modification par geole (Le 27/10/2020, à 17:41)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

En ligne

#25 Le 27/10/2020, à 18:37

moko138

Re : [RESOLU] Grub a disparu !

"diskpart.exe", c'est noté, merci !  smile

  - -

geole a écrit :

Ubuntu ne sait pas renuméroter automatiquement,

Mais manuellement si, et c'est même simple !  smile


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne