|
Trinity Home |
|||
![]() |
Trinity Rescue Kit: Usage Howto Home - Download - Development - Usage howto |
||
1. Scripts to help you -mountallfs.sh (broken now) mounts all
possible partitions on all possible disks. The mount points are equal
to the device special file, so if you have a filesystem on /dev/hda1,
it will create a directory /hda1 and mount it there. This script will
give you numerous error messages, because there is no way to know beforehand
if a filesystem exists on a partition. I haven 't been able to pipe
it yet to /dev/null (the mount command must use something else than
stderr or stdout). Also beware that Windows 2000 NTFS partitions (NTFS
5) get mounted as read-only. See further in this document how to mount
them read/write. -virusscan.sh uses the free Linux antivirus
version of F-prot (from Frisk software). It attempts to get the latest
updates at ftp.f-prot.com, unpacks
it and scans all local disks. Off course, you first need networking
support and local filesystems mounted. -/floppy/trkscripts is not actually a script, but you can make it one. TRK 1.0 has a lilo option that triggers mounting your floppy drive (on /dev/fd0) and search for the file "trkscripts" to execute. It executes in the current startup shell, so you can give it system wide variables. Somebody had asked me to implement this feature but from the computers' harddisk so one could launch computer specific maintenance. It was a great idea, except you would have to be certain you could mount any computers disk automatically (cfr. SCSI modules that don 't load in kudzu). A floppy is such a universal device that it will almost always work.
2. Changing NT/Win2k passwords This is quite tricky, you cannot miss
any of these steps or you 'll end up with a pooched filesystem! -After mounting all partitions with "mountallfs.sh", your NTFS partitions will be mounted read-only. To have it mounted read/write, type "mount -o remount,rw /yourntfsmountpoint". -You need some free space on another
non NTFS partition, because editing on NTFS is very dangerous and it
won 't work anyway to make changes to your SAM. You can create a new
ramdisk (default size of 16Mb) by typing "mke2fs /dev/ram1",
make a mount point, say f.i. /ram, "mkdir /ram" and mount
it there "mount /dev/ram1 /ram. -Copy your SAM, system and SECURITY file to another filesystem (fat or ext2). These files are located in WINNT/system32/config/ -Go to the dir you just copied your files to -Type "chntpw SAM system SECURITY" or just "chntpw" to see a help screen -Follow instructions -Copy SAM, system and SECURITY back to their original location -Unmount the ntfs partition -Very important! Run ntfsfix of the partition you just unmounted! If it was /hda1, do ntfsfix /dev/hda1. Ntfsfix does some repairs like emptying your LOG file and setting the chkdsk flag. Let checkdisk run when you reboot into NT/Win2K -Your Windows should boot after checkdisk, with the new password in place.
3. Known bugs -difficult procedure to change NT passwords,
will make scripts for them 4. Future features -maybe X-windows, but I don 't see the
use. Some people have asked it. I might consider -as a new project-
adapting a complete installation from disk to cd with a minimal window
manager using framebuffering. A Debian would do better here. 5. Screenshots -Lilo
boot splash screen
6. Contact the author Contact me, Tom Kerremans aka harakiri
at 7. previous versions TRK
0.3 HOWTO |
|||
| |
|||