zoukankan      html  css  js  c++  java
  • 抛弃优启Grub4dos和PE大多数时间可以这样用

    在能够进入Windows的情况下,Grub4dos和PE大多数时间可以这样用

    https://pan.baidu.com/s/1c1ZYNDY#list/path=%2F
    Grub4dos的出现颠覆了传统的EZBOOT光盘启动模式,很多人用grub4dos来实现优盘启动,同时grub4dos能够安装到本地硬盘上,启动WINPE。看到电脑城维修员经常用USB启动电脑,ghost安装系统,优盘换来换去,时常感到很纳闷,电脑本来能够进入Windows,为什么不直接从硬盘启动PE,而一定要格式化之后从优盘启动PE?
    我的办法很简单,进入windows,用bootice把grub4dos写入MBR,把grldr和grldr.mbr拷贝到任何一个非系统盘,同目录下编辑通用菜单menu.lst,菜单项包括启动本地windows NT5.x和NT6.x,启动各种PE等等。把Grub4dos写入本地硬盘MBR的好处是,在PE下ghost安装系统到C盘,如果安装过程出现蓝屏等异常情况,可以继续从非系统盘的硬盘进入PE,重新安装系统。当然如果你不喜欢Grub4dos为第一启动项,可以修改boot.ini或者BCD菜单,用ntldr/bootmgr作为第一引导,引导grldr,然后引导PE。
    一般地来说,一个硬盘重新分区不过1~2次,即使是新系统,很多也预装了windows,只要能够进入windows,就能够从硬盘直接启动PE。
    我常用Uepon的通用PE,以通用PE为例,目录结构如下:(以F盘为例)

    X:
    │ grldr
    │ grldr.mbr
    │ menu.lst
    ├─BOOT(Legacy BIOS启动用)
    │ ├─BOOTICE(存放bootice工具)
    │ ├─FbinstTool(存放FbinstTool工具)
    │ ├─imgs(存放PE的ISO镜像文件,各种软件img镜像文件)
    │ ├─grub(内有grldr.*、menu.lst的备份,批处理会自动把备份拷贝到根目录,还存放sratlf的run模块和网启服务器tftpd32.*)
    │ └─pxelinux.cfg(存放pxelinux默认菜单default)


    为了方便,我用写了几个批处理文件,快速地安装PE到不同分区。
    把WINPE镜像及其他引导工具拷贝到C盘.bat
    在boot.ini中增加grub4dos启动项(WIN7右击用管理员身份运行!!!)
    在BCD文件中增加grub4dos启动项.bat
    删除boot.ini中grub4dos启动项.bat
    ......

    menu.lst内容如下:
    color white/blue blue/yellow light-red/blue 10
    foreground FFFFFF
    background 0000AD
    timeout 1
    default 0

    title boot Windows by zhaohj
    find --set-root --devices=h /ntldr || find --set-root --devices=h /bootmgr
    map () (hd0)
    map (hd0) ()
    map --rehook
    find --set-root --devices=h /ntldr || find --set-root --devices=h /bootmgr
    #rootnoverify (hd0,0)
    chainloader /ntldr || chainloader /bootmgr

    title WINPE by uepon (TonPE_V3.3.iso+firadisk)
    find --ignore-floppies --ignore-cd --set-root /boot/imgs/firadisk.img
    map --mem /boot/imgs/TonPE_V3.3.iso (0xff)
    map --e820cycles=-1
    map --hook
    chainloader (0xff)

    title tongyong WINPE by Uepon (TonPE.iso)
    find --ignore-floppies --ignore-cd --set-root /boot/imgs/firadisk.img
    map --mem /boot/imgs/firadisk.img (fd0)
    map --mem /boot/imgs/TonPE.iso (0xff)
    map --e820cycles=-1
    map --hook
    chainloader (0xff)

    title tongyong WINPE by Uepon (TonPE_net.iso+firadisk)
    find --ignore-floppies --ignore-cd --set-root /boot/imgs/firadisk.img
    map --mem /boot/imgs/TonPE_net.iso (0xff)
    map --e820cycles=-1
    map --hook
    chainloader (0xff)

    title ghost by doshome
    find --ignore-floppies --ignore-cd --set-root /boot/imgs/firadisk.img
    map --mem /boot/imgs/ghost.img (fd0)
    map --hook
    chainloader (fd0)+1
    root (fd0)

    title run mem automenu by sratlf
    command run --set-showsize=0 --e820cycles=-1 --mem --automenu --show.iso

    title run fira automenu by sratlf
    command run --set-showsize=0 --e820cycles=-1 --mem --fira --automenu --show.iso

    title plpbt.bin
    kernel (bd)/boot/grub/plpbt.bin

    title Boot from pxelinux
    pxe keep
    chainloader --raw (bd)/pxelinux.0
    #chainloader --force (bd)/pxelinux.0

    title WINPE (startrom.0)
    pxe keep
    chainloader --force (bd)/startrom.0

    title boot from hard disk
    checkrange 0x80 read 0x8280 && map (hd1) (hd0)
    checkrange 0x80 read 0x8280 && map --hook
    chainloader (hd0)+1
    boot

    title command line
    commandline

    title reboot
    reboot

    title halt
    halt

  • 相关阅读:
    【转载】为什么CPU有多层缓存
    【转载】二叉树的基本概念和实现
    【转载】如何系统地自学 Python?
    【原文】前端程序员必须知道的高性能Javascript知识
    【转载】重磅!中国人工智能/机器人/无人机创业公司100 | 智能内参
    【转载】分析重装系统也无法清除的鬼影病毒
    【转载】UML类图知识整理
    【转载】.NET程序员走向高端必读书单汇总
    【转载】齐次坐标的理解
    59. Spiral Matrix II
  • 原文地址:https://www.cnblogs.com/liuzhaoyzz/p/4388357.html
Copyright © 2011-2022 走看看