无忧启动论坛

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

[求助] 如何修改wubildr.mbr或者wubildr

[复制链接]
发表于 2016-11-23 20:08:20 | 显示全部楼层
wubildr是grub2 ,不是grub4dos
不建议修改wubildr文件,直接从本论坛下载编译好的grub2即可。
在grub2板块的精华帖,名字叫做 winly

下载好自己,修改一下配置文件,叫做winly.cfg或者grub.cfg
内容如下:
回复

使用道具 举报

发表于 2016-11-23 20:09:00 | 显示全部楼层
用于启动wubi系统的grub2的配置文件
set show_panic_message=true

if search -s -f -n /ubuntu/disks/root.disk; then
    if loopback loop0 /ubuntu/disks/root.disk; then
        set root=(loop0)
        if [ -e /boot/grub/grub.cfg ]; then
            if configfile /boot/grub/grub.cfg; then
                set show_panic_message=false
            fi
        else [ -e /grub/grub.cfg ]; then
            if configfile /grub/grub.cfg; then
                set show_panic_message=false
            fi
        fi
    fi
fi

if [ ${show_panic_message} = true ]; then
    echo "It is not possible to boot from the Ubuntu image."
    echo "Please verify that the Ubuntu installation was not removed."
    echo "If that is not the case, please check that the Windows filesystem"
    echo "is not corrupted: reboot into Windows and run: chkdsk /r"
    echo "Then try again."
fi

点评

好的,O(∩_∩)O谢谢 我试试 [hr]神奇的小尾巴:Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36 (zh-CN) ——2016/11/23 下午8:10:07  详情 回复 发表于 2016-11-23 20:10
回复

使用道具 举报

发表于 2016-11-23 20:13:49 | 显示全部楼层
在ubuntu系统中生成wubildr文件

mkdir -p build/winboot
cp -f data/wubildr.cfg data/wubildr-bootstrap.cfg build/winboot/
/usr/lib/grub/i386-pc/grub-ntldr-img --grub2 --boot-file=wubildr -o build/winboot/wubildr.mbr
cd build/winboot && tar cf wubildr.tar wubildr.cfg
mkdir -p build/grubutil
grub-mkimage -O i386-pc -c build/winboot/wubildr-bootstrap.cfg -m build/winboot/wubildr.tar -o build/grubutil/core.img \
loadenv normal biosdisk part_msdos part_gpt fat ntfs ext2 ntfscomp iso9660 loopback search linux boot minicmd cat cpuid chain \
halt help ls reboot echo test configfile gzio sleep memdisk tar font gfxterm gettext true vbe vga video_bochs video_cirrus probe
cat /usr/lib/grub/i386-pc/lnxboot.img build/grubutil/core.img > build/winboot/wubildr
回复

使用道具 举报

发表于 2016-11-23 20:16:49 | 显示全部楼层
sysop 发表于 2016-11-23 20:10
好的,O(∩_∩)O谢谢
我试试

先不要忙着操作。
你自己检查一下究竟是怎么回事,导致不能识别ext4分区的。
会不会是分区表损坏了?

点评

可能是吧,以前也遇到过,不过grub4dos、grub2、bootmgr引导的系统都能启动呀,就wubi启动不了了 [hr]神奇的小尾巴:Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0  详情 回复 发表于 2016-11-23 20:24
回复

使用道具 举报

发表于 2016-11-23 20:27:52 | 显示全部楼层
sysop 发表于 2016-11-23 20:24
可能是吧,以前也遇到过,不过grub4dos、grub2、bootmgr引导的系统都能启动呀,就wubi启动不了了

不一定是分区表的问题。
如果 \ubuntu\disks\root.disk 放在系统分区,或者是pagefile.sys同一分区。
在win8使用休眠,就会导致分区被冻结,linux不能正常加载该分区。

点评

看来不是冻结问题 没启用休眠 虚拟内存换在别的分区还是一样 [hr]神奇的小尾巴:Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36 (zh-CN)  详情 回复 发表于 2016-11-23 20:43
哦,可能是这问题,我把vhd版win10 pagefile.sys放在这个分区了 我看看休眠开了吗 [hr]神奇的小尾巴:Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Sa  详情 回复 发表于 2016-11-23 20:31
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2026-1-30 16:44

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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