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

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
75
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

  • 技术小絮
等 人表示很赞
1,989
0

📮Comments

No Comment.
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,195 0
xosadmin
xosadmin
4 years ago
推荐 apt-get时提示different from other instances的解决方案
近日在升级Ubuntu系统时,apt-get提示”trying to overwrite shared ‘/usr/share/doc/libselinux1/changelog.Debian.gz’, ...
  • 技术小絮
1,123 0
xosadmin
xosadmin
3 years ago
推荐 vsftpd提示500 OOPS: vsftpd: refusing to run with writable root inside chroot()解决方法
问题:在安装完vsftpd后,尝试连接时,提示500 OOPS: vsftpd: refusing to run with writable root inside chroot() 解决此问题,只需要执行以下操作: 在/etc/vsft ...
  • 技术小絮
546 0
xosadmin
xosadmin
5 years ago
推荐 apache提示You don’t have permission to access /* on this server.的解决方法
首先,X-osadmin在这里祝大家520快乐!近日有朋友遇到了这样一个问题:在CentOS 8下安装php-fpm+apache,在浏览器打开时均提示You don’t have permission to access / ...
  • 技术小絮
3,825 0
xosadmin
xosadmin
7 years ago
推荐 如何在Linux(CentOS)上安装OpenVZ
近日,有一位朋友向我请教如何在其自己的CentOS服务器上安装OpenVZ虚拟化。所谓OpenVZ,官方对其的定义如下: “OpenVZ is a container-based virtualization for Linux. Op ...
  • 技术小絮
  • 虚拟化
2,225 0
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • LXC上安装Gitlab时sysctl报错的解决方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持

文章聚合

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

Multilangual Translator

Copyright © 2016-2025 X-osadminの自留地. All rights reserved. Designed by nicetheme.
  • 博客主页 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