|
3#
楼主 |
发表于 2012-9-10 10:40:39
|
只看该作者
哦,不点老师来了啊。感谢。
是这样。多年的一个U盘,很小128M。所以,只用的是dos引导。U盘格成dos引导。
config.sys
[menu]
menuitem=GRUB,Boot GRUB to Start Windows PE
menuitem=NOCD1,Boot Without CD-ROM Support. [UMBPCI+RealMode]
menuitem=IDE_SATA_CD1,Boot With IDE/SATA CD-ROM Support. [UMBPCI+RealMode]
menuitem=SCSI_USB_CD1,Boot With SCSI/USB CD-ROM And USB Support. [UMBPCI+RealMode]
menuitem=PCMCIA_CD1,Boot With PCMCIA CD-ROM And USB Support. [UMBPCI+RealMode]
menuitem=1394_CD1,Boot With 1394-Firewire CD-ROM And USB Support.[UMBPCI+RealMode]
SUBMENU=1,Boot With EMM386 (NOEMS). [EMM386+Protected Mode]
menudefault=NOCD1,20
menucolor=7,0
[1]
menuitem=NOCD2,Boot Without CD-ROM Support. [EMM386+Protected Mode]
menuitem=IDE_SATA_CD2,Boot With IDE/SATA CD-ROM Support. [EMM386+Protected Mode]
menuitem=SCSI_USB_CD2,Boot With SCSI/USB CD-ROM And USB Support. [EMM386+Protected Mode]
menuitem=PCMCIA_CD2,Boot With PCMCIA CD-ROM And USB Support. [EMM386+Protected Mode]
menuitem=1394_CD2,Boot With 1394-Firewire CD-ROM And USB Support.[EMM386+Protected Mode]
menudefault=NOCD2,20
menucolor=7,0
...
...
...
...
[GRUB]
DEVICE=dos\HIMEM.SYS /TESTMEM:OFF
[COMMON]
SHELL=COMMAND.COM /P /E:1024
DOS=HIGH,UMB,AUTO
FCBSHIGH=8,0
FILESHIGH=30
BUFFERSHIGH=30,0
STACKSHIGH=9,256
LASTDRIVEHIGH=Z
autoexec.bat
SET RAMD=R:
if "%comspec%"=="C:\COMMAND.COM" set SysDrive=C:
if "%comspec%"=="A:\COMMAND.COM" set SysDrive=A:
REM 在内存中虚拟5M的磁盘空间
%SysDrive%\dos\xmsdsk.exe 5020 %RAMD% /y /t >NUL
copy %SysDrive%\DOS\COMMAND.COM %RAMD% >NUL
copy %SysDrive%\dos\extract.exe %RAMD% >NUL
MD %RAMD%\temp
SET temp=%RAMD%\temp
SET tmp=%RAMD%\temp
PATH=%SysDrive%\;%SysDrive%\dos;%SysDrive%\dos\menu;%SysDrive%\dos\tw;%SysDrive%\dos\ghost;%SysDrive%\dos\diskgen;%RAMD%
IF "%config%"=="NOCD1" GOTO COMMON
IF "%config%"=="NOCD2" GOTO COMMON
IF "%config%"=="IDE_SATA_CD1" GOTO IDE_SATA_CD
IF "%config%"=="IDE_SATA_CD2" GOTO IDE_SATA_CD
IF "%config%"=="SCSI_USB_CD1" GOTO SCSI_USB_CD
IF "%config%"=="SCSI_USB_CD1" GOTO SCSI_USB_CD
IF "%config%"=="1394_CD1" GOTO 1394_CD
IF "%config%"=="1394_CD2" GOTO 1394_CD
IF "%config%"=="PCMCIA_CD1" GOTO PCMCIA_CD
IF "%config%"=="PCMCIA_CD2" GOTO PCMCIA_CD
IF "%config%"=="GRUB" GOTO GRUB
...
...
...
:GRUB
%SysDrive%\boot\grub\GRUB.EXE --config-file=(fd0)/boot/grub/menu.lst
[ 本帖最后由 compass 于 2012-9-10 10:41 编辑 ] |
|