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

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
74
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,036
0

📮Comments

No Comment.
xosadmin
xosadmin
6 years ago
推荐 Proxmox挂载Windows Samba时报错的解决方法
近日在Proxmox的Web界面上挂载由Windows Server 2008共享的CIFS(Samba共享)时,界面报出以下错误: create storage failed: error with cfs lock ‘fil ...
  • proxmox
  • 技术小絮
5,930 0
xosadmin
xosadmin
3 years ago
推荐 Debian 11平滑升级到Debian 12的方法
Debian 12于近日发布,其名称为Bookworm。同时,Debian 11 (Bullseye)也可以升级至Debian 12 Bookworm。本文介绍一种平滑升级的方法。 首先,确认当前版本是否为Debian 11 Bullsey ...
  • 技术小絮
405 0
xosadmin
xosadmin
6 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,859 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 ...
  • 技术小絮
584 0
xosadmin
xosadmin
6 years ago
推荐 OpenVZ Web Panel的错误undefined method `get_advanced_limits’解决方法
如题,在安装完OpenVZ Web Panel后,发现该面板的Server Templates功能无法打开,一执行即报500错误,详细错误信息如下: NoMethodError (undefined method `get_advanced ...
  • 技术小絮
1,504 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