你是否为制作的U盘启动的BT4最终版不能保存你安装的程序,设置的硬件,安装的汉化补丁而烦恼不已。
按bt4官方介绍的办法绝对可以达成你要求,制作出一个全新的,可保持更改、更新和设置的BT4。
1.
下载bt4-pre-final.iso
地址:http://mirror.switch.ch/ftp/mirror/backtrack/bt4-pre-final.iso
2.
用unetbootin-windows-356.exe安装工具制作U盘启动的BT4最终版(见相关介绍)
3.
从U盘(也可以从你制作光盘版或硬盘版)启动BT4最终版
4.
将另1张4G以上的U盘插入USB接口
5.
点击BT4开始菜单,进入”System-Partition Editor”:
6.
在右上角磁盘选择中选中你新插入的U盘(此处注意你的U盘盘符是sdb还是sdc,一般从光盘版或硬盘版启动BT4,应是sdb,从U盘启动就是sdc),删除新插入U盘的所有分区,点击:“APPLY”,完成后退出partition editer。
7.
开一个”shell:”,按下列指令操作(蓝色部分为输入指令,根据你新插入的U盘的盘符将指令中的所有”sdb”改为你U盘的盘符。Enter指回车键。
fdisk /dev/sdb
command (m for help): p
Disk /dev/sdb:4103 MB 4103938560 bytes
127 heads, 62 sectors/track,1017 cylinders
units = cylinders of 7874 * 512 = 4031488 bytes
Disk identifier: 0x6f20736b
Device Boot Start End Blocks Id System
command (m for help): n
comand action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1- 1017, default 1): Enter
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1- 1017, default 1017): +1500M
Command (m for help):n
Command action
e extended
p prtition (1-4)
p
prtition number (1-4):2
First cylinder (392-1017, default 392): enter
Using default value 392
Last cylinder, +cylinders or +size{K,M,G} (392- 1017, default 1017): +1500M
或enter
Command (m for help):a
Partition number (1-4): 1
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
Command (m for help):p
Disk /dev/sdb:4103MB,4103938560 bytes
127heads,62 sectors/track,1017 cylinders
Unts = cylinders of 7874*512 = 4031488 bytes
Disk identifier:0*6f20736b
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 391 1539336 b W95 FAT32
/dev/sdb2 392 782 1539367 83 Linux
Command (m for help):w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING:If you have created or modified any DOS 6.x
partition,please see the fdisk manual page for additional information
Syncing disk.
mkfs.vfat -F 32 -n BT4 /dev/sdb1
mkfs.vfat 2.11 (12 Mar 2005)
mkfs.ext3 -b 4096 -L casper-rw /dev/sdb2
mke2fs 1.41.3 (12-oct-2008)
Filesystem label=casper-rw
OS type Linux
Block size=4096 (log=2)
96384 inodes,384841 blocks
19242 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=394264576
12 block groups
32768 blocks per group,32768 fragments per group
8032 iondes per group
Superblock backups stored on blocks:
32768,98304,163840,229376,294912
Writing inode tables:done
Creating journal (8192 blocks):
mkdir /mnt/sdb1
mount /dev/sdb1 /mnt/sdb1
rsync -avh /media/cdrom/ /mnt/sdb1/
sending incremental file list
……
total size is 1.32 speedup is 1.00
grub-install --no-floppy --root-directory=/mnt/sdb1 /dev/sdb
……
nano /mnt/sdb1/boot/grub/menu.lst
将第2行
"default 0"
改为"default 4"
在”title Start Persistent Live CD下1行的末尾”
rw quiet
后面加上””vga=0
x317”
然后,按”Ctrl+o”保存修改,然后按”Enter”,再按” Ctrl+x”退出。
最后,输入:
umount /mnt/sdb1/
至此大功告成,退出BT4,关机,只保留新制作的U盘插在电脑,开机从U盘启动。
出现菜单时,选择以Live CD模式启动(系统默认),启动完成后输入“startx”回车,一个全新的,可保持更改、更新和设置的BT4就出现在你的面前了。