无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
楼主: chenall
打印 上一主题 下一主题

[分享] 另类启动PE的方法

[复制链接]
31#
 楼主| 发表于 2007-8-21 17:33:13 | 只看该作者
原帖由 windrv 于 2007-8-21 12:35 PM 发表


In most situations, you can simply use map --mem instead of using memdisk.

map --mem can load up img file, partition image file; no need for building dsk file, disk image file, from img fi ...


使用MEMDISK是想试试看能否从SYSLINUX/PXELINUX来启动.

还有如果不用作成DSK文件,只使用IMG文件来启动需要做
9. 用'无盘天使'去把磁盘映像标识清零;
患难夫妻?

我创建的DSK文件,不清零也可以启动,不知这一步是不是必须的.
回复

使用道具 举报

32#
发表于 2007-8-22 09:26:42 | 只看该作者
Under some situation where you cannot boot up an img file using map --mem, then you have to use memdisk to try.

memdisk works under both grub4dos and syslinux/pxelinux. As I have said, it requires a dsk file in CHS format. The mbr of the dsk file should be able to chainload the boot file within the dsk file. So grubinst is a good tool for installing the required grldr.mbr for such purpose.

The Step 9 you referred above is not necessary for img file as img file has no mbr.

If you have mounted up your dsk file under xp, xp will change or write the disk signature of the dsk file. It may make the dsk file not booted under xp when loading to ram. So you have to do Step 9 above to zero out the disk signature of the dsk file.

If you build the dsk file from img file using da without mounting it up, then Step 9 is not required.
回复

使用道具 举报

33#
 楼主| 发表于 2007-8-22 18:39:21 | 只看该作者
我重新试了下,直接IMG还是无法启动。

另外。
能不能帮忙看一下后面的两个文件。一个可以启动,一个失败(显示0X0000007B)

可是两个镜像的内容是完全一样的,而且直接使用qemu加载这两个文件作为磁盘启动(不是使用map --mem)都是成功的。但是作为内存盘启动时只有winpe.dsk这个文件可以启动成功。

真是郁闷了。。。。...


注:直接用img(非DISK的IMG文件)的内存盘启动也是0x0000007b的提示,如果这个问题解决那用应该这个问题也就解决了。
我查不出原因。

真不明白、里面的文件一样/磁盘大小/卷标也是一样的/CHS参数也都一样。为何就是不能启动。

附下载地址:
http://my.mofile.com/chenall
我的共享里面。
里面有一个winpe1.gz是可启动的。winpe.gz是启动失败的。
回复

使用道具 举报

34#
发表于 2007-8-23 09:54:28 | 只看该作者
Have you tried it with VistaPe or a normal XP?

Please see this thread for more information:

http://www.znpc.net/bbs/viewthre ... tra=page%3D1&page=2

The good news is that you at least know there is at least a way of using dsk file that works.

This may not be due only to the difference between img or dsk format. Other factors may count as discussed in the above thread such as different oses or different machines or suitable hard disk drivers available as installed into the os system images, etc.

[ 本帖最后由 windrv 于 2007-8-23 09:55 AM 编辑 ]
回复

使用道具 举报

35#
发表于 2007-8-23 10:04:12 | 只看该作者
also please try to use plain img and dsk files first without gzipping.

And also please check if there is any problem in the process of writing out the image files or gzipping the image files.

Sometimes such problems may be due to hard disk problems, some sectors may be bad, giving rise to such strange problems.

For instance, when I did the testing mentioned in the above thread, in my IBM Thinkpad, initially only VistaPE.img and its gzipped version worked. LaoMaoTao and BartPE gz files did not work. So I tested the LaoMaoTao and BartPE img files and found they had no problems. Then I renamed the old gz files so that they still took up the bad disk surface and re-gzipped the LaoMaoTao and BartPE img files once again. Then they were ok.
回复

使用道具 举报

36#
发表于 2007-8-23 11:32:38 | 只看该作者
往50.dsk添加文件用VDM行吗,我照这做,蓝屏了。。。郁闷。。。^_^
回复

使用道具 举报

37#
 楼主| 发表于 2007-8-23 12:09:48 | 只看该作者
添加文件可以啊,我就是用VDM添加的。你是如何添加的,有可能你添加的文件造成的。蓝屏提示是什么?
0XNNNNNNNNN之类的。
回复

使用道具 举报

38#
发表于 2007-8-23 12:55:10 | 只看该作者
也是0x0000007b啊,正在重新做。。。^_^
回复

使用道具 举报

39#
发表于 2007-8-23 14:45:56 | 只看该作者
FAT换成FAT32启动成功ING。。。。^_^
回复

使用道具 举报

40#
发表于 2007-8-23 16:12:50 | 只看该作者
我试了一下,用da也可以启动故障恢复控制台,把wdsys.sys拷入cmdcons文件夹,然后在txtsetup.sif中的
[ScsiClass.Load]段最后加上wdsys = wdsys.sys
[ScsiClass]段最后加上wdsys = "   " (引号里随便填写什么)

顺便问一下,试用版的da对于故障恢复控制台有没有1小时限制?
回复

使用道具 举报

41#
 楼主| 发表于 2007-8-23 16:59:32 | 只看该作者
谢谢WINDRV的提醒。我是采用QEMU测试的,可能和我系统上装的还原软件有关。关了还原软件重启一下,现在又试了几次竟然全部成功了。
都是map --mem加载的。
grub是21日的版本。
使用MEMDISK启动还没有成功,继续测试.
回复

使用道具 举报

42#
发表于 2007-8-23 17:13:15 | 只看该作者
原帖由 fujianabc 于 2007-8-23 04:12 PM 发表
我试了一下,用da也可以启动故障恢复控制台,把wdsys.sys拷入cmdcons文件夹,然后在txtsetup.sif中的
[ScsiClass.Load]段最后加上wdsys = wdsys.sys
[ScsiClass]段最后加上wdsys = "   " (引号里随便填写什么 ...

顺便问一下,试用版的da对于故障恢复控制台有没有1小时限制?


You could try it out yourself. But if it runs on PE, then it is supposed to be no such limit.
回复

使用道具 举报

43#
 楼主| 发表于 2007-8-23 19:30:15 | 只看该作者
又有问题了.制作的IMG文件在无硬盘状态下,可以启动成功,在有硬盘状态下启动就失败0X0000007B.这又是为何?
用QEMU和实机测试都是如此.

原来我之前的测试是在QEMU中无加载硬盘的情况下试的,都可以用,后来加了一个硬盘镜像进行不行了.

但是我传到FTP上的那个却还是可以用.

真晕,忘了我之前那个是如何做出来的了,用这个启动都是成功的......
回复

使用道具 举报

44#
发表于 2007-8-23 19:36:57 | 只看该作者
原帖由 chenall 于 2007-8-23 07:30 PM 发表
又有问题了.制作的IMG文件在无硬盘状态下,可以启动成功,在有硬盘状态下启动就失败0X0000007B.这又是为何?
用QEMU和实机测试都是如此.

原来我之前的测试是在QEMU中无加载硬盘的情况下试的,都可以用,后来加了 ...

的确,我在尝试故障恢复控制台时也是大部分蓝屏,偶尔能做出一个不蓝屏的img,就一直用它了。
回复

使用道具 举报

45#
 楼主| 发表于 2007-8-23 23:56:51 | 只看该作者
经过测试后的结果.
请windrv试下.

基于分区的IMG文件(分区镜像),在无硬盘情况下可正常启动,如果系统中有硬盘启动就会出错.

基于磁盘的IMG文件(硬盘镜像).有没有硬盘都没有影响.都可以启动.

别外我试过成功率比较高的制作方法(比较麻烦)需要有QEMU
1.利用QEMU-IMG.EXE创建一个所需大小的IMG文件.例子,创建50MB大小的IMG文件.
qemu-img -create winpe.img 50M
2.用QEMU加载这个IMG文件和一个可启动带分区工具的软盘镜像.
利用软盘镜像中的分区工具给这个新建的磁盘进行分区格式化操作.
3.在WINDOWS中加载这个IMG文件,为一个盘符.
将需要的文件复制过去就OK了.

一般情况下都可以启动成功.

另外.

修改TXTSETUP.SIF,只在
[ScsiClass.Load]
中添加一句
wdsys=wdsys.sys

也可以.
回复

使用道具 举报

46#
发表于 2007-8-24 07:39:29 | 只看该作者
MS上面的方法比用无盘麻烦很多啊。。。^_^
回复

使用道具 举报

47#
发表于 2007-8-24 09:38:30 | 只看该作者
@chenall,

Could you please give links for us to download the dsk image that works and img image that does not work so that we could try on our machines.

Thanks a lot!

But I think the question is more related to the hard disk present rather than img or dsk image files.
回复

使用道具 举报

48#
发表于 2007-8-24 10:33:16 | 只看该作者
I have just sorted out the question and think that we might have found the problem.

I have just formatted a partition image file in FAT32 and turned it into a memdisk compatible format for use as follows:

title booting PE in FAT32 dsk under memdisk raw
kernel (hd0,0)/memdisk raw
initrd (hd0,0)/lmt32.dsk
boot

Then lmt pe comes out.

So the first problem is with map --mem that has been discussed at the above said link plausibly on A20 in sysoft forum.

The second problem is with NTFS format, whether compressed or not. That is if I change the image from FAT32 to NTFS format, it reports an error of:

missing file <Windows>/system32/hal.dll.

So probably, when the bootfile: setupldr.bin boots up and found that the boot-up drive is in NTFS, it checks something and reports the above error. This problem is not solved even when I copy the hal.dll to the minint/system32 from my hard disk system.

Please note that this problem is for machines where now map --mem does not work for WinPE; and that memdisk has to be used.

And if you want to use memdisk for using our driver, please go to our website and download a memdisk compatible version from inside the wmkiso_bin package.

VistaPE has no such problem.

May be you can try on your side.

[ 本帖最后由 windrv 于 2007-8-24 10:40 AM 编辑 ]
回复

使用道具 举报

49#
 楼主| 发表于 2007-8-24 10:49:48 | 只看该作者
http://my.mofile.com/chenall
里面Winpe.rar
WINPE.DSK是一个磁盘镜像.
winpe.img是从WINPE.DSK中提取的分区镜像.

我使用QEMU测试时,如果无硬盘状态下都可以启动.
如果有硬盘那WINPE.IMG就不可以启动.

实机测试也是如此.
回复

使用道具 举报

50#
发表于 2007-8-24 11:12:44 | 只看该作者
Please try the solution outlined at #48

And check your email. :)
回复

使用道具 举报

51#
发表于 2007-8-24 12:32:23 | 只看该作者
能启动,但提示 wdsys.sys 没有找到,我明明已经 COPY TO drivers 里了,不解...
回复

使用道具 举报

52#
 楼主| 发表于 2007-8-24 14:42:18 | 只看该作者
试了,确实如此.如48#

NTFS还没有试.
回复

使用道具 举报

53#
 楼主| 发表于 2007-8-24 14:44:17 | 只看该作者
原帖由 yjliu668 于 2007-8-24 12:32 PM 发表
能启动,但提示 wdsys.sys 没有找到,我明明已经 COPY TO drivers 里了,不解...


需要修改TXTSETUP.SIF文件.在scsiclass.load段后面添加一行
wdsys=wdsys.sys
回复

使用道具 举报

54#
发表于 2007-8-24 15:01:30 | 只看该作者
不错不错,觉得无盘直接用xp就好了
回复

使用道具 举报

55#
发表于 2007-8-24 15:47:45 | 只看该作者
Please see http://windrv.net/viewthread.php?tid=16&page=1&extra=page%3D1 for further solutions.

It is now found that

1. the 07 blue screen of death is due to map --mem bug; the existing solution is to use memdisk raw

2. when memdisk raw is used, the grldr.mbr patched into winpe.dsk cannot identify the ntfs partition for loading the boot file; so the ntldr on the boot-up drive is called, resulting in the missing hal.dll problem; the existing solutions are discussed in the above link.

Hopefully these 2 small bugs, one inside grldr.mbr and one inside grldr are to be removed in future so that we could spare the aforesaid trouble.

Chinese translation for the above link will soon appear in the Chinese section of Bean Forum at http://windrv.net

[ 本帖最后由 windrv 于 2007-8-24 03:48 PM 编辑 ]
回复

使用道具 举报

56#
发表于 2007-8-24 16:18:15 | 只看该作者
谢谢 chenall !
[scsiclass.load] 和 [scsi.load] 段都填吗?
回复

使用道具 举报

57#
 楼主| 发表于 2007-8-24 17:39:15 | 只看该作者
原帖由 yjliu668 于 2007-8-24 04:18 PM 发表
谢谢 chenall !
[scsiclass.load] 和 [scsi.load] 段都填吗?

只需在[scsiclass.load] 后加就可以了.
可以查找ramdisk
加在ramdisk=xxxxx.sys
后面即可.
回复

使用道具 举报

58#
发表于 2007-8-24 18:04:32 | 只看该作者
@chenall

Please see:

http://www.znpc.net/bbs/viewthre ... page%3D1&page=3

If possible, please test this on your side and see if it works by typing on the grub command prompt for loading gz file of img partition image in compressed ntfs format.
回复

使用道具 举报

59#
 楼主| 发表于 2007-8-24 18:43:21 | 只看该作者
NTFS压缩的磁盘镜像用grub4dos 8.24启动成功,分区镜像失败还是0X0000007B错误.
map --mem /test.dsk (hd0)  /map --mem /test.gz (hd0)
map --hook
root (hd0,0)
chainloader /ntldr
boot

memdisk无法启动ntfs磁盘/分区镜像.
回复

使用道具 举报

60#
发表于 2007-8-26 18:45:45 | 只看该作者
密切关注楼主的进展
顶楼主一个
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-6-17 18:42

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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