无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 3974|回复: 11

深夜弄代码,对于同一个img文件几个不同的代码的结果莫名其妙啊

[复制链接]
发表于 2014-12-2 00:49:53 | 显示全部楼层 |阅读模式
title RAMOS win7ramos-img===========cheshiyong.img================1
find --set-root(hd0) /cheshiyong.img
map --mem --top(hd0) /cheshiyong.img (hd0)
map --hook
chainloader (hd0,0)+1
boot

执行提示:BOOTMGR is compressed
         pess Ctrl+Alt+Del to restart

意思是:负责引导的bootmgr被压缩,按Ctrl+Alt+Del重新启动
 楼主| 发表于 2014-12-2 00:50:32 | 显示全部楼层
title RAMOS win7ramos-img================cheshiyong.img================2
kernel  /boot/memdisk
initrd  /cheshiyong.img
find --set-root(hd0) /cheshiyong.img
map --mem --top(hd0) /cheshiyong.img (hd0)
map --hook
chainloader (hd0,0)+1
rootnoverify  (fd0)
boot

执行提示:A disk read error occurred
        意思是:一个硬盘读取错误
回复

使用道具 举报

 楼主| 发表于 2014-12-2 00:51:19 | 显示全部楼层
title RAMOS win7ramos-img================cheshiyong.img================3
kernel  /boot/memdisk
initrd  /cheshiyong.img
find --set-root(hd0) /cheshiyong.img
map --mem --top(hd0) /cheshiyong.img (hd0)
map --hook
chainloader (hd0,0)+1
rootnoverify  (fd0)
boot



title RAMOS win7ramos-img================cheshiyong.img================4
kernel  /boot/memdisk
initrd  /cheshiyong.img
map --mem --top(hd0) /cheshiyong.img (hd0)
map (hd0) (hd1)
map --hook
root (hd0,0)
boot

title RAMOS win7ramos-img================cheshiyong.img================5
kernel  /boot/memdisk
initrd  /cheshiyong.img
map --mem --top(hd0) /cheshiyong.img (hd0)
map (hd0) (hd1)
map --hook
root (hd0,0)
boot


title RAMOS win7ramos-img================cheshiyong.img================6
kernel  /boot/memdisk
initrd  /cheshiyong.img
map (hd0) (hd1)
map --hook
map --mem --top(hd0) /cheshiyong.img (hd0)
root (hd0,0)
boot


这四项都提示了很多行,有两屏吧。这就表示有问题。最后的提示是:
Loading botsector...booting....
Missing operating system
哎,又是引导失败!
回复

使用道具 举报

 楼主| 发表于 2014-12-2 00:53:17 | 显示全部楼层

title RAMOS win7ramos-img======================cheshiyong.img========7
find --set-root(hd0) /cheshiyong.img
map --mem --top /cheshiyong.img (hd0)
map (hd0) (hd1)
map --hook
root (hd0,0)
chainloader /bootmgr
boot

第七项居然成功!这样,猜测下面的代码应该也能成功
title RAMOS win7ramos-img===========cheshiyong.img================8
find --set-root(hd0) /cheshiyong.img
map --mem --top(hd0) /cheshiyong.img (hd0)
map --hook
chainloader (hd0,0)+1
chainloader /bootmgr
boot


时间为0:27分,继续试验!
执行的结果是失望,提示: No such partiton
回复

使用道具 举报

 楼主| 发表于 2014-12-2 00:53:59 | 显示全部楼层
继续试验下面的代码
title RAMOS win7ramos-img================cheshiyong.img================9
kernel  /boot/memdisk
initrd  /cheshiyong.img
map (hd0) (hd1)
map --hook
map --mem --top(hd0) /cheshiyong.img (hd0)
root (hd0,0)
chainloader /bootmgr
boot

这个代码的结果,我只能说到执行的出了邪门,因为回到了Windows的启动项和实模式启动项的选择界面,只有两个选择项。
而原生系统的所在的分区的BCD的启动项很多。应该的跑到原生系统系统隐藏分区的BCD里面去了,用BCD查看确认的确如此。
回复

使用道具 举报

 楼主| 发表于 2014-12-2 00:56:39 | 显示全部楼层
当前系统(原生系统)的BCD
当前系统的BCD中的引导项.PNG
回复

使用道具 举报

 楼主| 发表于 2014-12-2 00:59:20 | 显示全部楼层
原生系统创造的隐藏分区的BCD,windows利用这个修复引导问题。
原生系统创造的隐藏分区的BCD.PNG
回复

使用道具 举报

 楼主| 发表于 2014-12-2 01:02:57 | 显示全部楼层
刚接触GURB,对代码有一点点感觉和兴趣。这些代码为什么失败,又为什么成功?希望路过停留的高手能赐教!
回复

使用道具 举报

发表于 2014-12-2 02:37:08 来自手机 | 显示全部楼层
你没发现 凡是引导失败的,你都没有chainloader /bootmgr    凡是  错误的  map成hd0  rootnoverify 激活  fd0 !ii     不错才怪  rootnoverify 将磁盘设为激活 事实上只是告诉系统来这吧,来了哥告诉你引导 在哪,对于没激活没引导的没用,对于没激活有引导文件的无所谓chainloader 能直接引导目标   
回复

使用道具 举报

发表于 2014-12-2 10:53:03 来自手机 | 显示全部楼层
睡一觉起来再瞄一眼天呀  楼主你菜单 该留空格的都没留,不该留的都留了,  你应当下载g4d帮助文档看看。  先学再试,别拿着漏瓢挠汤了  止部学习吧  也就半天能看完
回复

使用道具 举报

发表于 2014-12-6 11:00:23 | 显示全部楼层
他就是把空格扰乱了来忽悠大家的
回复

使用道具 举报

 楼主| 发表于 2014-12-9 18:45:05 | 显示全部楼层
本意是从回复中学点东西。自己只是初学,绝无忽悠谁的意思。
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-3-29 01:53

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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