Résolu le 17-11-19 Déséspérément sans Grub après réinstal de windows

Assistance concernant Linux Mint
Razmot1975
Messages : 29
Enregistré le : ven. 15 nov. 2019 18:39

Déséspérément sans Grub après réinstal de windows

Message par Razmot1975 »

Salut à tous-tes!
Me voila, comme indiqué dans le titre, sans Grub depuis la réinstallation de Windows 7.
J'ai bien évidemment tenter plusieurs Boot-repair sans résultat. Je n'ai pas changé de version BIOS depuis la dernière install'.
La seule chose étrange et incomprise est que la partition /grub se trouve au même endroit que /home. Ce qui me donne dans Gparted: /dev/sda4......../boot, /home.

Image

Voici la Boot-info généré après ma dernière tentative de Boot-repair

Code : Tout sélectionner

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

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 19
    Boot files:        /etc/fstab

sda4: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        /grub/grub.cfg /grub/i386-pc/core.img

============================ 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                  64   255,995,774   255,995,711   7 NTFS / exFAT / HPFS
/dev/sda2    *    255,995,902   259,901,439     3,905,538   5 Extended
/dev/sda5         255,995,904   259,901,439     3,905,536  82 Linux swap / Solaris
/dev/sda3         259,901,440   318,494,719    58,593,280  83 Linux
/dev/sda4         318,494,720   761,853,951   443,359,232  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        FAEA2FF6EA2FADB7                       ntfs       
/dev/sda3        714c7d0e-1885-4e9b-931c-696c9a8523e6   ext4       
/dev/sda4        c31ea9e3-580a-4ac0-9216-5570a8ce9ca4   ext4       
/dev/sda5        42bdd4f6-cc20-42a7-88eb-c14fd2cf65aa   swap       

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

total 0
lrwxrwxrwx 1 root root  9 Nov 15 18:18 ata-Samsung_SSD_860_EVO_500GB_S4CNNG0M203610L -> ../../sda
lrwxrwxrwx 1 root root 10 Nov 15 18:18 ata-Samsung_SSD_860_EVO_500GB_S4CNNG0M203610L-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 15 18:18 ata-Samsung_SSD_860_EVO_500GB_S4CNNG0M203610L-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov 15 18:18 ata-Samsung_SSD_860_EVO_500GB_S4CNNG0M203610L-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov 15 18:18 ata-Samsung_SSD_860_EVO_500GB_S4CNNG0M203610L-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Nov 15 18:18 ata-Samsung_SSD_860_EVO_500GB_S4CNNG0M203610L-part5 -> ../../sda5
lrwxrwxrwx 1 root root  9 Nov 15 18:18 wwn-0x5002538e701d4297 -> ../../sda
lrwxrwxrwx 1 root root 10 Nov 15 18:18 wwn-0x5002538e701d4297-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 15 18:18 wwn-0x5002538e701d4297-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov 15 18:18 wwn-0x5002538e701d4297-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov 15 18:18 wwn-0x5002538e701d4297-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Nov 15 18:18 wwn-0x5002538e701d4297-part5 -> ../../sda5

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

Device           Mount_Point              Type       Options

/dev/fuse        /home/bachibouzouk/.cache/doc fuse       (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
/dev/sda3        /                        ext4       (rw,relatime,errors=remount-ro,data=ordered)
/dev/sda4        /boot                    ext4       (rw,relatime,data=ordered)
/dev/sda4        /home                    ext4       (rw,relatime,data=ordered)


========================== sda1/grldr embedded menu: ===========================

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

=============================== 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/sda3 during installation
UUID=714c7d0e-1885-4e9b-931c-696c9a8523e6 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda4 during installation
UUID=c31ea9e3-580a-4ac0-9216-5570a8ce9ca4 /home           ext4    defaults        0       2
# swap was on /dev/sda5 during installation
UUID=42bdd4f6-cc20-42a7-88eb-c14fd2cf65aa none            swap    sw              0       0
UUID=c31ea9e3-580a-4ac0-9216-5570a8ce9ca4	/boot	ext4	defaults	0	2
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 124.102512360 = 133.254057984  vmlinuz                                        2
 124.102512360 = 133.254057984  vmlinuz.old                                    2
 126.450748444 = 135.775457280  initrd.img                                     5
 126.450748444 = 135.775457280  initrd.img.old                                 5

============================= sda4/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 [ "${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 recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  714c7d0e-1885-4e9b-931c-696c9a8523e6
else
  search --no-floppy --fs-uuid --set=root 714c7d0e-1885-4e9b-931c-696c9a8523e6
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=fr_FR
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=10
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=10
  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=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
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-714c7d0e-1885-4e9b-931c-696c9a8523e6' {
	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,msdos4'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  c31ea9e3-580a-4ac0-9216-5570a8ce9ca4
	else
	  search --no-floppy --fs-uuid --set=root c31ea9e3-580a-4ac0-9216-5570a8ce9ca4
	fi
        linux	/vmlinuz-4.15.0-70-generic root=UUID=714c7d0e-1885-4e9b-931c-696c9a8523e6 ro  quiet splash $vt_handoff
	initrd	/initrd.img-4.15.0-70-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-714c7d0e-1885-4e9b-931c-696c9a8523e6' {
	menuentry 'Ubuntu, with Linux 4.15.0-70-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-70-generic-advanced-714c7d0e-1885-4e9b-931c-696c9a8523e6' {
		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,msdos4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  c31ea9e3-580a-4ac0-9216-5570a8ce9ca4
		else
		  search --no-floppy --fs-uuid --set=root c31ea9e3-580a-4ac0-9216-5570a8ce9ca4
		fi
		echo	'Loading Linux 4.15.0-70-generic ...'
	        linux	/vmlinuz-4.15.0-70-generic root=UUID=714c7d0e-1885-4e9b-931c-696c9a8523e6 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-4.15.0-70-generic
	}
	menuentry 'Ubuntu, with Linux 4.15.0-70-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-70-generic-recovery-714c7d0e-1885-4e9b-931c-696c9a8523e6' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  c31ea9e3-580a-4ac0-9216-5570a8ce9ca4
		else
		  search --no-floppy --fs-uuid --set=root c31ea9e3-580a-4ac0-9216-5570a8ce9ca4
		fi
		echo	'Loading Linux 4.15.0-70-generic ...'
	        linux	/vmlinuz-4.15.0-70-generic root=UUID=714c7d0e-1885-4e9b-931c-696c9a8523e6 ro recovery nomodeset 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-4.15.0-70-generic
	}
}

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

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

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

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

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

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

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

           GiB - GB             File                                 Fragment(s)

 151.870121002 = 163.069300736  grub/grub.cfg                                  1
 242.051815033 = 259.901157376  grub/i386-pc/core.img                          1
 152.041965485 = 163.253817344  vmlinuz-4.15.0-70-generic                      2
 154.390201569 = 165.775216640  initrd.img-4.15.0-70-generic                   5

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

Unknown BootLoader on sda2



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

hexdump: /dev/sda2: No such device or address
hexdump: /dev/sda2: No such device or address
File descriptor 9 (/proc/21165/mountinfo) leaked on lvs invocation. Parent PID 30175: bash
File descriptor 63 (pipe:[67102]) leaked on lvs invocation. Parent PID 30175: bash

ADDITIONAL INFORMATION :
=================== log of boot-repair 20191115_1817 ===================
boot-repair version : 4ppa66
boot-sav version : 4ppa66
boot-sav-extra version :
glade2script version : 3.2.3~ppa4
/usr/share/boot-sav/gui-scan.sh: ligne 20: os-prober : commande introuvable
boot-repair is executed in installed-session (Linux Mint 19 Tara, tara, LinuxMint, x86_64)
CPU op-mode(s):      32-bit, 64-bit
BOOT_IMAGE=/vmlinuz-4.15.0-70-generic root=UUID=714c7d0e-1885-4e9b-931c-696c9a8523e6 ro quiet splash vt.handoff=1

=================== os-prober:
/dev/sda3:L'OS actuellement utilisé - Linux Mint 19 Tara CurrentSession:linux

=================== blkid:
/dev/sda1: UUID="FAEA2FF6EA2FADB7" TYPE="ntfs" PARTUUID="0f154e29-01"
/dev/sda3: UUID="714c7d0e-1885-4e9b-931c-696c9a8523e6" TYPE="ext4" PARTUUID="0f154e29-03"
/dev/sda4: UUID="c31ea9e3-580a-4ac0-9216-5570a8ce9ca4" TYPE="ext4" PARTUUID="0f154e29-04"
/dev/sda5: UUID="42bdd4f6-cc20-42a7-88eb-c14fd2cf65aa" TYPE="swap" PARTUUID="0f154e29-05"


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

Windows not detected by os-prober on sda1.

=================== /etc/grub.d/ :
drwxr-xr-x  3 root root     4096 nov.  15 00:45 grub.d
drwxr-xr-x  5 root root     4096 nov.  15 00:08 grub.d.bak
total 80
-rwxr-xr-x 1 root root 10046 mars  18  2019 00_header
-rwxr-xr-x 1 root root  6258 mars  18  2019 05_debian_theme
-rwxr-xr-x 1 root root 12693 mars  18  2019 10_linux
-rwxr-xr-x 1 root root 11298 mars  18  2019 20_linux_xen
-rwxr-xr-x 1 root root 12059 mars  18  2019 30_os-prober
-rwxr-xr-x 1 root root  1418 mars  18  2019 30_uefi-firmware
-rwxr-xr-x 1 root root   214 mars  18  2019 40_custom
-rwxr-xr-x 1 root root   216 mars  18  2019 41_custom
drwxr-xr-x 4 root root  4096 nov.  15 00:26 backup
-rw-r--r-- 1 root root   483 mars  18  2019 README




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



/boot detected in the fstab of sda3: UUID=c31ea9e3-580a-4ac0-9216-5570a8ce9ca4	 (sda4)

=================== UEFI/Legacy mode:
This installed-session is not in EFI-mode.
EFI in dmesg.
[    0.000000] ACPI: UEFI 0x00000000BAFDF000 00003E (v01 LENOVO TP-G5    00002560 PTL  00000002)
[    0.000000] ACPI: UEFI 0x00000000BAFDE000 000042 (v01 PTL    COMBUF   00000001 PTL  00000001)
[    0.000000] ACPI: UEFI 0x00000000BAFDA000 0002A6 (v01 LENOVO TP-G5    00002560 PTL  00000002)
SecureBoot disabled.


=================== PARTITIONS & DISKS:
sda3	: sda,	not-sepboot,	grubenv-ok	grub2,	grub-pc ,	update-grub,	64,	with-boot,	is-os,	not--efi--part,	fstab-has-goodBOOT,	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,	standard,	farbios,	notbiosboot, .
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, /media/bachibouzouk/FAEA2FF6EA2FADB7.
sda4	: sda,	is-sepboot,	grubenv-ok	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,	no-recov-nor-hid,	no-bmgr,	notwinboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	farbios,	notbiosboot, /boot.

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


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

BYT;
/dev/sda:500GB:scsi:512:512:msdos:ATA Samsung SSD 860:;
1:32.8kB:131GB:131GB:ntfs::;
2:131GB:133GB:2000MB:::boot;
5:131GB:133GB:2000MB:linux-swap(v1)::;
3:133GB:163GB:30.0GB:ext4::;
4:163GB:390GB:227GB:ext4::;

=================== lsblk:
KNAME TYPE FSTYPE   SIZE LABEL
sda   disk        465,8G
sda1  part ntfs   122,1G
sda3  part ext4      28G
sda4  part ext4   211,4G
sda5  part swap     1,9G

KNAME ROTA RO RM STATE   MOUNTPOINT
sda      0  0  0 running
sda1     0  0  0         /media/bachibouzouk/FAEA2FF6EA2FADB7
sda3     0  0  0         /
sda4     0  0  0         /home
sda5     0  0  0         [SWAP]


=================== 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=5896728k,nr_inodes=1474182,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=1185952k,mode=755)
/dev/sda3 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
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/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/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
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/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=44,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=20536)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda4 on /boot type ext4 (rw,relatime,data=ordered)
/dev/sda4 on /home type ext4 (rw,relatime,data=ordered)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1185952k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sda1 on /media/bachibouzouk/FAEA2FF6EA2FADB7 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
/dev/fuse on /home/bachibouzouk/.cache/doc type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
gvfsd-fuse on /home/bachibouzouk/.gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)


=================== 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 power queue range removable ro sda1 sda2 sda3 sda4 sda5 size slaves stat subsystem trace uevent
/dev (filtered):  autofs block bsg btrfs-control bus char console core cpu cpu_dma_latency cuse disk dri drm_dp_aux0 drm_dp_aux1 drm_dp_aux2 ecryptfs fb0 fd full fuse fw0 hpet hugepages hwrng i2c-0 i2c-1 i2c-10 i2c-11 i2c-12 i2c-13 i2c-14 i2c-15 i2c-16 i2c-17 i2c-18 i2c-19 i2c-2 i2c-20 i2c-3 i2c-4 i2c-5 i2c-6 i2c-7 i2c-8 i2c-9 initctl input kmsg lightnvm log mapper mcelog media0 mei0 mem memory_bandwidth mqueue net network_latency network_throughput null port ppp psaux ptmx ptp0 pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sg0 shm snapshot snd stderr stdin stdout tpm0 uhid uinput urandom userio v4l vboxusb vfio vga_arbiter vhci vhost-net vhost-vsock video0 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 40 00 00 00  |........?...@...|
00000020  00 00 00 00 80 00 80 00  3e 2f 42 0f 00 00 00 00  |........>/B.....|
00000030  00 00 0c 00 00 00 00 00  02 00 00 00 00 00 00 00  |................|
00000040  f6 00 00 00 01 00 00 00  b7 ad 2f ea f6 2f ea fa  |........../../..|
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 70 0e 16  68 09 00 66 53 66 53 66  |h...hp..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  28 10 b9 d8 0f fc f3 aa  e9 5f 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 a0 f8 01 e8 09 00  |...u...fa.......|
00000170  a0 fb 01 e8 03 00 f4 eb  fd b4 01 8b f0 ac 3c 00  |..............<.|
00000180  74 09 b4 0e bb 07 00 cd  10 eb f2 c3 0d 0a 41 20  |t.............A |
00000190  64 69 73 6b 20 72 65 61  64 20 65 72 72 6f 72 20  |disk read error |
000001a0  6f 63 63 75 72 72 65 64  00 0d 0a 42 4f 4f 54 4d  |occurred...BOOTM|
000001b0  47 52 20 69 73 20 6d 69  73 73 69 6e 67 00 0d 0a  |GR is missing...|
000001c0  42 4f 4f 54 4d 47 52 20  69 73 20 63 6f 6d 70 72  |BOOTMGR is compr|
000001d0  65 73 73 65 64 00 0d 0a  50 72 65 73 73 20 43 74  |essed...Press Ct|
000001e0  72 6c 2b 41 6c 74 2b 44  65 6c 20 74 6f 20 72 65  |rl+Alt+Del to re|
000001f0  73 74 61 72 74 0d 0a 00  8c a9 be d6 00 00 55 aa  |start.........U.|
00000200

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

Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  5.7G     0  5.7G   0% /dev
tmpfs          tmpfs     1.2G  1.5M  1.2G   1% /run
/dev/sda3      ext4       28G   12G   15G  46% /
tmpfs          tmpfs     5.7G   93M  5.6G   2% /dev/shm
tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
tmpfs          tmpfs     5.7G     0  5.7G   0% /sys/fs/cgroup
/dev/sda4      ext4      208G  132G   66G  67% /boot
tmpfs          tmpfs     1.2G   28K  1.2G   1% /run/user/1000
/dev/sda1      fuseblk   123G   48G   75G  39% /media/bachibouzouk/FAEA2FF6EA2FADB7

=================== fdisk -l:
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: 0x0f154e29

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1              64 255995774 255995711 122.1G  7 HPFS/NTFS/exFAT
/dev/sda2  *    255995902 259901439   3905538   1.9G  5 Extended
/dev/sda3       259901440 318494719  58593280    28G 83 Linux
/dev/sda4       318494720 761853951 443359232 211.4G 83 Linux
/dev/sda5       255995904 259901439   3905536   1.9G 82 Linux swap / Solaris

Partition table entries are not in disk order.



=================== Recommended repair
The default repair of the Boot-Repair utility will reinstall the grub2 of sda3 into the MBR of sda, using the following options:        sda4/boot,
Additional repair will be performed: unhide-bootmenu-10s



*******lspci -nnk | grep -iA3 vga
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:21f5]
Kernel driver in use: i915
Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GLM [Quadro K1000M] [10de:0ffc] (rev a1)
Subsystem: Lenovo GK107GLM [Quadro K1000M] [17aa:21f5]
Kernel driver in use: nouveau
Kernel modules: nvidiafb, nouveau
*******

grub-install --version
grub-install (GRUB) 2.02-2ubuntu8.13,grub-install (GRUB) 2.

Reinstall the GRUB of sda3 into the MBR of sda
Installing for i386-pc platform.
Installation finished. No error reported.
grub-install /dev/sda: exit code of grub-install /dev/sda:0

update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-70-generic
Found initrd image: /boot/initrd.img-4.15.0-70-generic
Unhide GRUB boot menu in sda3/boot/grub/grub.cfg

Le démarrage de l'ordinateur a été correctement réparé.

Vous pouvez maintenant redémarrer votre ordinateur.


Les fichiers de démarrage de [L'OS actuellement utilisé - Linux Mint 19 Tara] sont loin du début du disque. Votre BIOS pourrait ne pas les détecter. Vous voudrez peut-être re-essayer après avoir créé une partition /boot (EXT4, >200MB, en début de disque). Cela peut être réalisé via des outils tels que gParted. Puis sélectionnez cette partition via l'option [Partition /boot séparée :] de [Réparateur de démarrage]. (http://doc.ubuntu-fr.org/tutoriel/partition_boot)
Voila je crois toutes les info que je peux vous donner.
N'hésitez pas si vous avez des suggestions!
Merci d'avance

(J'ajoute quand même que j'ai déja passé plusieurs heures sur l'internet mondial avant ce message à la recherche de solutions, sans résultat... Les docs de grub/LinuxMint/ubuntu, ne m'ont pas vraiment aidés non plus, mon faible niveau d'informatique ne me permettant pas de réellement déterminer mon problème. Et copier/coller des lignes auquelles je ne capte rien, ce ne me plait pas trop...)
Modifié en dernier par Razmot1975 le ven. 15 nov. 2019 19:08, modifié 1 fois.
Portable Leneovo Thinkpad W530 Mint 19-Cinnamon 3.8.9/Win7

Avatar du membre
arghlub
Administrateur du site
Messages : 10421
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence
Contact :

Re: Déséspérément sans Grub après réinstal de windows

Message par arghlub »

Salut,

Essaie de réinstaller grub sur "sda" (pas sur une partition mais sur le disque de base) :

Code : Tout sélectionner

sudo grub-install /dev/sda

Code : Tout sélectionner

sudo update-grub
;)
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 11 | MXlinux 21 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.2 | MXlinux 21 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 21 XFCE
─────( pour une informatique libre ! -membre en stand-by de l' April.org────────────────

Razmot1975
Messages : 29
Enregistré le : ven. 15 nov. 2019 18:39

Re: Déséspérément sans Grub après réinstal de windows

Message par Razmot1975 »

Merci de ta réponse.

J'avais déjà tenté sans résultat.
J'ai retenter dans le doute... Pas mieux...
Portable Leneovo Thinkpad W530 Mint 19-Cinnamon 3.8.9/Win7

Razmot1975
Messages : 29
Enregistré le : ven. 15 nov. 2019 18:39

Re: Déséspérément sans Grub après réinstal de windows

Message par Razmot1975 »

un fdisk -l me donne :

Code : Tout sélectionner

Disque /dev/sda : 465,8 GiB, 500107862016 octets, 976773168 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x0f154e29

Périphérique Amorçage     Début       Fin  Secteurs Taille Id Type
/dev/sda1                    64 255995774 255995711 122,1G  7 HPFS/NTFS/exFAT
/dev/sda2    *        255995902 259901439   3905538   1,9G  5 Étendue
/dev/sda3             259901440 318494719  58593280    28G 83 Linux
/dev/sda4             318494720 761853951 443359232 211,4G 83 Linux
/dev/sda5             255995904 259901439   3905536   1,9G 82 partition d'échang

Les entrées de la table de partitions ne sont pas dans l'ordre du disque.
sda2 était prévus je crois (ça fait longtemps, m'en souviens plus trop) pour le /boot. N'est-il pas possible de déplacer grub à cet endroit? (Bon, je ne sais pas si ça résoudrait réellement le problème...)
Portable Leneovo Thinkpad W530 Mint 19-Cinnamon 3.8.9/Win7

Razmot1975
Messages : 29
Enregistré le : ven. 15 nov. 2019 18:39

Re: Déséspérément sans Grub après réinstal de windows

Message par Razmot1975 »

Dernière nouvelle :
J'arrive à afficher Grub en appuyant au démarrage sur Shift (je crois, j'en ai essayé plein en même temps) mais il ne m'affiche que linux...
Portable Leneovo Thinkpad W530 Mint 19-Cinnamon 3.8.9/Win7

ryry331
Messages : 485
Enregistré le : jeu. 24 oct. 2019 23:44

Re: Déséspérément sans Grub après réinstal de windows

Message par ryry331 »

Bonjour

Essayes peut etre

Code : Tout sélectionner

sudo mount /dev/sda3 /boot
et

Code : Tout sélectionner

sudo grub-install --root-directory=/boot /dev/sda
Portable 1 : Intel® Pentium(R) CPU 4405U @ 2.10GHz × 4 - Intel® HD Graphics 510 - 4 go de RAM ¦ Ubuntu 20.04 ¦ LMDE 4 ¦ Deepin 20.0 avec partition de données commune
Portable 2 : Toshiba A100-187 - Intel Celeron 1,60 GHz - ATI Radeon XPRESS 200M ¦ Lubuntu 18.04 ¦ Debian 10 Buster Lxde

Razmot1975
Messages : 29
Enregistré le : ven. 15 nov. 2019 18:39

Re: Déséspérément sans Grub après réinstal de windows

Message par Razmot1975 »

Salut ryry331,

Sur mon linux :
"opération réussie, sans erreur" mais pas de changement...

Faut-il que j'essaye sur live? Bien que je ne vois pas trop ce que ça changerait...
Portable Leneovo Thinkpad W530 Mint 19-Cinnamon 3.8.9/Win7

Avatar du membre
arghlub
Administrateur du site
Messages : 10421
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence
Contact :

Re: Déséspérément sans Grub après réinstal de windows

Message par arghlub »

Razmot1975 a écrit :
ven. 15 nov. 2019 20:19
Dernière nouvelle :
J'arrive à afficher Grub en appuyant au démarrage sur Shift (je crois, j'en ai essayé plein en même temps) mais il ne m'affiche que linux...
Pour voir s'il te détecte W$, fais un :

Code : Tout sélectionner

sudo os-prober
Et pour que ton grub s'affiche au démarrage (sans appuyer sur Maj/Shift), donne-nous le retour de (on modifiera en conséquence) :

Code : Tout sélectionner

cat /etc/default/grub
PS :
Razmot1975 a écrit :
ven. 15 nov. 2019 19:00
Et copier/coller des lignes auquelles je ne capte rien, ce ne me plait pas trop...)
Oui mais bon, tu comprendras que d'expliquer des commandes c'est chronophage (on rappelle qu'on est tous bénévoles) et difficile à expliquer.
Exemple pour une commande simplissime (à mon goût) : viewtopic.php?f=23&t=13836#p157442

Vu que t'es un "fan" de la recherche-web, c'est pas compliqué de gogolifier une commande pour la comprendre ..... ou mieux "RTFM" : tu tapes "man nom_commande" dans un terminal et tu fais un peu de lecture comme tout le monde.
;)
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 11 | MXlinux 21 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.2 | MXlinux 21 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 21 XFCE
─────( pour une informatique libre ! -membre en stand-by de l' April.org────────────────

Razmot1975
Messages : 29
Enregistré le : ven. 15 nov. 2019 18:39

Re: Déséspérément sans Grub après réinstal de windows

Message par Razmot1975 »

Code : Tout sélectionner

ThinkPad-W530:~$ sudo os-prober
[sudo] Mot de passe de bachibouzouk :                    
sudo: os-prober : commande introuvable

Code : Tout sélectionner

ThinkPad-W530:~$ cat /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=10
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="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"
Portable Leneovo Thinkpad W530 Mint 19-Cinnamon 3.8.9/Win7

Avatar du membre
arghlub
Administrateur du site
Messages : 10421
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence
Contact :

Re: Déséspérément sans Grub après réinstal de windows

Message par arghlub »

Pas normal que tu n'ais pas la commande "os-prober" (installé sur tous les Linux) .....
es-tu sûr de bien avoir saisi la commande (fais un copié/collé) ;)
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 11 | MXlinux 21 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.2 | MXlinux 21 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 21 XFCE
─────( pour une informatique libre ! -membre en stand-by de l' April.org────────────────

Répondre