[problem help] 双系统下windows无法引导启动
Tofloor
poster avatar
Skyle_UOS
deepin
2024-09-21 11:18
Author

1)grub下的选项点击win后无法进入 2)要切换windows每次都只能通过bios选择启动盘来实现 3)启动后windows的时间差了8个小时。 (之前uos曾经有过这个些问题,后有高人告诉通过几个命令解决了。现在忘记当时是怎么操作的。) 求大神赐教,感谢!

Reply Favorite View the author
All Replies
1 / 2
To page
xclimbing
deepin
2024-09-21 11:35
#1
  • 双系统时间不一致的问题解决方法:
    终端执行:timedatectl set-local-rtc 1

或在Windows系统打开记事本复制粘贴以下内容:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001

另存为.reg文件,双击导入

  • Windows不能启动的问题
    肯定是启动项搞错了,你把/boot/grub/grub.cfg的内容贴上来看一下。
Reply View the author
Skyle_UOS
deepin
2024-09-21 12:08
#2
xclimbing
  • 双系统时间不一致的问题解决方法:
    终端执行:timedatectl set-local-rtc 1

或在Windows系统打开记事本复制粘贴以下内容:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001

另存为.reg文件,双击导入

  • Windows不能启动的问题
    肯定是启动项搞错了,你把/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 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
}

font=unicode
set gfxmode=auto
if loadfont $font ; then
set gfxmode=1024x768
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=zh_CN
insmod gettext
fi
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
font="/usr/share/grub/unicode.pf2"
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
insmod gfxmenu
loadfont ($root)/boot/grub/themes/deepin/ag-NotoSansCJK-Regular-2-12.pf2
loadfont ($root)/boot/grub/themes/deepin/ag-unifont-0-14.pf2
insmod jpeg
insmod png
set theme=($root)/boot/grub/themes/deepin/theme.txt
export theme
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5

Fallback normal timeout code in case the timeout_style feature is

unavailable.

else
set timeout=5
fi
fi

END /etc/grub.d/00_header

BEGIN /etc/grub.d/05_debian_theme

insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
insmod jpeg
if background_image /boot/grub/themes/deepin/background.jpg; then
true
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi

END /etc/grub.d/05_debian_theme

BEGIN /etc/grub.d/08_fallback_counting

insmod increment

Check if boot_counter exists and boot_success=0 to activate this behaviour.

if [ -n "​{boot_counter}" -a "{boot_success}" = "0" ]; then

if countdown has ended, choose to boot rollback deployment,

i.e. default=1 on OSTree-based systems.

if [ "​{boot_counter}" = "0" -o "{boot_counter}" = "-1" ]; then
set default=1
set boot_counter=-1

otherwise decrement boot_counter

else
decrement boot_counter
fi
save_env boot_counter
fi

END /etc/grub.d/08_fallback_counting

BEGIN /etc/grub.d/10_linux

function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Deepin 23 GNU/Linux' --class deepin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ef3f417a-41cc-48f5-8236-cc619b638328' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
linux /boot/vmlinuz-6.9.6-amd64-desktop-rolling root=UUID=ef3f417a-41cc-48f5-8236-cc619b638328 ro splash quiet loglevel=0 DEEPIN_GFXMODE=$DEEPIN_GFXMODE
initrd /boot/initrd.img-6.9.6-amd64-desktop-rolling
boot
}
submenu 'Advanced options for Deepin 23 GNU/Linux' $menuentry_id_option 'gnulinux-advanced-ef3f417a-41cc-48f5-8236-cc619b638328' {
menuentry 'Deepin 23 GNU/Linux, with Linux 6.9.6-amd64-desktop-rolling' --class deepin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.9.6-amd64-desktop-rolling-advanced-ef3f417a-41cc-48f5-8236-cc619b638328' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
linux /boot/vmlinuz-6.9.6-amd64-desktop-rolling root=UUID=ef3f417a-41cc-48f5-8236-cc619b638328 ro splash quiet loglevel=0 DEEPIN_GFXMODE=$DEEPIN_GFXMODE
initrd /boot/initrd.img-6.9.6-amd64-desktop-rolling
boot
}
menuentry 'Deepin 23 GNU/Linux, with Linux 6.9.6-amd64-desktop-rolling (recovery mode)' --class deepin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.9.6-amd64-desktop-rolling-recovery-ef3f417a-41cc-48f5-8236-cc619b638328' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
linux /boot/vmlinuz-6.9.6-amd64-desktop-rolling root=UUID=ef3f417a-41cc-48f5-8236-cc619b638328 ro single single dis_ucode_ldr
initrd /boot/initrd.img-6.9.6-amd64-desktop-rolling
boot
}
}

END /etc/grub.d/10_linux

BEGIN /etc/grub.d/20_linux_xen

END /etc/grub.d/20_linux_xen

BEGIN /etc/grub.d/25_bli

if [ "$grub_platform" = "efi" ]; then
insmod bli
fi

END /etc/grub.d/25_bli

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

menuentry 'Windows 11 (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-/dev/sdb1' {
insmod part_msdos
parttool ${root} hidden-
drivemap -s (hd0) ${root}
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

BEGIN /etc/grub.d/99_deepin-boot-kit

submenu '系统恢复' $menuentry_id_option 'gnulinux-advanced-ef3f417a-41cc-48f5-8236-cc619b638328' {
menuentry 'Deepin 23 (2024/09/16 00:02:51)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ef3f417a-41cc-48f5-8236-cc619b638328' {
load_video
insmod gzio
if [ x $grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
echo 'Loading Linux ...'
linux /boot/snapshot/v23.0.0.20240916/vmlinuz-6.9.6-amd64-desktop-rolling root=UUID=ef3f417a-41cc-48f5-8236-cc619b638328 ro splash quiet loglevel=0 DEEPIN_GFXMODE=$DEEPIN_GFXMODE back_version=v23.0.0.20240916 back_scheme=atomic backup_uuid=ef3f417a-41cc-48f5-8236-cc619b638328
echo 'Loading initial ramdisk ...'
initrd /boot/snapshot/v23.0.0.20240916/initrd.img-6.9.6-amd64-desktop-rolling
}
}

END /etc/grub.d/99_deepin-boot-kit

Reply View the author
xclimbing
deepin
2024-09-21 12:46
#3
Skyle_UOS

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 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
}

font=unicode
set gfxmode=auto
if loadfont $font ; then
set gfxmode=1024x768
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=zh_CN
insmod gettext
fi
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
font="/usr/share/grub/unicode.pf2"
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
insmod gfxmenu
loadfont ($root)/boot/grub/themes/deepin/ag-NotoSansCJK-Regular-2-12.pf2
loadfont ($root)/boot/grub/themes/deepin/ag-unifont-0-14.pf2
insmod jpeg
insmod png
set theme=($root)/boot/grub/themes/deepin/theme.txt
export theme
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5

Fallback normal timeout code in case the timeout_style feature is

unavailable.

else
set timeout=5
fi
fi

END /etc/grub.d/00_header

BEGIN /etc/grub.d/05_debian_theme

insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
insmod jpeg
if background_image /boot/grub/themes/deepin/background.jpg; then
true
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi

END /etc/grub.d/05_debian_theme

BEGIN /etc/grub.d/08_fallback_counting

insmod increment

Check if boot_counter exists and boot_success=0 to activate this behaviour.

if [ -n "​{boot_counter}" -a "{boot_success}" = "0" ]; then

if countdown has ended, choose to boot rollback deployment,

i.e. default=1 on OSTree-based systems.

if [ "​{boot_counter}" = "0" -o "{boot_counter}" = "-1" ]; then
set default=1
set boot_counter=-1

otherwise decrement boot_counter

else
decrement boot_counter
fi
save_env boot_counter
fi

END /etc/grub.d/08_fallback_counting

BEGIN /etc/grub.d/10_linux

function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Deepin 23 GNU/Linux' --class deepin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ef3f417a-41cc-48f5-8236-cc619b638328' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
linux /boot/vmlinuz-6.9.6-amd64-desktop-rolling root=UUID=ef3f417a-41cc-48f5-8236-cc619b638328 ro splash quiet loglevel=0 DEEPIN_GFXMODE=$DEEPIN_GFXMODE
initrd /boot/initrd.img-6.9.6-amd64-desktop-rolling
boot
}
submenu 'Advanced options for Deepin 23 GNU/Linux' $menuentry_id_option 'gnulinux-advanced-ef3f417a-41cc-48f5-8236-cc619b638328' {
menuentry 'Deepin 23 GNU/Linux, with Linux 6.9.6-amd64-desktop-rolling' --class deepin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.9.6-amd64-desktop-rolling-advanced-ef3f417a-41cc-48f5-8236-cc619b638328' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
linux /boot/vmlinuz-6.9.6-amd64-desktop-rolling root=UUID=ef3f417a-41cc-48f5-8236-cc619b638328 ro splash quiet loglevel=0 DEEPIN_GFXMODE=$DEEPIN_GFXMODE
initrd /boot/initrd.img-6.9.6-amd64-desktop-rolling
boot
}
menuentry 'Deepin 23 GNU/Linux, with Linux 6.9.6-amd64-desktop-rolling (recovery mode)' --class deepin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.9.6-amd64-desktop-rolling-recovery-ef3f417a-41cc-48f5-8236-cc619b638328' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
linux /boot/vmlinuz-6.9.6-amd64-desktop-rolling root=UUID=ef3f417a-41cc-48f5-8236-cc619b638328 ro single single dis_ucode_ldr
initrd /boot/initrd.img-6.9.6-amd64-desktop-rolling
boot
}
}

END /etc/grub.d/10_linux

BEGIN /etc/grub.d/20_linux_xen

END /etc/grub.d/20_linux_xen

BEGIN /etc/grub.d/25_bli

if [ "$grub_platform" = "efi" ]; then
insmod bli
fi

END /etc/grub.d/25_bli

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

menuentry 'Windows 11 (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-/dev/sdb1' {
insmod part_msdos
parttool ${root} hidden-
drivemap -s (hd0) ${root}
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

BEGIN /etc/grub.d/99_deepin-boot-kit

submenu '系统恢复' $menuentry_id_option 'gnulinux-advanced-ef3f417a-41cc-48f5-8236-cc619b638328' {
menuentry 'Deepin 23 (2024/09/16 00:02:51)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ef3f417a-41cc-48f5-8236-cc619b638328' {
load_video
insmod gzio
if [ x $grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root ef3f417a-41cc-48f5-8236-cc619b638328
fi
echo 'Loading Linux ...'
linux /boot/snapshot/v23.0.0.20240916/vmlinuz-6.9.6-amd64-desktop-rolling root=UUID=ef3f417a-41cc-48f5-8236-cc619b638328 ro splash quiet loglevel=0 DEEPIN_GFXMODE=$DEEPIN_GFXMODE back_version=v23.0.0.20240916 back_scheme=atomic backup_uuid=ef3f417a-41cc-48f5-8236-cc619b638328
echo 'Loading initial ramdisk ...'
initrd /boot/snapshot/v23.0.0.20240916/initrd.img-6.9.6-amd64-desktop-rolling
}
}

END /etc/grub.d/99_deepin-boot-kit

以后贴这种代码,请加上代码块设置,这乱劲的。

从这段代码来看:

menuentry 'Windows 11 (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-/dev/sdb1' {
insmod part_msdos
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1

grub的osprobe模块简直就是弱智。用下面这个菜单项替换掉上面这个错误的再试试:

menuentry "Boot Microsoft Windows 8/10" {
insmod part_msdos
search -s -f /EFI/Microsoft/Boot/bootmgfw.efi;
chainloader -t /EFI/Microsoft/Boot/bootmgfw.efi;
}

Reply View the author
Skyle_UOS
deepin
2024-09-21 13:56
#4
xclimbing

以后贴这种代码,请加上代码块设置,这乱劲的。

从这段代码来看:

menuentry 'Windows 11 (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-/dev/sdb1' {
insmod part_msdos
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1

grub的osprobe模块简直就是弱智。用下面这个菜单项替换掉上面这个错误的再试试:

menuentry "Boot Microsoft Windows 8/10" {
insmod part_msdos
search -s -f /EFI/Microsoft/Boot/bootmgfw.efi;
chainloader -t /EFI/Microsoft/Boot/bootmgfw.efi;
}

大神,已替换了,还是没有引导启动 confused

Reply View the author
132******94
deepin
2024-09-21 16:05
#5
Skyle_UOS

大神,已替换了,还是没有引导启动 confused

windows启动失败的错误提示是啥?

看你配图bios引导项得有4块硬盘装了3个系统啊,大款😂

Reply View the author
凡尘俗人
deepin
2024-09-21 16:22
#6

你用 refind 多系统引导工具,省事 我 win10 macos deepin23.下面是我的引导配置

你多个EFI 分区 就 icon \EFI\refind\icon\os_mac.png 下面加一行
加的一行是: volume "硬盘分区号" 使用diskgen 分区工具可以查看分区号



# refind.conf文件配置

# 启动时的背景图片。
banner mybanner.png

# 背景图大小,默认自动缩放
banner_scale fillscreen

# 图标目录,默认 "icons"
#icons_dir icons
#icons_dir pure_icons
icons_dir icons

# 启动等待时间
timeout 0

#图形化无文字提醒
use_graphics_for osx,linux,windows,grub

# hideui 隐藏界面功能命令 singleuser all
hideui label,singleuser,safemode,hwtest,arrows,hints,editor,badges

#屏蔽自动搜索Windows启动项和其他启动项文件夹
dont_scan_files \EFI\Microsoft\Boot\bootmgfw.efi
dont_scan_dirs /EFI/BOOT,/EFI/Microsoft,/EFI/ubuntu,/EFI/OC,/EFI/deepin,/EFI/kali
dont_scan_volumes "VM","Preboot"

#开机界面要显示的工具按钮:shutdown 关机 reboot 重启
showtools shutdown,reboot

# 开机界面支持触屏
# enable_touch

# 默认进入第一个引导项
#default_selection 1
# 默认进入微软系统
#default_selection Microsoft
#default_selection "+,bzImage,vmlinuz"
#default_selection Maintenance 23:30 2:00
#default_selection "Maintenance,OS X" 1:00 2:30

# 对外,手动扫描
# scanfor external,manual

# 扫描所有 linux 内核 true
# scan_all_linux_kernels true

menuentry "Windows10" {
    icon /EFI/refind/icons/os_win8.png
    loader /EFI/Microsoft/Boot/bootmgfw.efi
}

menuentry "deepin" {
    icon /EFI/refind/icons/os_deepin.png
    loader /EFI/deepin/grubx64.efi
}

menuentry "MacOS" {
    icon /EFI/refind/icons/os_mac.png
    loader /EFI/oc/OpenCore.efi
}

Reply View the author
小小怪冲啊!
deepin
2024-09-21 19:07
#7

彻底看不懂了

Reply View the author
Oli
deepin
2024-09-21 20:35
#8

agree agree

Reply View the author
Skyle_UOS
deepin
2024-09-21 23:04
#9
xclimbing
  • 双系统时间不一致的问题解决方法:
    终端执行:timedatectl set-local-rtc 1

或在Windows系统打开记事本复制粘贴以下内容:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001

另存为.reg文件,双击导入

  • Windows不能启动的问题
    肯定是启动项搞错了,你把/boot/grub/grub.cfg的内容贴上来看一下。

时间错误问题用第一种方法已成功解决。谢谢

Reply View the author
remyxo
deepin
2024-09-22 19:25
#10
我这里是这样的:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-CE85-9648' {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root CE85-9648
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###
 
替换花括号里的内容, --set=root CE85-9648 替换成你自己的EFI盘的序列号。
Reply View the author
放屁大王
deepin
2024-09-22 21:40
#11

tail

Reply View the author
Skyle_UOS
deepin
2024-09-26 22:49
#12
remyxo
我这里是这样的:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-CE85-9648' {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root CE85-9648
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###
 
替换花括号里的内容, --set=root CE85-9648 替换成你自己的EFI盘的序列号。

尝试过了,还是不行。 confused

Reply View the author
Skyle_UOS
deepin
2024-09-26 22:52
#13
remyxo
我这里是这样的:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-CE85-9648' {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root CE85-9648
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###
 
替换花括号里的内容, --set=root CE85-9648 替换成你自己的EFI盘的序列号。

尝试过了,还是不行。 doubt

Reply View the author
Skyle_UOS
deepin
2024-09-27 14:14
#14
remyxo
我这里是这样的:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-CE85-9648' {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root CE85-9648
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###
 
替换花括号里的内容, --set=root CE85-9648 替换成你自己的EFI盘的序列号。

感谢度友们热心帮助,反复折腾了osprober-chain-"uuid"及search的各项参数均未成功。最后在一个码盲贼心不死的犟劲下误打误撞竟以chainloader命令成功引导了。望大神释疑,附代码如下:😄 😃

menuentry "Windows 11 (/dev/sdb1)" --class windows {
    insmod part\_msdos
    insmod ntfs
    chainloader -t /EFI/dev/sdb1/windows/Boot/bootmgfw.efi
}
Reply View the author
Skyle_UOS
deepin
2024-09-27 14:15
#15
凡尘俗人

你用 refind 多系统引导工具,省事 我 win10 macos deepin23.下面是我的引导配置

你多个EFI 分区 就 icon \EFI\refind\icon\os_mac.png 下面加一行
加的一行是: volume "硬盘分区号" 使用diskgen 分区工具可以查看分区号



# refind.conf文件配置

# 启动时的背景图片。
banner mybanner.png

# 背景图大小,默认自动缩放
banner_scale fillscreen

# 图标目录,默认 "icons"
#icons_dir icons
#icons_dir pure_icons
icons_dir icons

# 启动等待时间
timeout 0

#图形化无文字提醒
use_graphics_for osx,linux,windows,grub

# hideui 隐藏界面功能命令 singleuser all
hideui label,singleuser,safemode,hwtest,arrows,hints,editor,badges

#屏蔽自动搜索Windows启动项和其他启动项文件夹
dont_scan_files \EFI\Microsoft\Boot\bootmgfw.efi
dont_scan_dirs /EFI/BOOT,/EFI/Microsoft,/EFI/ubuntu,/EFI/OC,/EFI/deepin,/EFI/kali
dont_scan_volumes "VM","Preboot"

#开机界面要显示的工具按钮:shutdown 关机 reboot 重启
showtools shutdown,reboot

# 开机界面支持触屏
# enable_touch

# 默认进入第一个引导项
#default_selection 1
# 默认进入微软系统
#default_selection Microsoft
#default_selection "+,bzImage,vmlinuz"
#default_selection Maintenance 23:30 2:00
#default_selection "Maintenance,OS X" 1:00 2:30

# 对外,手动扫描
# scanfor external,manual

# 扫描所有 linux 内核 true
# scan_all_linux_kernels true

menuentry "Windows10" {
    icon /EFI/refind/icons/os_win8.png
    loader /EFI/Microsoft/Boot/bootmgfw.efi
}

menuentry "deepin" {
    icon /EFI/refind/icons/os_deepin.png
    loader /EFI/deepin/grubx64.efi
}

menuentry "MacOS" {
    icon /EFI/refind/icons/os_mac.png
    loader /EFI/oc/OpenCore.efi
}

refind不会用,不懂代码,粘贴部分码块引导不了。

Reply View the author
Skyle_UOS
deepin
2024-09-27 14:17
#16
xclimbing

以后贴这种代码,请加上代码块设置,这乱劲的。

从这段代码来看:

menuentry 'Windows 11 (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-/dev/sdb1' {
insmod part_msdos
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1

grub的osprobe模块简直就是弱智。用下面这个菜单项替换掉上面这个错误的再试试:

menuentry "Boot Microsoft Windows 8/10" {
insmod part_msdos
search -s -f /EFI/Microsoft/Boot/bootmgfw.efi;
chainloader -t /EFI/Microsoft/Boot/bootmgfw.efi;
}

感谢度友们热心帮助,反复折腾了osprober-chain-"uuid"及search的各项参数均未成功。最后在一个码小白贼心不死的犟劲下误打误撞竟以chainloader命令成功引导了。望大神释疑,附代码如下:😄 😃

menuentry "Windows 11 (/dev/sdb1)" --class windows {
    insmod part\_msdos
    insmod ntfs
    chainloader -t /EFI/dev/sdb1/windows/Boot/bootmgfw.efi
}
Reply View the author
xclimbing
deepin
2024-09-27 16:46
#17
Skyle_UOS

感谢度友们热心帮助,反复折腾了osprober-chain-"uuid"及search的各项参数均未成功。最后在一个码小白贼心不死的犟劲下误打误撞竟以chainloader命令成功引导了。望大神释疑,附代码如下:😄 😃

menuentry "Windows 11 (/dev/sdb1)" --class windows {
    insmod part\_msdos
    insmod ntfs
    chainloader -t /EFI/dev/sdb1/windows/Boot/bootmgfw.efi
}

你这菜单本来就是错的,我也搞不清楚你是怎么启动起来的。

Reply View the author
Skyle_UOS
deepin
2024-09-27 23:24
#18
凡尘俗人

你用 refind 多系统引导工具,省事 我 win10 macos deepin23.下面是我的引导配置

你多个EFI 分区 就 icon \EFI\refind\icon\os_mac.png 下面加一行
加的一行是: volume "硬盘分区号" 使用diskgen 分区工具可以查看分区号



# refind.conf文件配置

# 启动时的背景图片。
banner mybanner.png

# 背景图大小,默认自动缩放
banner_scale fillscreen

# 图标目录,默认 "icons"
#icons_dir icons
#icons_dir pure_icons
icons_dir icons

# 启动等待时间
timeout 0

#图形化无文字提醒
use_graphics_for osx,linux,windows,grub

# hideui 隐藏界面功能命令 singleuser all
hideui label,singleuser,safemode,hwtest,arrows,hints,editor,badges

#屏蔽自动搜索Windows启动项和其他启动项文件夹
dont_scan_files \EFI\Microsoft\Boot\bootmgfw.efi
dont_scan_dirs /EFI/BOOT,/EFI/Microsoft,/EFI/ubuntu,/EFI/OC,/EFI/deepin,/EFI/kali
dont_scan_volumes "VM","Preboot"

#开机界面要显示的工具按钮:shutdown 关机 reboot 重启
showtools shutdown,reboot

# 开机界面支持触屏
# enable_touch

# 默认进入第一个引导项
#default_selection 1
# 默认进入微软系统
#default_selection Microsoft
#default_selection "+,bzImage,vmlinuz"
#default_selection Maintenance 23:30 2:00
#default_selection "Maintenance,OS X" 1:00 2:30

# 对外,手动扫描
# scanfor external,manual

# 扫描所有 linux 内核 true
# scan_all_linux_kernels true

menuentry "Windows10" {
    icon /EFI/refind/icons/os_win8.png
    loader /EFI/Microsoft/Boot/bootmgfw.efi
}

menuentry "deepin" {
    icon /EFI/refind/icons/os_deepin.png
    loader /EFI/deepin/grubx64.efi
}

menuentry "MacOS" {
    icon /EFI/refind/icons/os_mac.png
    loader /EFI/oc/OpenCore.efi
}

不懂refind命令,粘贴部分代码块试过没有反应。

Reply View the author
凡尘俗人
deepin
2024-09-28 18:31
#19
Skyle_UOS

不懂refind命令,粘贴部分代码块试过没有反应。

以下是在win系统下操作,PE系统也可以

首先到 refind 官网下载最新版,解压后找到 refind 文件夹,只须要这个。

把我发的配置文件 ,你把它粘贴到一个新建文本文件内保存,然后把文件名称改为 refind.conf 保存,在复制到 refind 文件夹内 !

然后用 diksgen 分区工具把 refind 文件夹复制到你的 ESP 分区中 EFI 文件夹内,接着在diskgen 分区软件的 工具 项下,最下面一项添加引导项,添加 refind_x64.efi 项 把 refind 引导设为第一项就可以啦!

记得把 BIOS 安全引导关了。

主要就三项:记得路径都是在 EFI 文件夹内

1,引号内是系统名称

menuentry "Windows10" {

2,这一行是系统要显示的 LOGO 图片路径

icon /EFI/refind/icons/os_win8.png

3,这一行是系统引导文件 efi 的路径

loader /EFI/Microsoft/Boot/bootmgfw.efi }

Reply View the author
Skyle_UOS
deepin
2024-09-29 01:17
#20
xclimbing

你这菜单本来就是错的,我也搞不清楚你是怎么启动起来的。

今天升级后,又引导不了.升级grub时报这个错误信息.😦

截图_选择区域_20240929005558.jpg

Reply View the author
1 / 2
To page