转载于http://m.aichengxu.com/diannao/24639706.htm
看到好文章要及时分享!
基本上可以照着上面的教程一步一步做。但是我在实操时会碰到很多的问题。
教程中要用到的软件,网上都有。建议去官网下载。都是free的。文章最后附上链接。
在使用win32diskmager和ghost32上基本上没有问题。
使用bootice时对我们这种小白来说难免会有疑惑,命名加了主引导记录可为什么在文件系统中看不见呢!如果了解操作系统的同学,应该知道。
这里我不做解释,教程上说将menu.lst和GRLDR两个文件移入U盘的第一分区ntfs。(其实U盘的第一分区也可以是FAT32,由于我的U盘支持otg功能,如果是NTFS,通常手机识别不了,就算可以识别,也非常容易造成U盘的损坏。我可不想OTG功能被浪费了),但是我们并没有看到这两个文件。
我们可以下载一个grub4dos,将GRLDR拷贝出来即可,另外的menu.lst就需要自己手动敲,或者复制粘贴。
配置好这两个文件之后。(System V~~~,这个文件不用管它,我的系统自动生成,不知道什么东西),另外说一下,我刚开始按着教程来写menu.lst文件,最后能正确引导进kali persistence 但是却怎么也引导不进PE,随后百度,多次尝试后解决问题。如果同学也遇到相同的问题,可以参考我的代码。(看我人多好,省的你们撸代码了)
color blue/green yellow/red white/magentawhite/magenta
timeout 30
## menu border color
color border=0xEEFFEE
## set vbe mode
##graphicsmode -1 640 480:800
## loading splashimage
##splashimage /boot/grub/splashimage.xpm ||
splashimage /boot/grub/splashimage.bmp
default 0
## Menu AutoNumber
##write 0x8274 0x2001
title open PE system
fallback 0
find --set-root /iso/xiaoniuPE.iso
##map /iso/xiaoniuPE.iso (0xff) ||
map --mem /iso/xiaoniuPE.iso (0xff)
##map --men /iso/xiaoniuPE.iso (0xff) ! map
##/iso/xiaoniuPE.iso (0xff)
##map --e820cycles=0
map --hook
chainloader (0xff)
title parrot(persistence)
find --set-root /g2ldr.mbr
kernel /live/vmlinuz boot=livenoconfig=sudo
username=root hostname=kali persistence
initrd /live/initrd.img
##boot
title Boot the HD
rootnoverify (hd1,0)
makeactive
chainloader +1
title parrot live
find --set-root /g2ldr.mbr
kernel /live/vmlinuz boot=livenoconfig=sudo
username=root hostname=kali
initrd /live/initrd.img
title parrot(failsafe)
find --set-root /g2ldr.mbr
kernel /live/vmlinuz boot=live config
memtest noapic noapm nodma nomce nolapic
nomodeset nosmp nosplash vga=normal
initrd /live/initrd.img
title parrot(forensic mode)
find --set-root /g2ldr.mbr
kernel /live/vmlinuz boot=livenoconfig=sudo
username=root hostname=kali noswap
noautomount
initrd /live/initrd.img
title parrot install
find --set-root /g2ldr.mbr
kernel /install/gtk/vmlinuz vga=788 --quiet
initrd /install/gtk/initrd.gz
title parrot install(graphical)
find --set-root /g2ldr.mbr
kernel /install/gtk/vmlinuz
video=vesa;ywrap,mtrr vga=788 -- quiet
initrd /install/gtk/initrd.gz
title parrot install(with speech synthesis)
find --set-root /g2ldr.mbr
kernel /install/gtk/vmlinuz
video=vesa;ywrap,mtrr vga=788
speakup.synth=soft -- quiet
initrd /install/gtk/initrd.gz
title GRUBLine
savedefault --wait=2
commandline
title reboot reboot
title shutdown halt
\00
我们就需要重启电脑,修改BIOS,从U盘启动,他会引导进一个十分丑的界面,选择kali persistence (kali默认用户名root ,密码toor)
照着教程做。注意了。有些地方是有空格的。这几条命令可以百度一下。创建,挂载,写入,卸载。
最后大功告成!
Ps:U盘被折腾了这么久,不知道会不会折寿,建议没事别瞎搞。
附上几张图: