Odd dual boot behaviour

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
gleneagles
Level 1
Level 1
Posts: 8
Joined: Tue Feb 27, 2018 10:27 am

Odd dual boot behaviour

Post by gleneagles » Sun Mar 18, 2018 7:56 am

Using linux mint 18.2 and windows 7 on a dual boot.
If I use mint and then reboot into windows 7 it freezes on the main window if I then restart the windows safe mode option appears and by selecting normal boot into windows everything works ok.
So not a major problem more of a nuisance than anything
.
Mint is up to date.

Thanks

User avatar
Pierre
Level 16
Level 16
Posts: 6948
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Odd dual boot behaviour

Post by Pierre » Sun Mar 18, 2018 8:02 am

that certainly doesn't sound right, as the Windows System shouldn't know any difference,.
so, can you post the contents of the file: / boot/grub/grub.cfg
( this is a system file, it should be read-only, and you shouldn't be able to modify it )
copy it's contents,, back here, on your next post.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

gleneagles
Level 1
Level 1
Posts: 8
Joined: Tue Feb 27, 2018 10:27 am

Re: Odd dual boot behaviour

Post by gleneagles » Sun Mar 18, 2018 10:34 am

All I get with that command is,

bash: boot/grub/grub.cfg: No such file or directory

User avatar
WharfRat
Level 20
Level 20
Posts: 11374
Joined: Thu Apr 07, 2011 8:15 pm

Re: Odd dual boot behaviour

Post by WharfRat » Sun Mar 18, 2018 11:01 am

gleneagles wrote:
Sun Mar 18, 2018 10:34 am
All I get with that command is,

bash: boot/grub/grub.cfg: No such file or directory
You left out the leading /

It's cat /boot/grub/grub.cfg

@Pierre,

Your / boot/grub/grub.cfg has a space after the /
ImageImage

User avatar
I2k4
Level 4
Level 4
Posts: 479
Joined: Thu Feb 02, 2012 8:33 pm

Re: Odd dual boot behaviour

Post by I2k4 » Sun Mar 18, 2018 11:55 am

Before going under the hood, I would try Boot Repair - install and run on the Mint OS using the "Second Option" terminal commands. It fixes most problems with the boot loader - I used it several times successfully in the bad old days when GRUB often wouldn't recognize the Windows OS on the boot menu.

https://help.ubuntu.com/community/Boot-Repair

Once installed, launch it and run the "Recommended Repair". I never had to go beyond that. If that doesn't work, likely something serious. You may get good help here, or check the External Links at the bottom of the page for more Boot Repair tactics. If all else fails, following are good instructions to remove Linux, retaining Windows and restoring the Windows bootloader (getting rid of GRUB).

https://lifehacker.com/how-to-uninstall ... -508710422

You're then free for a clean shot at installing the dual boot again.
TRUST BUT VERIFY any advice from anybody, including me. Ubuntu / Mint user since 10.04 LTS. M17.3 Cinnamon (Dell 1520). Dual booting M17.3 XFCE / W7 (Acer netbook) and M18.3 Cinnamon / W7 (Lenovo desktop). Testing M19.x 64bit on live USB.

User avatar
slipstick
Level 5
Level 5
Posts: 713
Joined: Sun Oct 21, 2012 9:56 pm
Location: Somewhere on the /LL0 scale

Re: Odd dual boot behaviour

Post by slipstick » Sun Mar 18, 2018 1:19 pm

By "freezing", do you mean that Windows displays the login screen and does not respond to the keyboard or mouse? If so, maybe it is this problem (assuming you are using a USB KB and mouse):
viewtopic.php?f=90&t=240844#p1293383

Also, I think I remember a post from someone with this problem who solved it by installing USB3 drivers in Windows (can't find that post now).
In theory, theory and practice are the same. In practice, they ain't.

User avatar
administrollaattori
Level 13
Level 13
Posts: 4994
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Odd dual boot behaviour

Post by administrollaattori » Sun Mar 18, 2018 1:43 pm

RAM-memory is not empty when rebooting.

gleneagles
Level 1
Level 1
Posts: 8
Joined: Tue Feb 27, 2018 10:27 am

Re: Odd dual boot behaviour

Post by gleneagles » Mon Mar 19, 2018 10:40 am

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 aa8618fd-3896-4860-8b22-8d9bbf007d2f
else
search --no-floppy --fs-uuid --set=root aa8618fd-3896-4860-8b22-8d9bbf007d2f
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_GB
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
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.2 Cinnamon 64-bit' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-aa8618fd-3896-4860-8b22-8d9bbf007d2f' {
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 aa8618fd-3896-4860-8b22-8d9bbf007d2f
else
search --no-floppy --fs-uuid --set=root aa8618fd-3896-4860-8b22-8d9bbf007d2f
fi
linux /boot/vmlinuz-4.8.0-53-generic root=UUID=aa8618fd-3896-4860-8b22-8d9bbf007d2f ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.8.0-53-generic
}
submenu 'Advanced options for Linux Mint 18.2 Cinnamon 64-bit' $menuentry_id_option 'gnulinux-advanced-aa8618fd-3896-4860-8b22-8d9bbf007d2f' {
menuentry 'Linux Mint 18.2 Cinnamon 64-bit, with Linux 4.8.0-53-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-53-generic-advanced-aa8618fd-3896-4860-8b22-8d9bbf007d2f' {
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 aa8618fd-3896-4860-8b22-8d9bbf007d2f
else
search --no-floppy --fs-uuid --set=root aa8618fd-3896-4860-8b22-8d9bbf007d2f
fi
echo 'Loading Linux 4.8.0-53-generic ...'
linux /boot/vmlinuz-4.8.0-53-generic root=UUID=aa8618fd-3896-4860-8b22-8d9bbf007d2f ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.8.0-53-generic
}
menuentry 'Linux Mint 18.2 Cinnamon 64-bit, with Linux 4.8.0-53-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-53-generic-init-upstart-aa8618fd-3896-4860-8b22-8d9bbf007d2f' {
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 aa8618fd-3896-4860-8b22-8d9bbf007d2f
else
search --no-floppy --fs-uuid --set=root aa8618fd-3896-4860-8b22-8d9bbf007d2f
fi
echo 'Loading Linux 4.8.0-53-generic ...'
linux /boot/vmlinuz-4.8.0-53-generic root=UUID=aa8618fd-3896-4860-8b22-8d9bbf007d2f ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.8.0-53-generic
}
menuentry 'Linux Mint 18.2 Cinnamon 64-bit, with Linux 4.8.0-53-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-53-generic-recovery-aa8618fd-3896-4860-8b22-8d9bbf007d2f' {
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 aa8618fd-3896-4860-8b22-8d9bbf007d2f
else
search --no-floppy --fs-uuid --set=root aa8618fd-3896-4860-8b22-8d9bbf007d2f
fi
echo 'Loading Linux 4.8.0-53-generic ...'
linux /boot/vmlinuz-4.8.0-53-generic root=UUID=aa8618fd-3896-4860-8b22-8d9bbf007d2f ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.8.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 aa8618fd-3896-4860-8b22-8d9bbf007d2f
else
search --no-floppy --fs-uuid --set=root aa8618fd-3896-4860-8b22-8d9bbf007d2f
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 aa8618fd-3896-4860-8b22-8d9bbf007d2f
else
search --no-floppy --fs-uuid --set=root aa8618fd-3896-4860-8b22-8d9bbf007d2f
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### 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-32E41A3CE41A02B1' {
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 32E41A3CE41A02B1
else
search --no-floppy --fs-uuid --set=root 32E41A3CE41A02B1
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

Details above of boot loader.

To be honest I think the last reply which mentioned information being retained in RAM is the answer.
If I turn off and unplug the computer for a few minutes after using Linux and then use the menu to directly go into windows then no problem windows 7 works fine just seems a odd problem which is hardware based if it is the RAM.
I think I will just put up with it rather than making any changes to the boot menu as everything works ok.
Thank you all for your help

Post Reply

Return to “Newbie Questions”