準備隨身碟或記憶卡(4G以上容量):
1.以【HP USB Disk Storage Format Tool】格式化為 Fat32 (僅可格式化全區,即全部的隨身碟,所以不要先做分割的動作)。
2.以【grubinst_gui.exe】將GRUB4Dos寫入隨身碟之MBR。
註:使用 grubinst_gui.exe 時,必需要有 grubinst.exe 同時存在,否則會產生(Can't run the background program)的錯誤訊息,而無法執行!
執行 grubinst_gui.exe 後,設定如下:
‧Disk:請選擇您的 USB 隨身碟,記得要選對!
‧然後勾選下面三項
No Backup MBR
Don't search floppy
Disable PrevMBR
3.以【Parted Magic】分割為兩磁區
《1》開機執行區即原來的全區縮小化
《2》儲存備份區約500M大小亦格式化為 Fat32
4.拷貝【萬用快樂碟】所有資料匣及檔案至隨身碟之開機執行區。
註:grldr 196.2k 此為中文版,需拷貝至隨身碟之根目錄。
5.完成!
儲存使用設定:
【BackTrack3】
必需分割出另一 partition 來儲存,而且格式必需為 ext2 或 ext3。
menu.lst 設定如下:
-----------------------------------------------
title BT3 Graphics mode with Persistent Changes
kernel /Bt3/vmlinuz vga=0x317 ramdisk_size=6666 root=/dev/ram0 rw changes=/dev/sdb2 autoexec=xconf;kdm
initrd /Bt3/initrd.gz
-----------------------------------------------
註:sdb2 有可能是 sdb3 或 sdc2 ……等,依個人情況而定。
【Knoppix B2DpureKGB】
開機參數應設為 myconfig=/mnt/sda2 ,而不能設為程式告知的 "R myconfig=/media/sda2"
e.g.
title Knoppix B2DpureKGB 2007-03-09
root (hd0,0)
kernel (hd0,0)/knoppix/linux26 ramdisk_size=100000 init=/etc/init lang=tw apm=power-off vga=788 nomce quiet BOOT_IMAGE=root myconfig=/mnt/sda2
initrd (hd0,0)/knoppix/minirt26.gz
【Parted Magic】
Start→Logout→Save Session
【PUD GNU/Linux (LXDE)】
若要儲存在同一USB碟內,必需分割出另一 partition 來儲存。因為同一 partition 設為 read only 的關係,所以無法寫入更改的設定!
設定自動儲存/還原功能: pudata 和開機參數 load= 與 sava=
參數可以是 no (不還原/儲存), auto (自動尋找位置還原/儲存),和路徑 (如 save=/mnt/sdb2 ).
預設值為 load=auto, save=no.
可以編輯 /etc/pudata/pudata.conf 改變設定,或是編輯 /etc/pudata/schindler.list 增減儲存清單.
註:
去 /etc/pudata
用 root 權限去改 pudata.conf
(sudo leafpad /etc/pudata/pudata.conf)
把save=no改成save=想存地方或save=auto
設定網路的指令:
固定 IP / DHCP: sudo netcardconfig
ADSL 撥接: sudo pppoeconf
無線網路: 請使用右下角的 NetworkManager 程式.
保持設定請修改:
選擇設定方法: sudo leafpad /etc/pudata/pudata.conf
設定清單: sudo leafpad /etc/pudata/schindler.list
整理 runlevel 2 的開機程式, 並修正 opt= 參數的可能錯誤
重要的開機程式如下:
S95rc.local 處理 cheatcode, 做一些雜事
S96auto_mount 自動掛載所有可能的分割區
S97load-opt 使用 Opt-Get 安裝外掛
S98pudata 根據設定檔或 cheatcode 自動還原
S99startx 啟動 X 進入圖形介面
【Slax】
slax 能夠用隨身碟當硬碟用,其原理是將相關檔案都作成module打包好,啟動時再解開,不過為什麼重開機之後更改的資料不會流失?是因為 slax 把使用者修改或新增過的資料,都放在 changes 這個資料夾內,啟動掛 module 時會去檢查有沒有其他新資料,而有新的就一併掛進去,
所以不像一般live CD每次開機都像全新的一樣。
e.g.
title Slax 6.0.7
kernel /slax/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4 changes=/slax/save/
initrd /slax/initrd.gz
【其它事項】
SystemRescueCd 包含的工具程式:
Recovery tools
sfdisk [1]
a partition table tool. Save/restore partition table to/from a file. Use it before and after changing partitions or like right now to save partition definitions.
Partimage [2]
Save/restore hard disk partitions to/from a compressed image file locally or over the network to another computer. Save a partition when system is working, like after an install or upgrade or like right now! Then restore it after the system gets corrupted or disk failure without having to reinstall and configure the OS and all the other packages.
TestDisk[3]
Recovers lost partitions, deleted files and fixes partition tables and boot sectors. It supports reiserfs, ntfs, fat32, ext2/3 and many others
PhotoRec[4]
Recovers lost files including video, photos, documents and archives.
lftp [5]
Now that the lost files and directories are located, use this extended ftp client to send them off to another system.
System tools
GParted[6]
Graphical partition editor displays, checks, resizes, copies, moves, creates, formats, deletes, and modifies partitions.
GNU-Parted[7]
Text based partitioning tool.
GRUB[8] / lilo[9]
Multi Bootloaders Install or restore bootloader. If Microsoft Windows removed a multi bootloader, run it from this CD, and reinstall it.
File System tools
Each file system has its own tools. For example XFS provides xfsprogs. It allows the user to format an existing partition, to resize another one, ... We provide reiserfsprogs for ReiserFS, Reiser4progs, xfsprogs for XFS, jfsprogs for JFS, e2fsprogs for ext2/ext3, ntfsprogs for NTFS, dosfstools for FAT/VFAT.
Archiving tools
tar/gzip/bzip2 are provided for Unix users. zip/unzip, rar/unrar/unace for Microsoft Windows users. It allows users to backup/restore their data from this bootable disc. Dar (Disk Archiver) It's like tar but it's a lot more powerful.
Editors
During a system rescue, you may need to edit system files. nano (a lightweight editor), vim[10] (VI Improved), qemacs (emacs clone), elvis and joe. also Leafpad, a graphical text editor under X windows.
CD/DVD burning tools
cdrecord packages that comes with mkisofs. It is the linux standard CD burning command from console. Mkisofs allows you to create an ISO image file to use with cdrecord. Cdw is a text based front end to make cdrecord and mkisofs easier to use. Udftools are provided for packet writing. Now, you can also use dvd+rwtools.
Network Tools
allow exchanging data with other computers. lftp, ssh (client and server), ppp(connect to the internet), lynx (console web browser). LUFS (Linux Userland File System), NFS, and Samba mount -t smbfs //ip/share /mnt/path allow you to mount remote file systems
Network admin tools
including nslookup (DNS-tool), nmap (network exploration), netcat (network piping tool).
Security tools
Chkrootkit searches for a rootkit installed on your system (rootkit is a package installed by a hacker that allows them to hack it).
Other tools
Midnight Commander[11]
Text file manager shows directories and files in a graphical display. It is very easy to use, and allows browse, copy, rename, delete, move, search and edit files.
Anti-virus
Clam-AntiVirus[12] Update the definitions from the CD, and scan system for viruses.
text Web browsers
lynx[13] (from console terminal) and elinks [14] (from X terminal). Useful for to viewing at documentation during recovery of the system.
NTFS-3g[15]
allows mounting NTFS partitions with full Read and Write support. Read the manual for informations about how to use it.
EVMS[16]
Enterprise Volume Management System is a powerful logical volume manager. It allows you to manage the space of your hard disk with a more powerful approach than partitions.
Python[17]
object-oriented programming language.
Perl[18]
Many administration scripts are written in perl.
Secure Deletion
Several wiping tools (such as shred and wipe) ensure that files are really erased from the hard disk.
Md5deep
md5deep calculates the MD5 sum in subdirectories
沒有留言:
張貼留言