default 0
timeout 5
color yellow/blue
title 1KEY GHOST v8.3
map --mem /boot/ghos/ghost83.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title pe(fd0)
root (fd0)
chainloader /PELDR
title pe(hd0,0)
root (hd0,0)
chainloader /PELDR
title pe(hd1,0)
root (hd1,0)
chainloader /PELDR
title DOS
root (fd0)/RDOS.IMG
map --mem /RDOS.IMG (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
map --floppies=1
title Boot From NT Loader
find --set-root /NTLDR
chainloader /NTLDR
title Grub Command Line
commandline
title Reboot Computer
reboot
title Shutdown
halt
So, let's say that you have (besides your /Windows or whatever folder) the files on the stick:
NTLDR
NTDETECT.COM
BOOT.INI
and that you can see (boot normally) the BOOT.INI choices.
Now add to boot.ini a line like:
C:\grldr="Grub4Dos"
Download from here:
http://grub4dos.jot.com/WikiHome
0.4.2pre9:
http://grub4dos.jot.com/WikiHome/grub_for_dos-0.4.2pre9.zip
Extract from the zip:
grldr
menu.lst
and copy them to the stick.
Boot from the stick, choose the grub4dos entry in boot.ini, you should get to the Grub boot menu.
Now press c (for command line) and input
find ( tab
the above is "find"+[SPACE]+open left parenthesis+[TAB]
You should have a result like:
Possible drives are (fd0) (cd) (rd)
Try pressing f [TAB], it should autocomplete to
find (fd0)
add a / (slash) and press [TAB] again, it should autocomplete to something like to
Possible files are: NTLDR, NTDETECT.COM, BOOT.INI, grldr, menu.lst,....
The above is to make sure that the stick is seen as first floppy (fd0) and you have NO hard disks connected.
Now input this commands (press [ENTER] at the end of each line:
map --read-only (fd0) (hd0,0)
map --hook
chainloader (hd0,0)/NTLDR
boot
You should get again to the BOOT.INI choice, try this time booting the "normal" windows entry.
Report what happens.
It's just an idea, mind you , but we are trying to fool NTLDR and NTDETECT.COM that the stick is first hard disk (hd0,0) instead of floppy (fd0).
2、然后用cat --hex找到u盘的起始扇区未知,
3、再用map命令映射
原帖由 kohain 于 2007-11-25 07:56 PM 发表
63扇区
序列号:
模型:
柱面: 0x0000007C 124
磁头: 0x000000FF 255
扇区/磁道: 0x0000003F 63
物理扇区: ...
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net./) | Powered by Discuz! X3.3 |