Feelings

I am sailing ...

  • Increase font size
  • Default font size
  • Decrease font size
首页 日志 学习笔记 从硬盘启动Windows PE

从硬盘启动Windows PE   分享到新浪微博  

E-mail Print
User Rating: / 0
PoorBest 

这个就不是启动后将镜像加载到内存中了,而是真正在硬盘上运行Windows PE。

步骤1:创建可启动的Windows PE介质

参考“创建可启动的Windows PE介质 ”一文。

步骤2:准备硬盘

1、插入Windows PE启动介质,启动系统,进入Windows PE的命令行运行窗口。

2、用diskpart格式化磁盘,硬盘容量需要比镜像文件大

diskpart
select disk 0
clean
create partition primary size=
select partition 1
active
format fs=ntfs
exit

步骤3:复制Windows PE源文件到硬盘

复制完资源文件后,还要进行以下操作

1、用ImageX将可启动介质的Boot镜像文件应用到硬盘

d:\\imagex /apply d:\\sources\\boot.wim 1 c:

d代表启动介质的盘符

2、复制boot目录到硬盘根目录

xcopy d:\\boot\\*.* /e /f c:\\boot\\

3、复制bootmgr文件到硬盘根目录

copy d:\\bootmgr c:

4、删除启动配置数据文件(boot configuration data,BCD)

del c:\\boot\\bcd

步骤4:配置新的BCD

BCD替代了原来Windows系统采用的boot.ini文件

Bcdedit –createstore c:\\temp\\BCD
Bcdedit –store c:\\temp\\BCD –create {bootmgr} /d “Boot Manager”
Bcdedit –store c:\\temp\\BCD –set {bootmgr} device boot
Bcdedit –store c:\\temp\\BCD –create /d “WINPE” –application osloader
Bcdedit –import c:\\temp\\BCD

最后一个命令执行完会返回一个GUID值,在下面的命令中用这个值替换GUID

Bcdedit –store c:\\boot\\BCD –set GUID osdevice partition=c:
Bcdedit –store c:\\boot\\BCD –set GUID device partition=c:
Bcdedit –store c:\\boot\\BCD –set GUID path \\windows\\system32\\winload.exe

Bcdedit –store c:\\boot\\BCD –set GUID systemroot \\windows

Bcdedit –store c:\\boot\\BCD –set GUID winpe yes
Bcdedit –store c:\\boot\\BCD –set GUID detecthal yes

Bcdedit –store c:\\boot\\BCD –displayorder GUID -addlast

如果要想从光盘和U盘启动运行Windows PE,则需要修改步骤4中的两个地方,将partition=c:修改为partition=boot,然后重新创建ISO,或者将源文件复制到U盘。

 


琴声再起 - 赵伟戍 & 吴昊

In order to view this object you need Flash Player 9+ support!

Get Adobe Flash player

Powered by RS Web Solutions

In order to view this object you need Flash Player 9+ support!

Get Adobe Flash player

Powered by RS Web Solutions

弟兄们,还记得小兔子和昊子的吉他组合么?一起来听听当年他们的歌声吧!


Joomla 1.5模板