X-osadminの自留地
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 作品发布 Works
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
77
Comments
0

友情链接 – Friendly Links

  • Add your site here…
xosadmin
5 years ago

如何使用Grub4dos引导Grub2

Grub4dos是一个非常优秀的启动引导器,它可以引导Windows/Linux,甚至变色龙/四叶草。早期的Linux所带有的Legacy Grub可以与Grub4dos相互引导,非常有趣。但在Grub2中,本功能做出了一些改变。比如,启动引导文件由g2ldr更改为core.img(在grub-install时生成)。

正因如此,找到core.img文件的所在位置尤为重要。举个例子:

假设操作系统为Ubuntu,则:

Ubuntu 12.04  —  /boot/grub/core.img

Ubuntu 12.10+  —  /boot/grub/i386-pc/core.img

找到core.img文件后,在Grub4dos引导项中的表达如下(假设操作系统为Debian 10,并且磁盘为(hd1,0)):

title Grub2

root (hd1,0)

kernel /boot/grub/i386-pc/core.img

boot

若在寻找core.img的过程中发现该文件不存在,您可能需要使用grub-install重新生成,具体如下:

sudo grub-install –target=i386-pc –grub-setup=/bin/true –recheck –debug /dev/sda

Enjoy~

 

Ref: http://mawenbao.com/research/use_grub4dos_to_boot_ubuntu_under_win7.html

  • 技术小絮
等 人表示很赞
2,010
0

📮Comments

No Comment.
xosadmin
xosadmin
5 years ago
推荐 Debian提示Malformed Description-md5的解决方法
近日,有一台vps在执行apt update时,报出以下错误,并返回错误值100。错误代码如下: E: Malformed Description-md5 line; doesn’t have the required leng ...
  • 技术小絮
1,660 0
xosadmin
xosadmin
4 years ago
推荐 为proxmox 6/7一键开启bbr
新版Proxmox 6/7基于debian buster/bullseye操作系统,已采用5.10以上内核,因此符合免更换内核开启bbr的条件。只需要按照以下操作进行操作即可: echo “net.core.default_qd ...
  • proxmox
  • 技术小絮
1,323 0
xosadmin
xosadmin
4 years ago
推荐 curl: (35) Peer reports incompatible or unsupported protocol version的解决方法
近日在做CentOS 7维护时,在尝试curl时,遇到了curl: (35) Peer reports incompatible or unsupported protocol version.的问题。本问题是由于相应的包版本过老导致的。 ...
  • 技术小絮
2,319 0
xosadmin
xosadmin
3 years ago
推荐 如何在Debian安装Mariadb数据库
Mariadb是一款高效的数据库。因为其来源于MySQL,因此它对于Mysql具有较好的兼容性。这篇文章将介绍如何在Debian 11操作系统上安装MariaDB数据库。 安装依赖包并升级系统,命令: apt-get install s ...
  • 技术小絮
746 0
xosadmin
xosadmin
4 years ago
推荐 Debian 11启用rc.local方法
rc.local是一个令大家耳熟详的文件,它在Redhat系列操作系统中可以让用户添加自定义开机脚本并运行。但是在Debian 11操作系统中,这个功能不被默认开启。这篇文章将介绍如何开启rc.local。话不多说,开始~ 先通过以下命令 ...
  • 技术小絮
2,933 0
  • HPE Microserver系列降低噪音的一种办法
  • Debian 13 Trixie安装Proxmox VE
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • LXC上安装Gitlab时sysctl报错的解决方法

文章聚合

  • Debian 13 Trixie安装Proxmox VE
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持
  • Proxmox报出RRDC/RRD update error的解决方法

Multilangual Translator

Copyright © 2016-2025 X-osadminの自留地. All rights reserved. 萌ICP备20258855号
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 作品发布 Works
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following
Welcome
Forgot password?
Welcome
Forgot password?
Social Login
Login with WeChat QR Code
Unregistered WeChat IDs will be automatically used to create an account.
Scan and Reply with Keywords「登录」Get Verification Code
Social Login
Free registration
Social Login
Reset password
Back to Login