[SOLVED] Mint 14 - Windows Bootloader to GRUB2 fail

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Skibicki

[SOLVED] Mint 14 - Windows Bootloader to GRUB2 fail

Post by Skibicki »

I used this guide to Install Mint 14 Xfce. The guide was followed exactly by adding Grub2 to /root and I included a /home partition. Everything is fine except booting Mint. Note updates were not downloaded during install.
http://thpc.info/dual/win7/dualboot_win ... _win7.html

Attempting to load Mint took me to the same grub4dos screen as the person in this topic.
http://forums.linuxmint.com/viewtopic.p ... t+grub4dos

Code: Select all

Grub4dos 0.4.5c Bash-like line editing is enabled
I entered the boot command and this error was given:

Code: Select all

Error 8: Kernel must be loaded before booting
Results from bootinfoscript, running Mint off Live USB

Code: Select all

Boot Info Script 0.61      [1 April 2012]


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

 => Windows is installed in the MBR of /dev/sda.
 => Syslinux MBR (3.61-4.03) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: 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 Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /Windows/System32/winload.exe

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 14 Nadia
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda4: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 4.03 2010-10-22 ........>..sr>.......[4.9...0...~.....~...f...M.f.f....f..0~....>E}.u......
    Boot sector info:  Syslinux looks at sector 1832360 of /dev/sdb1 for its 
                       second stage. SYSLINUX is installed in the  directory. 
                       No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /syslinux.cfg 
                       /efi/BOOT/grubx64.efi /ldlinux.sys

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048       206,847       204,800   7 NTFS / exFAT / HPFS
/dev/sda2             206,848   946,049,023   945,842,176   7 NTFS / exFAT / HPFS
/dev/sda3         946,049,024   973,842,431    27,793,408  83 Linux
/dev/sda4         973,844,478   976,771,071     2,926,594   5 Extended
/dev/sda5         973,844,480   974,819,327       974,848  82 Linux swap / Solaris
/dev/sda6         974,821,376   976,771,071     1,949,696  83 Linux


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 4004 MB, 4004511744 bytes
255 heads, 63 sectors/track, 486 cylinders, total 7821312 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *            128     7,821,311     7,821,184   b W95 FAT32


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/sda1        D0B4893FB48928D4                       ntfs       System Reserved
/dev/sda2        F672D52872D4EE7D                       ntfs       
/dev/sda3        0b8a45c1-e17a-4c63-bd14-1b85d67501d2   ext4       
/dev/sda5        5c483f1e-3bfe-47ac-ab31-cf84c28fa71b   swap       
/dev/sda6        cd8f9de5-c4ed-4d0f-8939-3fb3a2f0ead4   ext4       
/dev/sdb1        F68A-52C8                              vfat       SANDISK

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

Device           Mount_Point              Type       Options

/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sda2        /media/mint/F672D52872D4EE7D fuseblk    (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda3        /media/mint/0b8a45c1-e17a-4c63-bd14-1b85d67501d2 ext4       (rw,nosuid,nodev,uhelper=udisks2)
/dev/sda6        /media/mint/cd8f9de5-c4ed-4d0f-8939-3fb3a2f0ead4 ext4       (rw,nosuid,nodev,uhelper=udisks2)
/dev/sdb1        /cdrom                   vfat       (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)


=========================== sda3/boot/grub/grub.cfg: ===========================

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

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="0"

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  0b8a45c1-e17a-4c63-bd14-1b85d67501d2
else
  search --no-floppy --fs-uuid --set=root 0b8a45c1-e17a-4c63-bd14-1b85d67501d2
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=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=5
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
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Linux Mint 14 Xfce 64-bit, 3.5.0-17-generic (/dev/sda3)' --class gnu-linux --class gnu --class os {
	recordfail
	gfxmode $linux_gfx_mode
	insmod gzio
	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  0b8a45c1-e17a-4c63-bd14-1b85d67501d2
	else
	  search --no-floppy --fs-uuid --set=root 0b8a45c1-e17a-4c63-bd14-1b85d67501d2
	fi
	linux	/boot/vmlinuz-3.5.0-17-generic root=UUID=0b8a45c1-e17a-4c63-bd14-1b85d67501d2 ro   
	initrd	/boot/initrd.img-3.5.0-17-generic
}
menuentry 'Linux Mint 14 Xfce 64-bit, 3.5.0-17-generic (/dev/sda3) -- recovery mode' --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	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  0b8a45c1-e17a-4c63-bd14-1b85d67501d2
	else
	  search --no-floppy --fs-uuid --set=root 0b8a45c1-e17a-4c63-bd14-1b85d67501d2
	fi
	echo	'Loading Linux 3.5.0-17-generic ...'
	linux	/boot/vmlinuz-3.5.0-17-generic root=UUID=0b8a45c1-e17a-4c63-bd14-1b85d67501d2 ro recovery nomodeset 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.5.0-17-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+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-D0B4893FB48928D4' {
	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  D0B4893FB48928D4
	else
	  search --no-floppy --fs-uuid --set=root D0B4893FB48928D4
	fi
	chainloader +1
}
### 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 ###
--------------------------------------------------------------------------------

=============================== 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>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda3 during installation
UUID=0b8a45c1-e17a-4c63-bd14-1b85d67501d2 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda6 during installation
UUID=cd8f9de5-c4ed-4d0f-8939-3fb3a2f0ead4 /home           ext4    defaults        0       2
# swap was on /dev/sda5 during installation
UUID=5c483f1e-3bfe-47ac-ab31-cf84c28fa71b none            swap    sw              0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 453.702819824 = 487.159693312  boot/grub/grub.cfg                             1
 452.820823669 = 486.212657152  boot/initrd.img-3.5.0-17-generic               2
 459.253898621 = 493.120118784  boot/vmlinuz-3.5.0-17-generic                  1
 452.820823669 = 486.212657152  initrd.img                                     2
            ?? = ??             initrd.img.old                                 1
 459.253898621 = 493.120118784  vmlinuz                                        1

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

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

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

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

menuentry "Start Linux Mint" {
	set gfxpayload=keep
	linux	/casper/vmlinuz  file=/cdrom/preseed/mint.seed boot=casper iso-scan/filename=${iso_path} quiet splash --
	initrd	/casper/initrd.lz
}
menuentry "Start Linux Mint (compatibility mode)" {
	linux	/casper/vmlinuz  file=/cdrom/preseed/mint.seed boot=casper xforcevesa iso-scan/filename=${iso_path} ramdisk_size=1048576 root=/dev/ram rw noapic noapci nosplash irqpoll --
	initrd	/casper/initrd.lz
}
menuentry "Check the integrity of the medium" {
	linux	/casper/vmlinuz  boot=casper integrity-check iso-scan/filename=${iso_path} quiet splash --
	initrd	/casper/initrd.lz
}
menuentry "Test memory" {
	linux16	/install/mt86plus
}
--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------
default menu.c32
prompt 0
menu title UNetbootin
timeout 100

label unetbootindefault
menu label Default
kernel /ubnkern
append initrd=/ubninit file=/cdrom/preseed/mint.seed boot=casper quiet splash --

label ubnentry0
menu label Start Linux Mint
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/mint.seed boot=casper  quiet splash --

label ubnentry1
menu label Start in compatibility mode
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/mint.seed boot=casper xforcevesa nomodeset b43.blacklist=yes  ramdisk_size=1048576 root=/dev/ram rw noapic noapci nosplash irqpoll --

label ubnentry2
menu label Integrity check
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz boot=casper integrity-check  quiet splash --

label ubnentry3
menu label Memory test
kernel /isolinux/memtest
append initrd=/ubninit 

label ubnentry4
menu label Boot from local drive
kernel /ubnkern
append initrd=/ubninit 

label ubnentry5
menu label Start Linux Mint (compatibility mode)
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/mint.seed boot=casper xforcevesa iso-scan/filename=${iso_path} ramdisk_size=1048576 root=/dev/ram rw noapic noapci nosplash irqpoll --

label ubnentry6
menu label Check the integrity of the medium
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz boot=casper integrity-check iso-scan/filename=${iso_path} quiet splash --

label ubnentry7
menu label Test memory
kernel /ubnkern
append initrd=/ubninit 

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

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

           GiB - GB             File                                 Fragment(s)

            ?? = ??             boot/grub/grub.cfg                             1

================= sdb1: Location of files loaded by Syslinux: ==================

           GiB - GB             File                                 Fragment(s)

            ?? = ??             ldlinux.sys                                    1
            ?? = ??             menu.c32                                       1
            ?? = ??             syslinux.cfg                                   1

============== sdb1: Version of COM32(R) files used by Syslinux: ===============

 menu.c32                           :  COM32R module (v4.xx)

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

Unknown BootLoader on sda4

00000000  4c e4 3d 30 f3 20 d3 3f  56 de 26 19 6e 78 ff 9b  |L.=0. .?V.&.nx..|
00000010  1a b5 a4 63 4e 43 b6 3a  08 21 d7 3b c1 c3 90 8c  |...cNC.:.!.;....|
00000020  e9 65 f6 bf 17 a7 a1 83  f5 d2 c8 ac f0 e4 77 9a  |.e............w.|
00000030  bc f7 9f 77 0d 32 8b 25  d9 23 ae 39 75 b8 6e 3e  |...w.2.%.#.9u.n>|
00000040  b6 6d 20 c3 58 d9 4a 38  25 cd 53 81 8d da 72 32  |.m .X.J8%.S...r2|
00000050  ae 4a 6d a8 35 6b f9 9d  27 df 15 72 43 a9 54 d1  |.Jm.5k..'..rC.T.|
00000060  16 5f 5b 88 06 3d 45 d8  10 2d fd 61 ca 5c c8 af  |._[..=E..-.a.\..|
00000070  60 9d 1f 15 d3 e0 af 83  67 bb e8 aa 32 8f 51 4f  |`.......g...2.QO|
00000080  17 ee 3c 6d d3 e6 43 18  b2 3b 4c 6f 9e 60 bc 08  |..<m..C..;Lo.`..|
00000090  bd 36 00 03 5a b8 9a b5  75 05 d1 b5 13 ad 82 9f  |.6..Z...u.......|
000000a0  3a 66 ad a1 7a e1 eb 9c  64 91 cb 63 7b e3 da 7e  |:f..z...d..c{..~|
000000b0  92 06 c5 ea 60 1b 27 73  95 57 8c d9 34 2a 90 0a  |....`.'s.W..4*..|
000000c0  34 b8 e5 22 49 0c 0b 52  07 c5 51 4d 17 fd c8 6f  |4.."I..R..QM...o|
000000d0  18 67 ab 13 b9 1d dc 9c  a2 89 7f c4 a6 3e 65 83  |.g...........>e.|
000000e0  68 a7 60 46 21 71 42 bf  71 84 1c b8 20 18 d1 47  |h.`F!qB.q... ..G|
000000f0  b8 3c 9c ae 76 2a 2d 9a  78 89 84 92 65 55 4b f0  |.<..v*-.x...eUK.|
00000100  b2 4c 7a e1 18 d7 f9 bb  7d b9 26 7a 87 a7 47 7d  |.Lz.....}.&z..G}|
00000110  57 61 74 22 5f da 92 7c  45 c3 b3 f1 76 0c d9 12  |Wat"_..|E...v...|
00000120  05 66 0a 2a 50 92 83 2f  dd 4e 3d a8 83 33 8f 7a  |.f.*P../.N=..3.z|
00000130  c2 e1 94 c5 2e 59 44 97  58 da ca 9e d3 e9 5a 9a  |.....YD.X.....Z.|
00000140  84 64 74 fc 08 8f c8 58  24 c6 b0 7b e9 a5 cb 6f  |.dt....X$..{...o|
00000150  8c 26 ee 9e a0 b8 d1 33  4b 82 6c 49 93 8b f7 ce  |.&.....3K.lI....|
00000160  7e 7b 29 ce 32 be 5e fe  40 e4 da a7 22 af e0 49  |~{).2.^.@..."..I|
00000170  c3 59 c9 4c 60 7c 79 4b  ab 3e fb 61 dd cb e7 9b  |.Y.L`|yK.>.a....|
00000180  87 8c 6f dc e9 34 1e 8a  8c 55 c1 a3 84 6c 89 c8  |..o..4...U...l..|
00000190  0e 92 15 63 45 0d bc 65  ca 35 60 21 52 0e 89 a8  |...cE..e.5`!R...|
000001a0  43 9a 6b 17 12 01 ea 35  f9 96 8e b9 1d 8b 4c 3f  |C.k....5......L?|
000001b0  9a 93 04 c9 94 20 43 8a  b8 bc d6 ca 41 24 00 fe  |..... C.....A$..|
000001c0  ff ff 82 fe ff ff 02 00  00 00 00 e0 0e 00 00 fe  |................|
000001d0  ff ff 05 fe ff ff 02 e0  0e 00 00 c8 1d 00 00 00  |................|
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: ===============================

FIBMAP: Invalid argument
FIBMAP: Invalid argument
 No volume groups found
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
wayne128

Re: Mint 14 Xfce - Windows Bootloader to GRUB2 fail

Post by wayne128 »

It seems your root partition might not have grub2 properly installed, or some bug?

from this

Code: Select all

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:  Linux Mint 14 Nadia
    Boot files:        /boot/grub/grub.cfg /etc/fstab
and this

Code: Select all

menuentry 'Linux Mint 14 Xfce 64-bit, 3.5.0-17-generic (/dev/sda3)' --class gnu-linux --class gnu --class os {
   recordfail

sound like your root partition is /dev/sda3

here is what you could do, using simple method first,
1. boot and run live using Mint14 DVD
2. open a terminal, type these commands below
3. sudo mount /dev/sda3 /mnt
4. sudo grub-install --force --root-directory=/mnt /dev/sda3

hopeful there is no error

5. reboot, select win7, then run EasyBCD, delete the old grub2 entry, add a new grub2 entry.
6. reboot, select grub2 entry ( whatever you name it on last step) hopefully it can boot Mint.
Skibicki

Re: Mint 14 Xfce - Windows Bootloader to GRUB2 fail

Post by Skibicki »

Thank you, I tried your method and it worked perfectly.
Locked

Return to “Installation & Boot”