我的笔记本是双硬盘:一个固态硬盘,一个机械硬盘。我先在固态硬盘安装好了 win8.1,然后将 openSUSE42.1 安装到机械硬盘里。我的安装方法是 u 盘安装:直接将 openSUSE 的 iso 文件用 winRAR 解压缩到 u 盘,然后重启时设为 u 盘启动,后面的和光盘安装没有二样。
问题是:安装好后,可以进入 openSUSE,但进不了 windows 了。启动选项中有 windows 的选项,但选择进入后,提示:错误:Not supported image。
请问高手,如何解决?
把 /boot/grub2/grub.cfg 贴出来看看. 不确定是不是这个路径, 找不到的话看一下 /boot 目录下其他类似的文件.
谢谢回复。今天我不在家里,明天回家后再贴出来吧。不过我试过操作更改启动选项,结果总是保存不了。
打不开这个文件呀,锁住的。应该如何打开?谢谢。
需要 root 权限吧:
sudo cat /boot/grub2/grub.cfg
多谢楼上的回复和指教。
代码我贴在下面:
DO NOT EDIT THIS FILE
It is automatically generated by grub2-mkconfig using templates
from /etc/grub.d and settings from /etc/default/grub
BEGIN /etc/grub.d/00_header
set btrfs_relative_path="y"
export btrfs_relative_path
if -f ${config_directory}/grubenv ]; then
load_env -f ${config_directory}/grubenv
elif -s $prefix/grubenv ]; then
load_env
fi
if “${env_block}” ] ; then
load_env -f "${env_block}"
fi
if “${next_entry}” ] ; then
set default="${next_entry}“
set next_entry=
save_env next_entry
if “${env_block}” ] ; then
save_env -f “${env_block}” next_entry
fi
set boot_once=true
else
set default=”${saved_entry}"
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 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_gpt
insmod btrfs
set root='hd1,gpt3’
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 --hint=‘hd1,gpt3’ aa23cff7-3892-4f4f-b9c5-6e1174cc2cd9
else
search --no-floppy --fs-uuid --set=root aa23cff7-3892-4f4f-b9c5-6e1174cc2cd9
fi
font="/usr/share/grub2/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_gpt
insmod btrfs
set root='hd1,gpt3’
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 --hint=‘hd1,gpt3’ aa23cff7-3892-4f4f-b9c5-6e1174cc2cd9
else
search --no-floppy --fs-uuid --set=root aa23cff7-3892-4f4f-b9c5-6e1174cc2cd9
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans10.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans12.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/ascii.pf2
insmod png
set theme=($root)/boot/grub2/themes/openSUSE/theme.txt
export theme
if x${boot_once} = xtrue ]; then
set timeout=0
elif x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=8
Fallback normal timeout code in case the timeout_style feature is
unavailable.
else
set timeout=8
fi
if -n “$extra_cmdline” ]; then
submenu “Bootable snapshot #$snapshot_num” {
menuentry “If OK, run ‘snapper rollback’ and reboot.” { true; }
}
fi
END /etc/grub.d/00_header
BEGIN /etc/grub.d/00_tuned
set tuned_params=""
END /etc/grub.d/00_tuned
BEGIN /etc/grub.d/10_linux
menuentry ‘openSUSE Leap 42.1’ --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option ‘gnulinux-simple-aa23cff7-3892-4f4f-b9c5-6e1174cc2cd9’ {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod btrfs
set root='hd1,gpt3’
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 --hint=‘hd1,gpt3’ aa23cff7-3892-4f4f-b9c5-6e1174cc2cd9
else
search --no-floppy --fs-uuid --set=root aa23cff7-3892-4f4f-b9c5-6e1174cc2cd9
fi
echo 'Loading Linux 4.1.12-1-default …'
linuxefi /boot/vmlinuz-4.1.12-1-default root=UUID=aa23cff7-3892-4f4f-b9c5-6e1174cc2cd9 ro ${extra_cmdline} resume=/dev/sdb2 splash=silent quiet showopts
echo 'Loading initial ramdisk …'
initrdefi /boot/initrd-4.1.12-1-default
}
submenu ‘Advanced options for openSUSE Leap 42.1’ --hotkey=1 $menuentry_id_option ‘gnulinux-advanced-aa23cff7-3892-4f4f-b9c5-6e1174cc2cd9’ {
menuentry ‘openSUSE Leap 42.1, with Linux 4.1.12-1-default’ --hotkey=2 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option ‘gnulinux-4.1.12-1-default-advanced-aa23cff7-3892-4f4f-b9c5-6e1174cc2cd9’ {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod btrfs
set root='hd1,gpt3’
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 --hint=‘hd1,gpt3’ aa23cff7-3892-4f4f-b9c5-6e1174cc2cd9
else
search --no-floppy --fs-uuid --set=root aa23cff7-3892-4f4f-b9c5-6e1174cc2cd9
fi
echo 'Loading Linux 4.1.12-1-default …'
linuxefi /boot/vmlinuz-4.1.12-1-default root=UUID=aa23cff7-3892-4f4f-b9c5-6e1174cc2cd9 ro ${extra_cmdline} resume=/dev/sdb2 splash=silent quiet showopts
echo 'Loading initial ramdisk …'
initrdefi /boot/initrd-4.1.12-1-default
}
}
END /etc/grub.d/10_linux
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 Boot Manager (on /dev/sda2)’ --class windows --class os $menuentry_id_option ‘osprober-efi-A295-CDD6’ {
insmod part_gpt
insmod fat
set root='hd0,gpt2’
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint=‘hd0,gpt2’ A295-CDD6
else
search --no-floppy --fs-uuid --set=root A295-CDD6
fi
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
END /etc/grub.d/30_os-prober
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
BEGIN /etc/grub.d/80_suse_btrfs_snapshot
if -f “/.snapshots/grub-snapshot.cfg” ]; then
source "/.snapshots/grub-snapshot.cfg"
fi
END /etc/grub.d/80_suse_btrfs_snapshot
BEGIN /etc/grub.d/90_persistent
END /etc/grub.d/90_persistent
我估计 windows 在 sda1 或 sda4,请问应如何修改?谢谢。
弄清楚了,原来是 bios 的原因。
@FireEyes
我也遇到相同的问题,我是新买的本,预装 win8.1 升级到 win10,然后安装了 opensuse42.1,再就进不了 win10 了,报错跟你贴的图一样。请问你是怎么解决的,