无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 226196|回复: 276

[分享] Windows定制Grub2(包括BIOS和UEFI、自定义Grub2路徑)

    [复制链接]
发表于 2014-10-9 08:45:50 | 显示全部楼层
我想装到电脑的硬盘上,可以吗?要怎么做?
回复

使用道具 举报

发表于 2014-10-9 08:50:18 | 显示全部楼层
在grub-mkimage定制命令中使用參數  -c (小寫c)

运行时,提示找不到这个配置文件

点评

grub-mkimage定制命令中使用參數 -c (小寫c)時需要在後面加上配置文件,要確保這個配置文件的路徑沒錯誤。另外你安裝在单硬盘上可能需要替換原來的引導,EFI啟動是需要ESP分区的,实际上就是個FAT的分區,至于大  详情 回复 发表于 2014-10-9 19:12
回复

使用道具 举报

发表于 2014-10-9 12:29:21 | 显示全部楼层
本帖最后由 qq5274202 于 2014-10-9 16:18 编辑

楼主,我想安装到硬盘上,单硬盘,EFI+GPT,64位EFI


哦,已经自己研究出来了
回复

使用道具 举报

发表于 2014-10-10 11:50:45 | 显示全部楼层
本帖最后由 qq5274202 于 2014-10-10 17:23 编辑
極限驅動 发表于 2014-10-9 19:12
grub-mkimage定制命令中使用參數  -c (小寫c)時需要在後面加上配置文件,要確保這個配置文件的路徑沒錯 ...


感谢,这个问题已经得到解决,现在grub2能正常引导电脑,现在碰到另一个麻烦的事情



想请教:
hotkey="c" 如何改成音量+ - ?  如下菜单,按C键就直接进入系统了,我想改成音量键,不知道怎么改


我的grub.cfg  都是依瓢画葫,自己不理解,引导win10项正常

set pager=1
insmod all_video
insmod video_bochs
insmod video_cirrus
insmod efi_gop
insmod efi_uga
insmod font
insmod gfxterm
insmod gfxmenu
insmod gettext
insmod jpeg
insmod png
insmod linux

#加载unicode字体显示中文
loadfont /Grub2/UEFI_x86_64-efi/Fonts/unicode.pf2
set locale_dir=/Grub2/UEFI_x86_64-efi/Locale
set lang=zh_CN

#设置分辨率
set gfxmode=auto
terminal_output gfxterm
#设置背景图片
#background_image /

#倒计时
set timeout=300

#颜色
set color_normal=green/black
set color_highlight=white/cyan

###菜单项###
# Windows本地系统启动

menuentry "Windows 10" --class windows --class os --hotkey="c" {
        insmod part_gpt
        insmod fat
        insmod ntfs
        set root='(hd1,gpt1)'
        chainloader ($root)/EFI/Microsoft/Boot/bootmgfw.efi
}


menuentry "重启计算机"{
reboot
}

menuentry "关机计算机"{
halt
}

点评

帖子更新了,你一下有沒你要的答案 http://bbs.wuyou.com/forum.php?mod=viewthread&tid=339411  详情 回复 发表于 2014-10-12 22:24
回复

使用道具 举报

发表于 2014-10-13 10:03:42 | 显示全部楼层
本帖最后由 qq5274202 于 2014-10-13 10:10 编辑


非常感谢,英文不好,好像没有定义音量键,也不能用组合键,平板不接键盘的话,多系统没什么意义了

看来只能换个思路思考了

点评

我沒有找到Grub2有關音量鍵和組合鍵的相關說明,不過你可以設置數字鍵,看合不合用  详情 回复 发表于 2014-10-13 12:33
回复

使用道具 举报

发表于 2014-10-14 11:22:21 | 显示全部楼层
極限驅動 发表于 2014-10-13 12:33
我沒有找到Grub2有關音量鍵和組合鍵的相關說明,不過你可以設置數字鍵,看合不合用

因为是平板,平时不接键盘鼠标的,机身上就音量键,win键,电源键
回复

使用道具 举报

发表于 2014-10-17 16:49:40 | 显示全部楼层
本帖最后由 qq5274202 于 2014-10-17 17:04 编辑

code:

Command: linux file …
Load a Linux kernel image from file. The rest of the line is passed verbatim as the kernel command-line. Any initrd must be reloaded after using this command (see initrd).

On x86 systems, the kernel will be booted using the 32-bit boot protocol. Note that this means that the ‘vga=’ boot option will not work; if you want to set a special video mode, you will need to use GRUB commands such as ‘set gfxpayload=1024x768’ or ‘set gfxpayload=keep’ (to keep the same mode as used in GRUB) instead. GRUB can automatically detect some uses of ‘vga=’ and translate them to appropriate settings of ‘gfxpayload’. The linux16 command (see linux16) avoids this restriction.

不太理解这句话,用grub2引导安卓x86,机器是efi 64位,要设置引导参数,分辨率得用set gfxpayload=1024x768来设置吗?还是用linux的启动参数vga=788 ?

点评

我的英文不是很好,呵呵,大概理解如下: 這個參數linux 主要是說在x86的系统時會使用32位引導,這時的視頻模式VGA將會失效。但是可以使用gfxpayload來強制控制視頻模式,可以使用 set gfxpayload=keep 這樣gfxpayl  详情 回复 发表于 2014-10-18 01:21
回复

使用道具 举报

发表于 2014-10-20 14:13:04 | 显示全部楼层
極限驅動 发表于 2014-10-18 01:21
我的英文不是很好,呵呵,大概理解如下:
這個參數linux 主要是說在x86的系统時會使用32位引導,這時的 ...

太感谢了,您一楼的方法,grub2能够引导安卓x86(安装与运行)

安卓X86我装了两个版本,一个4.3,一个4.4

4.3能够进到安卓桌面,就是看不清,有点花屏,并且会显示成两个一模一样的屏,能看到wifi,蓝牙,关机,重启之类

4.4,能够听到安卓的操作音(鼠标乱点的),屏幕无显示,

我再尝试修改分辨率试试,屏幕无显示可能跟分辨率有关
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-4-1 17:59

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表