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,017
0

📮Comments

No Comment.
xosadmin
xosadmin
11 months ago
推荐 Proxmox日志出现大量lxcfs truncated错误的解决方案
在部分Proxmox版本中运行LXC虚拟机,可能会遇到以下情况:日志中出现大量Internal error: truncated write to cache,并且实时在滚动更新。 经过搜索和研究,可以通过以下方式进行修复: 编辑/lib ...
  • proxmox
  • 技术小絮
642 0
xosadmin
xosadmin
5 years ago
推荐 gem (Zlib::GzipFile::Error) not in gzip format 的解决方案
近日在使用老版本ruby安装sqlite3时,遇到了这样的一个错误,报错如下: ERROR: While executing gem … (Zlib::GzipFile::Error) not in gzip format ...
  • 技术小絮
1,204 0
xosadmin
xosadmin
5 years ago
推荐 CentOS 7用yum配置php7.2+mariadb+nginx
更新Linux源并安装EPEL+Webtatic源 yum -y install epel* rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm 2. 清理 ...
  • 技术小絮
1,222 0
xosadmin
xosadmin
7 years ago
推荐 OpenVZ如何给VPS启用ppp
大家好!在上一篇文章(如何在Linux(CentOS)上安装OpenVZ)中,我为大家讲述了如何在CentOS环境下安装OpenVZ虚拟框架。在此,有许多网友阅读并安装后,想给自己的VPS开启ppp功能以备不时之需。在这里,补充一篇文章为 ...
  • 技术小絮
  • 虚拟化
2,817 0
xosadmin
xosadmin
3 years ago
推荐 git提示server certificate verification failed的解决方法
在部分Ubuntu或者Debian系统上,git在clone或者push时可能会报出server certificate verification failed的错误,具体报错如下: server certificate verifica ...
  • 技术小絮
821 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