how to fix the grub to enter in windows 7

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
tonilib
Level 2
Level 2
Posts: 50
Joined: Mon May 15, 2017 1:18 pm

how to fix the grub to enter in windows 7

Post by tonilib » Sun Jul 07, 2019 2:58 pm

The grub was working well, had the options to enter Linux and 2 options for Windows, one for the recovery partition since it is an Acer and from there you can reinstall Windows 7 again if necessary and another option to enter directly to windows .
2 years ago something happened that made the 2 windows options point to the recovery partition and I could not enter windows.
A friend fixed it, I do not remember with which program he fixed it, and added a 3rd option to the grub for windows that allowed me to enter windows, so I had 2 pointing to the recovery partition and one to entry to windows.

A few months ago when trying to patch microsoft word when I restart, the same as before happened, the 3 windows options were pointing to the recovery partition and I can not enter windows ...... how do I solve it?

I have used the boot-repair and everything remains the same.

Nothing I read helps ...... could you give me a had to solve it?

Thank you

deepakdeshp
Level 15
Level 15
Posts: 5894
Joined: Sun Aug 09, 2015 10:00 am

Re: how to fix the grub to enter in windows 7

Post by deepakdeshp » Sun Jul 07, 2019 3:21 pm

Does

Code: Select all

 sudo update-grub
detect Windows?Is it a dual boot on the same disk or different disks?
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.2 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

ParaDice
Level 2
Level 2
Posts: 59
Joined: Sat Aug 27, 2016 6:38 am

Re: how to fix the grub to enter in windows 7

Post by ParaDice » Sun Jul 07, 2019 3:25 pm

If deepakdeshp's more elegant solution doesn't work and you don't find any better, here's the sledgehammer approach:

Insert a Win7 CD/Bootstick nad have it "repair" the bootloader (thereby overwriting GRUB). Now you have system that just boots into Win7. Now boot a Linux livestick and use boot-repair to restore GRUB, this time including your Win7 boot menu entry.

I would also suggest making a backup of GRUB with grub-customizer after that as your system seems to break its bootloader quite frequently. :D
Desktop: Linux Mint 19.2 (Cinnamon x64) , Intel Core i5-4670 / GeForce GTX 660
Notebook: Linux Mint 19.2 (Cinnamon x64), Lenovo E470 (Intel Core i3-7100U / Intel HD Graphics 620)

deepakdeshp
Level 15
Level 15
Posts: 5894
Joined: Sun Aug 09, 2015 10:00 am

Re: how to fix the grub to enter in windows 7

Post by deepakdeshp » Sun Jul 07, 2019 3:32 pm

ParaDice wrote:
Sun Jul 07, 2019 3:25 pm
If deepakdeshp's more elegant solution doesn't work and you don't find any better, here's the sledgehammer approach:

Insert a Win7 CD/Bootstick nad have it "repair" the bootloader (thereby overwriting GRUB). Now you have system that just boots into Win7. Now boot a Linux livestick and use boot-repair to restore GRUB, this time including your Win7 boot menu entry.

I would also suggest making a backup of GRUB with grub-customizer after that as your system seems to break its bootloader quite frequently. :D
Before this you can try

Code: Select all

 sudo grub-install /dev/sda
. Reboot and test.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.2 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

deepakdeshp
Level 15
Level 15
Posts: 5894
Joined: Sun Aug 09, 2015 10:00 am

Re: how to fix the grub to enter in windows 7

Post by deepakdeshp » Sun Jul 07, 2019 3:39 pm

Also in BIOS choose Mint as the first OS to boot and later Windows. Save and reboot.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.2 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

tonilib
Level 2
Level 2
Posts: 50
Joined: Mon May 15, 2017 1:18 pm

Re: how to fix the grub to enter in windows 7

Post by tonilib » Sun Jul 07, 2019 7:22 pm

deepakdeshp wrote:
Sun Jul 07, 2019 3:21 pm
Does

Code: Select all

 sudo update-grub
detect Windows?Is it a dual boot on the same disk or different disks?
The ouput of sudo update-grub is

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-154-generic
Found initrd image: /boot/initrd.img-4.4.0-154-generic
Found linux image: /boot/vmlinuz-4.4.0-53-generic
Found initrd image: /boot/initrd.img-4.4.0-53-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Recovery Environment (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
Found Windows 7 (loader) on /dev/sda3

It detects windows but the sd2 and sd3 are loading the Recovery environment as sda1, instead of loading windows 7

I checked after running the command and it is still the same, nothing change, still the problem there

tonilib
Level 2
Level 2
Posts: 50
Joined: Mon May 15, 2017 1:18 pm

Re: how to fix the grub to enter in windows 7

Post by tonilib » Sun Jul 07, 2019 7:36 pm

deepakdeshp wrote:
Sun Jul 07, 2019 3:32 pm
ParaDice wrote:
Sun Jul 07, 2019 3:25 pm
If deepakdeshp's more elegant solution doesn't work and you don't find any better, here's the sledgehammer approach:

Insert a Win7 CD/Bootstick nad have it "repair" the bootloader (thereby overwriting GRUB). Now you have system that just boots into Win7. Now boot a Linux livestick and use boot-repair to restore GRUB, this time including your Win7 boot menu entry.

I would also suggest making a backup of GRUB with grub-customizer after that as your system seems to break its bootloader quite frequently. :D
Before this you can try

Code: Select all

 sudo grub-install /dev/sda
. Reboot and test.
The output of that command is

Installing for i386-pc platform.
grub-install.real: warning: Sector 18 is already in use by the program `Acer registration utility (?)'; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
Installation finished. No error reported

I rebooted and test and nothing changed :(

tonilib
Level 2
Level 2
Posts: 50
Joined: Mon May 15, 2017 1:18 pm

Re: how to fix the grub to enter in windows 7

Post by tonilib » Sun Jul 07, 2019 7:42 pm

ParaDice wrote:
Sun Jul 07, 2019 3:25 pm
If deepakdeshp's more elegant solution doesn't work and you don't find any better, here's the sledgehammer approach:

Insert a Win7 CD/Bootstick nad have it "repair" the bootloader (thereby overwriting GRUB). Now you have system that just boots into Win7. Now boot a Linux livestick and use boot-repair to restore GRUB, this time including your Win7 boot menu entry.

I would also suggest making a backup of GRUB with grub-customizer after that as your system seems to break its bootloader quite frequently. :D
I dont have a win 7 cd but i guess i can do a bootable usb for win 7.
Then you said to "repair" the bootloader- How do you do that? how do you overwrite the grub?
How do you create a linux livestick for linux mint? I tried to do it using UNetbootin and says operating system missing when i boot from it....

If you could explain further I would appreciate it.

ParaDice
Level 2
Level 2
Posts: 59
Joined: Sat Aug 27, 2016 6:38 am

Re: how to fix the grub to enter in windows 7

Post by ParaDice » Mon Jul 08, 2019 10:03 am

tonilib wrote:
Sun Jul 07, 2019 7:42 pm
I dont have a win 7 cd but i guess i can do a bootable usb for win 7.
Then you said to "repair" the bootloader- How do you do that? how do you overwrite the grub?
Sure, go for the Win7 Bootstick - who uses DVDs these days, anyway? :D
Here's a good graphical step-by-step on what to do to "repair" the bootloader with a Win7 DVD or USB drive ("repair" in quotes because all it will do is overwrite GRUB with the Windoze bootloader).
How do you create a linux livestick for linux mint? I tried to do it using UNetbootin and says operating system missing when i boot from it....
You said you can still boot into Linux (Mint?), so I would use Mint's built-in USB Image Writer. You can find it in the Mint menu. Start it, select the USB drive and the ISO your want to flash. It will take care of the rest.
Desktop: Linux Mint 19.2 (Cinnamon x64) , Intel Core i5-4670 / GeForce GTX 660
Notebook: Linux Mint 19.2 (Cinnamon x64), Lenovo E470 (Intel Core i3-7100U / Intel HD Graphics 620)

tonilib
Level 2
Level 2
Posts: 50
Joined: Mon May 15, 2017 1:18 pm

Re: how to fix the grub to enter in windows 7

Post by tonilib » Mon Jul 08, 2019 10:18 am

I have just run boot-repair and at the end gives you a report, I will post it here in case you can see anything weird. Last time this program fixed the problem, this time NO.

Code: Select all


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

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /BOOTMGR /BOOT/BCD

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

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

sda4: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

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

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

Drive: sda _____________________________________________________________________
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 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    27,265,023    27,262,976  27 Hidden NTFS (Recovery Environment)
/dev/sda2          27,265,024    27,469,823       204,800   7 NTFS / exFAT / HPFS
/dev/sda3    *     27,469,824   333,615,023   306,145,200   7 NTFS / exFAT / HPFS
/dev/sda4         333,615,102   488,396,799   154,781,698   5 Extended
/dev/sda5         333,615,104   482,648,063   149,032,960  83 Linux
/dev/sda6         482,650,112   488,396,799     5,746,688  82 Linux swap / Solaris


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        84AE8E56AE8E4122                       ntfs       PQSERVICE
/dev/sda2        26DC8FBEDC8F8731                       ntfs       SYSTEM RESERVED
/dev/sda3        2E9E23239E22E357                       ntfs       Acer
/dev/sda5        b7f22c6d-85c1-445a-83f6-285267c19835   ext4       
/dev/sda6        7e4074a6-ec00-46de-9be0-70c9bffb399c   swap       

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

total 0
lrwxrwxrwx 1 root root  9 Jul  8 15:35 ata-HL-DT-ST_DVDRAM_GU10N_KV99AG15842 -> ../../sr0
lrwxrwxrwx 1 root root  9 Jul  8 16:09 ata-WDC_WD2500BEVT-22A23T0_WD-WXB1A30Z0315 -> ../../sda
lrwxrwxrwx 1 root root 10 Jul  8 16:09 ata-WDC_WD2500BEVT-22A23T0_WD-WXB1A30Z0315-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul  8 16:09 ata-WDC_WD2500BEVT-22A23T0_WD-WXB1A30Z0315-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jul  8 16:09 ata-WDC_WD2500BEVT-22A23T0_WD-WXB1A30Z0315-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jul  8 16:09 ata-WDC_WD2500BEVT-22A23T0_WD-WXB1A30Z0315-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jul  8 16:09 ata-WDC_WD2500BEVT-22A23T0_WD-WXB1A30Z0315-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jul  8 16:09 ata-WDC_WD2500BEVT-22A23T0_WD-WXB1A30Z0315-part6 -> ../../sda6
lrwxrwxrwx 1 root root  9 Jul  8 16:09 wwn-0x50014ee259a9e554 -> ../../sda
lrwxrwxrwx 1 root root 10 Jul  8 16:09 wwn-0x50014ee259a9e554-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul  8 16:09 wwn-0x50014ee259a9e554-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jul  8 16:09 wwn-0x50014ee259a9e554-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jul  8 16:09 wwn-0x50014ee259a9e554-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jul  8 16:09 wwn-0x50014ee259a9e554-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jul  8 16:09 wwn-0x50014ee259a9e554-part6 -> ../../sda6

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

Device           Mount_Point              Type       Options

/dev/sda5        /                        ext4       (rw,relatime,errors=remount-ro,data=ordered)


=========================== sda5/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 [ "${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,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b7f22c6d-85c1-445a-83f6-285267c19835
else
  search --no-floppy --fs-uuid --set=root b7f22c6d-85c1-445a-83f6-285267c19835
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=es_ES
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=10
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    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/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_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 18.1 Cinnamon 64-bit' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b7f22c6d-85c1-445a-83f6-285267c19835' {
	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,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b7f22c6d-85c1-445a-83f6-285267c19835
	else
	  search --no-floppy --fs-uuid --set=root b7f22c6d-85c1-445a-83f6-285267c19835
	fi
	linux	/boot/vmlinuz-4.4.0-154-generic root=UUID=b7f22c6d-85c1-445a-83f6-285267c19835 ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-4.4.0-154-generic
}
submenu 'Advanced options for Linux Mint 18.1 Cinnamon 64-bit' $menuentry_id_option 'gnulinux-advanced-b7f22c6d-85c1-445a-83f6-285267c19835' {
	menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-154-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-154-generic-advanced-b7f22c6d-85c1-445a-83f6-285267c19835' {
		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,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b7f22c6d-85c1-445a-83f6-285267c19835
		else
		  search --no-floppy --fs-uuid --set=root b7f22c6d-85c1-445a-83f6-285267c19835
		fi
		echo	'Loading Linux 4.4.0-154-generic ...'
		linux	/boot/vmlinuz-4.4.0-154-generic root=UUID=b7f22c6d-85c1-445a-83f6-285267c19835 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.4.0-154-generic
	}
	menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-154-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-154-generic-init-upstart-b7f22c6d-85c1-445a-83f6-285267c19835' {
		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,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b7f22c6d-85c1-445a-83f6-285267c19835
		else
		  search --no-floppy --fs-uuid --set=root b7f22c6d-85c1-445a-83f6-285267c19835
		fi
		echo	'Loading Linux 4.4.0-154-generic ...'
		linux	/boot/vmlinuz-4.4.0-154-generic root=UUID=b7f22c6d-85c1-445a-83f6-285267c19835 ro  quiet splash $vt_handoff init=/sbin/upstart
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.4.0-154-generic
	}
	menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-154-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-154-generic-recovery-b7f22c6d-85c1-445a-83f6-285267c19835' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b7f22c6d-85c1-445a-83f6-285267c19835
		else
		  search --no-floppy --fs-uuid --set=root b7f22c6d-85c1-445a-83f6-285267c19835
		fi
		echo	'Loading Linux 4.4.0-154-generic ...'
		linux	/boot/vmlinuz-4.4.0-154-generic root=UUID=b7f22c6d-85c1-445a-83f6-285267c19835 ro recovery nomodeset 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.4.0-154-generic
	}
	menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-advanced-b7f22c6d-85c1-445a-83f6-285267c19835' {
		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,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b7f22c6d-85c1-445a-83f6-285267c19835
		else
		  search --no-floppy --fs-uuid --set=root b7f22c6d-85c1-445a-83f6-285267c19835
		fi
		echo	'Loading Linux 4.4.0-53-generic ...'
		linux	/boot/vmlinuz-4.4.0-53-generic root=UUID=b7f22c6d-85c1-445a-83f6-285267c19835 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.4.0-53-generic
	}
	menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-init-upstart-b7f22c6d-85c1-445a-83f6-285267c19835' {
		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,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b7f22c6d-85c1-445a-83f6-285267c19835
		else
		  search --no-floppy --fs-uuid --set=root b7f22c6d-85c1-445a-83f6-285267c19835
		fi
		echo	'Loading Linux 4.4.0-53-generic ...'
		linux	/boot/vmlinuz-4.4.0-53-generic root=UUID=b7f22c6d-85c1-445a-83f6-285267c19835 ro  quiet splash $vt_handoff init=/sbin/upstart
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.4.0-53-generic
	}
	menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-recovery-b7f22c6d-85c1-445a-83f6-285267c19835' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b7f22c6d-85c1-445a-83f6-285267c19835
		else
		  search --no-floppy --fs-uuid --set=root b7f22c6d-85c1-445a-83f6-285267c19835
		fi
		echo	'Loading Linux 4.4.0-53-generic ...'
		linux	/boot/vmlinuz-4.4.0-53-generic root=UUID=b7f22c6d-85c1-445a-83f6-285267c19835 ro recovery nomodeset 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.4.0-53-generic
	}
}

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

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

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

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

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b7f22c6d-85c1-445a-83f6-285267c19835
	else
	  search --no-floppy --fs-uuid --set=root b7f22c6d-85c1-445a-83f6-285267c19835
	fi
	knetbsd	/boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b7f22c6d-85c1-445a-83f6-285267c19835
	else
	  search --no-floppy --fs-uuid --set=root b7f22c6d-85c1-445a-83f6-285267c19835
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Recovery Environment (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-84AE8E56AE8E4122' {
	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  84AE8E56AE8E4122
	else
	  search --no-floppy --fs-uuid --set=root 84AE8E56AE8E4122
	fi
	parttool ${root} hidden-
	drivemap -s (hd0) ${root}
	chainloader +1
}
menuentry 'Windows 7 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-26DC8FBEDC8F8731' {
	insmod part_msdos
	insmod ntfs
	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  26DC8FBEDC8F8731
	else
	  search --no-floppy --fs-uuid --set=root 26DC8FBEDC8F8731
	fi
	parttool ${root} hidden-
	chainloader +1
}
menuentry 'Windows 7 (loader) (on /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-chain-2E9E23239E22E357' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  2E9E23239E22E357
	else
	  search --no-floppy --fs-uuid --set=root 2E9E23239E22E357
	fi
	parttool ${root} hidden-
	chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

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

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

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

=============================== sda5/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/sdb5 during installation
UUID=b7f22c6d-85c1-445a-83f6-285267c19835 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sdb6 during installation
UUID=7e4074a6-ec00-46de-9be0-70c9bffb399c none            swap    sw              0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 217.205455780 = 233.222582272  boot/grub/grub.cfg                             1
 203.217750549 = 218.203398144  boot/grub/i386-pc/core.img                     1
 224.188343048 = 240.720400384  boot/vmlinuz-4.4.0-154-generic                 1
 161.437149048 = 173.341818880  boot/vmlinuz-4.4.0-53-generic                  1
 224.188343048 = 240.720400384  vmlinuz                                        1
 161.437149048 = 173.341818880  vmlinuz.old                                    1
 173.558059692 = 186.356547584  boot/initrd.img-4.4.0-154-generic              3
 224.293849945 = 240.833687552  boot/initrd.img-4.4.0-53-generic               4
 173.558059692 = 186.356547584  initrd.img                                     3
 224.293849945 = 240.833687552  initrd.img.old                                 4

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

Unknown BootLoader on sda4

00000000  76 92 31 86 f9 be 6f e2  65 fe 15 ae 4f 58 b5 f0  |v.1...o.e...OX..|
00000010  ad b6 99 73 ab ff 00 69  cf f6 b9 2e a5 8a 4b 79  |...s...i......Ky|
00000020  36 be cd bf 75 99 b7 77  1f c7 5c 27 87 fc 49 a4  |6...u..w..\'..I.|
00000030  cb 72 04 57 51 dc 41 18  64 d8 7f 77 b3 6f b8 ae  |.r.WQ.A.d..w.o..|
00000040  8a 74 e3 5b de 7a 99 c5  db 5b 1e c7 e2 18 fc 07  |.t.[.z...[......|
00000050  f1 03 4c 4f ec cb 9d 54  5d a4 89 77 a8 d8 df 59  |..LO...T]..w...Y|
00000060  7f 60 7d 92 40 df 3f 97  20 3c ab 2e fe d5 cd d8  |.`}.@.?. <......|
00000070  68 1e 5c 5a 98 b6 ba fb  14 f7 7a ac 0e 93 c9 23  |h.\Z......z....#|
00000080  79 0f 1c 4a 15 43 81 fc  58 f9 7a 55 cb 6d 36 d6  |y..J.C..X.zU.m6.|
00000090  5f f8 99 79 b3 84 9e 0f  3f e4 3f 22 6d 6c 75 3f  |_..y....?.?"mlu?|
000000a0  37 15 66 db c3 ff 00 da  72 c7 2c 72 48 91 f9 9e  |7.f.....r.,rH...|
000000b0  5c 90 79 e6 c6 40 a1 72  bb 73 f2 b3 35 6b ec 23  |\.y..@.r.s..5k.#|
000000c0  2f 76 da 8a 52 bb ba d8  ff d5 fe 69 4c 77 31 19  |/v..R......iLw1.|
000000d0  25 d4 e5 8e e8 f9 6d 04  71 da 3f fa 24 8b fd e5  |%.....m.q.?.$...|
000000e0  51 fc 5f 76 a9 1b ab ed  32 38 be cb 10 b5 b5 7d  |Q._v....28.....}|
000000f0  b1 a5 bc 96 eb 3f dd f9  87 5f bb fd da cb f0 b5  |.....?..._......|
00000100  ae b7 6b f6 db 9d 4f c8  ba 8c c9 2b da 8f 30 c9  |..k...O....+..0.|
00000110  bd 56 43 b7 0a 38 dd b7  ef 7c d4 b7 5a b4 b7 57  |.VC..8...|..Z..W|
00000120  56 b1 66 d6 74 93 74 6f  1b a3 7e e6 5d df 2b 6e  |V.f.t.to..~.].+n|
00000130  1f 2f de af cb 23 43 95  6d a9 f4 b4 f7 67 6d ff  |./...#C.m....gm.|
00000140  00 09 54 b6 23 f7 91 dc  58 8c a3 ce 20 8d ad 3c  |..T.#...X... ..<|
00000150  f5 55 dc cc 18 74 ae 63  5c f1 70 be b8 c5 95 f4  |.U...t.c\.p.....|
00000160  f7 c6 3b 48 8c 70 79 72  bc b0 7c df 75 64 1c 0d  |..;H.pyr..|.ud..|
00000170  cd f7 55 ab 8f bf f0 47  8b 7e db 16 b6 3c 5b 06  |..U....G.~...<[.|
00000180  af 1c 9b b7 e9 12 5e f9  70 6c 95 76 aa ff 00 bc  |......^.pl.v....|
00000190  3f bc df 2d 72 5a 46 a7  e2 5f 0d 6b 11 47 73 1c  |?..-rZF.._.k.Gs.|
000001a0  70 d8 a5 d7 9e e2 79 d6  74 dd 1f fa a6 dd ed ff  |p.....y.t.......|
000001b0  00 b5 2a 25 87 6b 49 2d  0e 84 a3 ba 3d f2 00 fe  |..*%.kI-....=...|
000001c0  ff ff 83 fe ff ff 02 00  00 00 00 10 e2 08 00 fe  |................|
000001d0  ff ff 05 fe ff ff 02 10  e2 08 00 b8 57 00 00 00  |............W...|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200


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

File descriptor 9 (/proc/4056/mounts) leaked on lvs invocation. Parent PID 16395: bash
File descriptor 63 (pipe:[47232]) leaked on lvs invocation. Parent PID 16395: bash

ADDITIONAL INFORMATION :
=================== log of boot-repair 20190708_1608 ===================
boot-repair version : 4ppa65
boot-sav version : 4ppa65
boot-sav-extra version : 4ppa65
glade2script version : 3.2.3~ppa4
File descriptor 9 (/proc/4056/mounts) leaked on lvs invocation. Parent PID 5896: /bin/sh
boot-repair is executed in installed-session (Linux Mint 18.1 Serena, serena, LinuxMint, x86_64)
CPU op-mode(s):        32-bit, 64-bit
BOOT_IMAGE=/boot/vmlinuz-4.4.0-154-generic root=UUID=b7f22c6d-85c1-445a-83f6-285267c19835 ro quiet splash vt.handoff=7

=================== os-prober:
/dev/sda5:El sistema operativo que se está usando - Linux Mint 18.1 Serena CurrentSession:linux
/dev/sda1:Windows Recovery Environment (loader):Windows:chain
/dev/sda2:Windows 7 (loader):Windows1:chain
/dev/sda3:Windows 7 (loader):Windows2:chain

=================== blkid:
/dev/sda1: LABEL="PQSERVICE" UUID="84AE8E56AE8E4122" TYPE="ntfs" PARTUUID="13517236-01"
/dev/sda2: LABEL="SYSTEM RESERVED" UUID="26DC8FBEDC8F8731" TYPE="ntfs" PARTUUID="13517236-02"
/dev/sda3: LABEL="Acer" UUID="2E9E23239E22E357" TYPE="ntfs" PARTUUID="13517236-03"
/dev/sda5: UUID="b7f22c6d-85c1-445a-83f6-285267c19835" TYPE="ext4" PARTUUID="13517236-05"
/dev/sda6: UUID="7e4074a6-ec00-46de-9be0-70c9bffb399c" TYPE="swap" PARTUUID="13517236-06"


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


=================== /etc/grub.d/ :
drwxr-xr-x  2 root root     4096 jul  8 15:35 grub.d
total 148
-rwxr-xr-x 1 root root  9791 jul 23  2016 00_header
-rwxr-xr-x 1 root root  6258 mar 15  2016 05_debian_theme
-rwxr-xr-x 1 root root  1180 oct 25  2014 06_mint_theme
-rwxr-xr-x 1 root root 12273 jul  8 15:35 10_linux
-rwxr-xr-x 1 root root 12512 abr 29 21:04 10_linux.dpkg-new
-rwxr-xr-x 1 root root 10634 oct  1  2012 10_lupin
-rwxr-xr-x 1 root root 11082 jul 23  2016 20_linux_xen
-rwxr-xr-x 1 root root 11082 abr 29 21:04 20_linux_xen.dpkg-new
-rwxr-xr-x 1 root root  1992 ene 28  2016 20_memtest86+
-rwxr-xr-x 1 root root 11692 jul 23  2016 30_os-prober
-rwxr-xr-x 1 root root 11692 abr 29 21:04 30_os-prober.dpkg-new
-rwxr-xr-x 1 root root  1418 jul 23  2016 30_uefi-firmware
-rwxr-xr-x 1 root root  1418 abr 29 21:04 30_uefi-firmware.dpkg-new
-rwxr-xr-x 1 root root   214 jul 23  2016 40_custom
-rwxr-xr-x 1 root root   214 abr 29 21:04 40_custom.dpkg-new
-rwxr-xr-x 1 root root   216 jul 23  2016 41_custom
-rwxr-xr-x 1 root root   216 abr 29 21:04 41_custom.dpkg-new
-rw-r--r-- 1 root root   483 jul 23  2016 README
-rw-r--r-- 1 root root   483 abr 29 21:04 README.dpkg-new




=================== /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_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
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"




=================== UEFI/Legacy mode:
This installed-session is not in EFI-mode.
SecureBoot disabled.


=================== PARTITIONS & DISKS:
sda5	: 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,	standard,	farbios,	notbiosboot, .
sda1	: sda,	not-sepboot,	no-grubenv	nogrub,	no-docgrub,	no-update-grub,	32,	no-boot,	is-os,	is-maybe-EFI,	part-has-no-fstab,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	BOOTMGR,	is-winboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	not-far,	notbiosboot, /mnt/boot-sav/sda1.
sda2	: 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,	no-winload,	no-recov-nor-hid,	bootmgr,	is-winboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	not-far,	notbiosboot, /mnt/boot-sav/sda2.
sda3	: 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/tonifamilia/Acer.

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


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

BYT;
/dev/sda:250GB:scsi:512:512:msdos:ATA WDC WD2500BEVT-2:;
1:1049kB:14.0GB:14.0GB:ntfs::diag;
2:14.0GB:14.1GB:105MB:ntfs::;
3:14.1GB:171GB:157GB:ntfs::boot;
4:171GB:250GB:79.2GB:::;
5:171GB:247GB:76.3GB:ext4::;
6:247GB:250GB:2942MB:linux-swap(v1)::;

=================== lsblk:
KNAME TYPE FSTYPE   SIZE LABEL
sda   disk        232,9G
sda1  part ntfs      13G PQSERVICE
sda2  part ntfs     100M SYSTEM RESERVED
sda3  part ntfs     146G Acer
sda4  part            1K
sda5  part ext4    71,1G
sda6  part swap     2,8G
sr0   rom          1024M

KNAME ROTA RO RM STATE   MOUNTPOINT
sda      1  0  0 running
sda1     1  0  0         /mnt/boot-sav/sda1
sda2     1  0  0         /mnt/boot-sav/sda2
sda3     1  0  0         /media/tonifamilia/Acer
sda4     1  0  0
sda5     1  0  0         /
sda6     1  0  0         [SWAP]
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=1383344k,nr_inodes=345836,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=281232k,mode=755)
/dev/sda5 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 (rw,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,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/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,clone_children)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agents/cgm-release-agent.perf_event)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-release-agent.pids)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/cgm-release-agent.hugetlb)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=32,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
cgmfs on /run/cgmanager/fs type tmpfs (rw,relatime,size=100k,mode=755)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=281232k,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/sda3 on /media/tonifamilia/Acer type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
/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)


=================== ls:
/sys/block/sda (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight integrity power queue range removable ro sda1 sda2 sda3 sda4 sda5 sda6 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 holders inflight integrity power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered):  agpgart autofs block bsg btrfs-control bus cdrom cdrw char console core cpu cpu_dma_latency cuse disk dri drm_dp_aux0 dvd dvdrw ecryptfs fb0 fd full fuse hidraw0 hidraw1 hpet hugepages hwrng i2c-0 i2c-1 i2c-2 i2c-3 i2c-4 i2c-5 i2c-6 initctl input kmsg kvm lightnvm log mapper mcelog media0 mei0 mem memory_bandwidth mqueue net network_latency network_throughput null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sda6 sg0 sg1 shm snapshot snd sr0 stderr stdin stdout uhid uinput urandom userio v4l vfio vga_arbiter vhci vhost-net 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 00 08 00 00  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff ff 9f 01 00 00 00 00  |................|
00000030  00 00 0c 00 00 00 00 00  ff ff 19 00 00 00 00 00  |................|
00000040  f6 00 00 00 01 00 00 00  22 41 8e ae 56 8e ae 84  |........"A..V...|
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 d2 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  40 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |@.+.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 e9 6a 01  |U...h..fa.....j.|
00000110  90 90 66 60 1e 06 66 a1  11 00 66 03 06 1c 00 1e  |..f`..f...f.....|
00000120  66 68 00 00 00 00 66 50  06 53 68 01 00 68 10 00  |fh....fP.Sh..h..|
00000130  b4 42 8a 16 0e 00 16 1f  8b f4 cd 13 66 59 5b 5a  |.B..........fY[Z|
00000140  66 59 66 59 1f 0f 82 16  00 66 ff 06 11 00 03 16  |fYfY.....f......|
00000150  0f 00 8e c2 ff 0e 16 00  75 bc 07 1f 66 61 c3 a0  |........u...fa..|
00000160  f8 01 e8 08 00 a0 fb 01  e8 02 00 eb fe b4 01 8b  |................|
00000170  f0 ac 3c 00 74 09 b4 0e  bb 07 00 cd 10 eb f2 c3  |..<.t...........|
00000180  0d 0a 41 20 64 69 73 6b  20 72 65 61 64 20 65 72  |..A disk read er|
00000190  72 6f 72 20 6f 63 63 75  72 72 65 64 00 0d 0a 42  |ror occurred...B|
000001a0  4f 4f 54 4d 47 52 20 69  73 20 6d 69 73 73 69 6e  |OOTMGR is missin|
000001b0  67 00 0d 0a 42 4f 4f 54  4d 47 52 20 69 73 20 63  |g...BOOTMGR is c|
000001c0  6f 6d 70 72 65 73 73 65  64 00 0d 0a 50 72 65 73  |ompressed...Pres|
000001d0  73 20 43 74 72 6c 2b 41  6c 74 2b 44 65 6c 20 74  |s Ctrl+Alt+Del t|
000001e0  6f 20 72 65 73 74 61 72  74 0d 0a 00 00 00 00 00  |o restart.......|
000001f0  00 00 00 00 00 00 00 00  80 9d b2 ca 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 08 a0 01  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff 1f 03 00 00 00 00 00  |................|
00000030  55 21 00 00 00 00 00 00  ff 31 00 00 00 00 00 00  |U!.......1......|
00000040  f6 00 00 00 01 00 00 00  31 87 8f dc be 8f dc 26  |........1......&|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb b8 c0 07  |.....3.....|....|
00000060  8e d8 e8 16 00 b8 00 0d  8e c0 33 db c6 06 0e 00  |..........3.....|
00000070  10 e8 53 00 68 00 0d 68  6a 02 cb 8a 16 24 00 b4  |..S.h..hj....$..|
00000080  08 cd 13 73 05 b9 ff ff  8a f1 66 0f b6 c6 40 66  |...s......f...@f|
00000090  0f b6 d1 80 e2 3f f7 e2  86 cd c0 ed 06 41 66 0f  |.....?.......Af.|
000000a0  b7 c9 66 f7 e1 66 a3 20  00 c3 b4 41 bb aa 55 8a  |..f..f. ...A..U.|
000000b0  16 24 00 cd 13 72 0f 81  fb 55 aa 75 09 f6 c1 01  |.$...r...U.u....|
000000c0  74 04 fe 06 14 00 c3 66  60 1e 06 66 a1 10 00 66  |t......f`..f...f|
000000d0  03 06 1c 00 66 3b 06 20  00 0f 82 3a 00 1e 66 6a  |....f;. ...:..fj|
000000e0  00 66 50 06 53 66 68 10  00 01 00 80 3e 14 00 00  |.fP.Sfh.....>...|
000000f0  0f 85 0c 00 e8 b3 ff 80  3e 14 00 00 0f 84 61 00  |........>.....a.|
00000100  b4 42 8a 16 24 00 16 1f  8b f4 cd 13 66 58 5b 07  |.B..$.......fX[.|
00000110  66 58 66 58 1f eb 2d 66  33 d2 66 0f b7 0e 18 00  |fXfX..-f3.f.....|
00000120  66 f7 f1 fe c2 8a ca 66  8b d0 66 c1 ea 10 f7 36  |f......f..f....6|
00000130  1a 00 86 d6 8a 16 24 00  8a e8 c0 e4 06 0a cc b8  |......$.........|
00000140  01 02 cd 13 0f 82 19 00  8c c0 05 20 00 8e c0 66  |........... ...f|
00000150  ff 06 10 00 ff 0e 0e 00  0f 85 6f ff 07 1f 66 61  |..........o...fa|
00000160  c3 a0 f8 01 e8 09 00 a0  fb 01 e8 03 00 fb eb fe  |................|
00000170  b4 01 8b f0 ac 3c 00 74  09 b4 0e bb 07 00 cd 10  |.....<.t........|
00000180  eb f2 c3 0d 0a 41 20 64  69 73 6b 20 72 65 61 64  |.....A disk read|
00000190  20 65 72 72 6f 72 20 6f  63 63 75 72 72 65 64 00  | error occurred.|
000001a0  0d 0a 4e 54 4c 44 52 20  69 73 20 6d 69 73 73 69  |..NTLDR is missi|
000001b0  6e 67 00 0d 0a 4e 54 4c  44 52 20 69 73 20 63 6f  |ng...NTLDR is co|
000001c0  6d 70 72 65 73 73 65 64  00 0d 0a 50 72 65 73 73  |mpressed...Press|
000001d0  20 43 74 72 6c 2b 41 6c  74 2b 44 65 6c 20 74 6f  | Ctrl+Alt+Del to|
000001e0  20 72 65 73 74 61 72 74  0d 0a 00 00 00 00 00 00  | restart........|
000001f0  00 00 00 00 00 00 00 00  83 a0 b3 c9 00 00 55 aa  |..............U.|
00000200

=================== hexdump -n512 -C /dev/sda3
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 28 a3 01  |........?....(..|
00000020  00 00 00 00 80 00 80 00  af 67 3f 12 00 00 00 00  |.........g?.....|
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  57 e3 22 9e 23 23 9e 2e  |........W.".##..|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb b8 c0 07  |.....3.....|....|
00000060  8e d8 e8 16 00 b8 00 0d  8e c0 33 db c6 06 0e 00  |..........3.....|
00000070  10 e8 53 00 68 00 0d 68  6a 02 cb 8a 16 24 00 b4  |..S.h..hj....$..|
00000080  08 cd 13 73 05 b9 ff ff  8a f1 66 0f b6 c6 40 66  |...s......f...@f|
00000090  0f b6 d1 80 e2 3f f7 e2  86 cd c0 ed 06 41 66 0f  |.....?.......Af.|
000000a0  b7 c9 66 f7 e1 66 a3 20  00 c3 b4 41 bb aa 55 8a  |..f..f. ...A..U.|
000000b0  16 24 00 cd 13 72 0f 81  fb 55 aa 75 09 f6 c1 01  |.$...r...U.u....|
000000c0  74 04 fe 06 14 00 c3 66  60 1e 06 66 a1 10 00 66  |t......f`..f...f|
000000d0  03 06 1c 00 66 3b 06 20  00 0f 82 3a 00 1e 66 6a  |....f;. ...:..fj|
000000e0  00 66 50 06 53 66 68 10  00 01 00 80 3e 14 00 00  |.fP.Sfh.....>...|
000000f0  0f 85 0c 00 e8 b3 ff 80  3e 14 00 00 0f 84 61 00  |........>.....a.|
00000100  b4 42 8a 16 24 00 16 1f  8b f4 cd 13 66 58 5b 07  |.B..$.......fX[.|
00000110  66 58 66 58 1f eb 2d 66  33 d2 66 0f b7 0e 18 00  |fXfX..-f3.f.....|
00000120  66 f7 f1 fe c2 8a ca 66  8b d0 66 c1 ea 10 f7 36  |f......f..f....6|
00000130  1a 00 86 d6 8a 16 24 00  8a e8 c0 e4 06 0a cc b8  |......$.........|
00000140  01 02 cd 13 0f 82 19 00  8c c0 05 20 00 8e c0 66  |........... ...f|
00000150  ff 06 10 00 ff 0e 0e 00  0f 85 6f ff 07 1f 66 61  |..........o...fa|
00000160  c3 a0 f8 01 e8 09 00 a0  fb 01 e8 03 00 fb eb fe  |................|
00000170  b4 01 8b f0 ac 3c 00 74  09 b4 0e bb 07 00 cd 10  |.....<.t........|
00000180  eb f2 c3 0d 0a 41 20 64  69 73 6b 20 72 65 61 64  |.....A disk read|
00000190  20 65 72 72 6f 72 20 6f  63 63 75 72 72 65 64 00  | error occurred.|
000001a0  0d 0a 4e 54 4c 44 52 20  69 73 20 6d 69 73 73 69  |..NTLDR is missi|
000001b0  6e 67 00 0d 0a 4e 54 4c  44 52 20 69 73 20 63 6f  |ng...NTLDR is co|
000001c0  6d 70 72 65 73 73 65 64  00 0d 0a 50 72 65 73 73  |mpressed...Press|
000001d0  20 43 74 72 6c 2b 41 6c  74 2b 44 65 6c 20 74 6f  | Ctrl+Alt+Del to|
000001e0  20 72 65 73 74 61 72 74  0d 0a 00 00 00 00 00 00  | restart........|
000001f0  00 00 00 00 00 00 00 00  83 a0 b3 c9 00 00 55 aa  |..............U.|
00000200

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

Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  1.4G     0  1.4G   0% /dev
tmpfs          tmpfs     275M  4.8M  270M   2% /run
/dev/sda5      ext4       70G   35G   32G  53% /
tmpfs          tmpfs     1.4G   15M  1.4G   2% /dev/shm
tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
tmpfs          tmpfs     1.4G     0  1.4G   0% /sys/fs/cgroup
cgmfs          tmpfs     100K     0  100K   0% /run/cgmanager/fs
tmpfs          tmpfs     275M   24K  275M   1% /run/user/1000
/dev/sda3      fuseblk   146G   62G   85G  43% /media/tonifamilia/Acer
/dev/sda1      fuseblk    13G   12G  1.9G  86% /mnt/boot-sav/sda1
/dev/sda2      fuseblk   100M   37M   64M  37% /mnt/boot-sav/sda2

=================== fdisk -l:
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 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: 0x13517236

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1            2048  27265023  27262976   13G 27 Hidden NTFS WinRE
/dev/sda2        27265024  27469823    204800  100M  7 HPFS/NTFS/exFAT
/dev/sda3  *     27469824 333615023 306145200  146G  7 HPFS/NTFS/exFAT
/dev/sda4       333615102 488396799 154781698 73.8G  5 Extended
/dev/sda5       333615104 482648063 149032960 71.1G 83 Linux
/dev/sda6       482650112 488396799   5746688  2.8G 82 Linux swap / Solaris



=================== Recommended repair
The default repair of the Boot-Repair utility will reinstall the grub2 of sda5 into the MBR of sda.
Grub-efi will not be selected by default because: no-win-efi
Additional repair will be performed: unhide-bootmenu-10s



*******lspci -nnk | grep -iA3 vga
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 12)
Subsystem: Acer Incorporated [ALI] Core Processor Integrated Graphics Controller [1025:0358]
Kernel driver in use: i915
Kernel modules: i915
*******

grub-install --version
grub-install.real (GRUB) 2.02~beta2-36ubuntu3.22,grub-install.

Reinstall the GRUB of sda5 into the MBR of sda
Installing for i386-pc platform.
grub-install.real: warning: Sector 18 is already in use by the program `Acer registration utility (?)'; avoiding it.  This software may cause boot or other problems in future.  Please ask its authors not to store data in the boot track.
Installation finished. No error reported.
grub-install /dev/sda: exit code of grub-install /dev/sda:0

update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-154-generic
Found initrd image: /boot/initrd.img-4.4.0-154-generic
Found linux image: /boot/vmlinuz-4.4.0-53-generic
Found initrd image: /boot/initrd.img-4.4.0-53-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
File descriptor 9 (/proc/4056/mounts) leaked on lvs invocation. Parent PID 13196: /bin/sh
File descriptor 63 (pipe:[47232]) leaked on lvs invocation. Parent PID 13196: /bin/sh
Found Windows Recovery Environment (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
Found Windows 7 (loader) on /dev/sda3
Unhide GRUB boot menu in sda5/boot/grub/grub.cfg

Arranque reparado con éxito.

Ahora puede reiniciar el equipo.


Los archivos de arranque de [El sistema operativo que se está usando - Linux Mint 18.1 Serena] están lejos del inicio del disco. Su BIOS podría no detectarlos. Quizá quiera reintentarlo después de crear una partición /boot (EXT4, >200MB, comienzo del disco). Esto puede hacerse con herramientas como gParted. Luego seleccione esta partición a través de la opción [Partición /boot separada:] de [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)


tonilib
Level 2
Level 2
Posts: 50
Joined: Mon May 15, 2017 1:18 pm

Re: how to fix the grub to enter in windows 7

Post by tonilib » Thu Jul 25, 2019 11:40 am

ParaDice wrote:
Mon Jul 08, 2019 10:03 am
tonilib wrote:
Sun Jul 07, 2019 7:42 pm
I dont have a win 7 cd but i guess i can do a bootable usb for win 7.
Then you said to "repair" the bootloader- How do you do that? how do you overwrite the grub?
Sure, go for the Win7 Bootstick - who uses DVDs these days, anyway? :D
Here's a good graphical step-by-step on what to do to "repair" the bootloader with a Win7 DVD or USB drive ("repair" in quotes because all it will do is overwrite GRUB with the Windoze bootloader).
How do you create a linux livestick for linux mint? I tried to do it using UNetbootin and says operating system missing when i boot from it....
You said you can still boot into Linux (Mint?), so I would use Mint's built-in USB Image Writer. You can find it in the Mint menu. Start it, select the USB drive and the ISO your want to flash. It will take care of the rest.
I am desperate!! I was finally able to do a booteable usb for windows but it does not boot from it..... it goes straight to the grub like there is nothing bootable there.
I have a linux mint one which is fine, you can boot from it perfectly.

BTW take into the account i do not have any key for windows since Acer comes with a Recovery partition which if you need to install windows again you press f10 at the start and you get there and install windows without needing a key (this is before having linux). After having windows this partition is accessed by the grub....
The problem is that all the windows option of the grub takes me here and no to windows

I am still unable to boot in windows, please HELP!!!!

donalduck
Level 3
Level 3
Posts: 146
Joined: Mon Oct 07, 2013 1:43 pm
Location: there

Re: how to fix the grub to enter in windows 7

Post by donalduck » Thu Jul 25, 2019 1:33 pm

1 or 2 years ago I had similar issue resolved on a old dual boot (windows 7 + ubuntu) computer thanks to medicat free tool.
no other "rescue" distrib/method worked !!
don't know if malekal / medicat website is still alive; if it is then feel free to download the heavy medicat iso and burn a usb key of 8GB (or better 16GB).

Post Reply

Return to “Installation & Boot”