U盘版 Backtrack 4 安装
一、内容说明
该安装法是真正的U盘版,而不是Live CD to U盘,可以保存你的任何修改设置。该安装法其实就是根据官网上所提供的视频修正了他操作中错误的地方。
二、安装流程
首先下载bt4-pre-final.iso spoonwep-wpa-rc3.rar VMware-workstation-6.5.2
注:2-7步骤的目的是虚拟出一个系统然后光驱启动该系统进入BT4 LiveCD,如果你已经刻录了ISO,可以跳过2-7步骤,直接开机光驱引导进入LiveCD
安装VMware-workstation-6.5.2或以上的版本,New Virtual Machine 然后next
选择Installer disc image file(iso),点击browse,选择你的bt4-pre-final.iso next
haven.he
Guest operation system选择Linux,Version选择Ubuntu,next
haven.he
Virtual machine name 随便取个名字,Location 选择一个你想存放的路径,next
haven.he
Maximum disk size 设小一点就好因为我们根本不用它,next
haven.he
直接Finish
haven.he
虚拟机会以光驱引导方式启动,进入BT4启动选择界面,直接回车后
进入命令行界面,输入startx启动图形化界面
haven.he
插入你的u盘后,点击虚拟机右下角的USB图标Connect
打开一个shell ,在左下角工具栏第四个黑色的就是。准备开始真正的安装步骤了。
haven.he
输入dmesg | grep sd 回车
这是查看你的存储设备的信息,你会看到如下的信息,一般情况下[sda]就是你的虚拟硬盘,[sdb]就是你的u盘,如果不是请你记住你U盘的设备号,之后的操作全部使用你自己的设备号
haven.he
fdisk /dev/sdb 格式化U盘
Command (m for help): d Partition number (1-4): 1
d删除分区,1表示第一个区,如果你有多个区请依次删除,如果你的U盘之前没有装过其他系统可以跳过这步
haven.he
Command (m for help): n Command action e extended p primary partition (1-4) p
Partition number (1-4): 1
First cylinder (1-522, default 1): Using default value 1Last cylinder, +cylinders or +size{K,M,G} (1-522, default 522): +1500M
n创建分区,p主分区,1第一个分区,回车,+1500M 分配1.5G的空间
haven.he
Command (m for help): n Command action e extended p primary partition (1-4) p
Partition number (1-4): 2
First cylinder (193-522, default 193): Using default value 193Last cylinder, +cylinders or +size{K,M,G} (193-522, default 522): Using default value 522n创建分区,p主分区,2第二个分区,回车,回车分配剩下的所有空间
haven.he
Command (m for help): t Partition number (1-4): 1
Hex code (type L to list codes): b
Changed system type of partition 1 to b (W95 FAT32) t设置分区格式,1第一个分区,b win95 FAT32格式
Command (m for help): t Partition number (1-4): 2
Hex code (type L to list codes): 83
t设置分区格式,2第二个分区,83 linux格式
haven.he
Command (m for help): a Partition number (1-4): 1 Command (m for help): w
a激活分区,1第一个分区,w使之生效
haven.he
mkfs.vfat /dev/sdb1
mkfs.ext3 -b 4096 -L casper-rw /dev/sdb2 格式化分区
mkdir /mnt/sdb1
mount /dev/sdb1 /mnt/sdb1 cd /mnt/sdb1
rsync -r /media/cdrom0/* .
加载分区一,并复制光盘内的系统进U盘,整个过程大概几分钟,请耐心等待
haven.he
grub-install –no-floppy –root-directory=/mnt/sdb1 /dev/sdb 安装grub
cd /mnt/sda1/boot/grub vi menu.lst
# change the default line below to ‘default 4′ and append ‘vga=0×317′ (that’s a zero) to the kernel line to set the resolution to 1024×768
# By default, boot the first entry. default 4 . . .
title Start Persistent Live CD root (hd0,0)
kernel /boot/vmlinuz BOOT=casper boot=casper persistent rw quiet vga=0×317
initrd /boot/initrd.gz
:wq
红色部分为需要修改的内容。如果在linux下不会修改文件的话可以关闭虚拟机,在windows下用记事本打开u盘目录下E:\\boot\\grub\\menu.lst 文件进行修改,注意千万不要把文件转换到DOS格式
haven.he
整个安装过程已经全部完成,这时可以重新启动电脑从USB引导进入BT4了。
haven.he