黄页推广引流网站删除不了wordpress
2026/2/18 19:56:04 网站建设 项目流程
黄页推广引流网站,删除不了wordpress,郑州seo代理公司,网站开发属于什么资产linux系统#xff08;PE系统#xff09;挂载数据盘并支持从数据盘启动的情况大多使用在云上机器排查问题等场景。 本文简绍如何在PE系统中新增启动项#xff0c;并指向数据盘。 主要采用grub2中链式启动能力 什么是链式启动#xff1f; 主要用于实现跨操作系统的链式加…linux系统PE系统挂载数据盘并支持从数据盘启动的情况大多使用在云上机器排查问题等场景。本文简绍如何在PE系统中新增启动项并指向数据盘。主要采用grub2中链式启动能力什么是链式启动主要用于实现跨操作系统的链式加载引导。其核心功能是将控制权转移至其他操作系统的启动程序通过加载目标分区的引导扇区或EFI文件完成多系统启动环境的构建https://www.gnu.org/software/grub/manual/grub/grub.html#Chain_002dloading选择从数据盘启动系统时既要支持 bios 和 uefi数据盘系统为bios 启动的时候PE系统走bios 启动模式实现方式 set root(hd1) chainloader 1数据盘系统 为uefi 启动的时候PE系统走uefi启动模式。 实现方式首选要选择uefi shim path记得要跳过PE 系统盘本身的 shim path 选择该设备为root并从该 shim path 启动。x86 支持的从数据盘已有系统启动的 grub 配置cat /etc/grub.d/40_custom #!/usr/bin/sh exec tail -n 3 $0 # 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. # # 设置了一个uefi启动项的列表,覆盖主流Linux版本的shimx64.efi路径 set os_shim_list/EFI/ubuntu/shimx64.efi /EFI/centos/shimx64.efi /EFI/debian/shimx64.efi /EFI/redhat/shimx64.efi /EFI/almalinux/shimx64.efi /EFI/rocky/shimx64.efi /EFI/fedora/shimx64.efi /EFI/opensuse/shim.efi /EFI/sles/shim.efi /EFI/BOOT/fbaa64.efi # 新增一个启动项Booting From Existing OS menuentry Booting From Existing OS { # 判断启动方式是 BIOS if test ${grub_platform} pc; then insmod chain # 设置从数据盘启动 hd1 set root(hd1) chainloader 1 boot else insmod chain insmod fat set root #启动方式是uefi遍历 uefi启动项 for shimpath in $os_shim_list;do # 在数据盘 hd1 上search uefi启动项 search --no-floppy --setroot --file ${shimpath} --hint hd1, # 没有找的 uefi启动项 continue if [ -z $root ];then echo root not found, continue continue else # 找的uefi启动项后 echo finally find root: $root # 判断这个uefi启动项是不是 pe系统的 hd0一般不会 regexp --set 0:matched_harddisk hd0 $root # 如果是pe系统的uefi启动项continue if [ $matched_harddisk hd0 ];then echo root is pe root, skip #remember reset matched_harddisk set root set matched_harddisk continue else # 不是pe系统的uefi启动项就是数据盘系统的从这个启动项启动 if [ -n $root ];then chainloader ${shimpath} boot fi fi fi done fi }arm 支持的从数据盘已有系统启动的 grub 配置cat /etc/grub.d/40_custom #!/usr/bin/sh exec tail -n 3 $0 # 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. # # 设置了一个uefi启动项的列表,覆盖主流Linux版本的shimaa64.efi路径 set os_shim_list/EFI/ubuntu/shimaa64.efi /EFI/centos/shimaa64.efi /EFI/debian/shimaa64.efi /EFI/redhat/shimaa64.efi /EFI/almalinux/shimaa64.efi /EFI/rocky/shimaa64.efi /EFI/fedora/shimaa64.efi /EFI/opensuse/shimaa64.efi /EFI/sles/shim.efi /EFI/BOOT/fbaa64.efi # 新增一个启动项Booting From Existing OS menuentry Booting From Existing OS { insmod chain insmod fat set root #遍历 uefi启动项 for shimpath in $os_shim_list;do # 在数据盘 hd1 上search uefi启动项 search --no-floppy --setroot --file ${shimpath} --hint hd1, # 没有找的 uefi启动项 continue if [ -z $root ];then echo root not found, continue continue else # 找到uefi启动项后 echo finally find root: $root # 判断这个uefi启动项是不是 pe系统的 hd0一般不会 regexp --set 0:matched_harddisk hd0 $root # 如果是pe系统的uefi启动项continue if [ $matched_harddisk hd0 ];then echo root is pe root, skip #remember reset matched_harddisk set root set matched_harddisk continue else # 不是pe系统的uefi启动项就是数据盘系统的从这个启动项启动 if [ -n $root ];then chainloader ${shimpath} boot fi fi fi done }注#测试过程发现arm缺失grub mod故安装 yum -y install grub2-efi-aa64-modules.noarch cp -r /usr/lib/grub/arm64-efi/ /boot/grub2/设置grub等待时间并重新生成grub配置文件/etc/default/grub 文件中 GRUB_TIMEOUT 配置为10秒启动时给用户选择时间配置完成需重新生成grub配置文件grub2-mkconfig -o /boot/grub2/grub.cfg例如您采用一个 centos 7 系统的数据盘挂载在了PE系统上修复了问题后想进入centos 7系统即 在PE系统下 reboot后在启动项中选择“Booting From Existing OS”即可从数据盘启动即centos 7相关参考https://docs.opencloudos.org/OCS/Install_Guide/ocs-UEFI/#1-uefihttps://www.gnu.org/software/grub/manual/grub/grub.html#Chain_002dloading

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询