![]() |
![]() |
Permission to use these pages kindly granted by www.knoppix.net. These pages are a static version of those available at www.knoppix.net. Please check there for the latest information. Converted on 9/5/2003. Thanks to the many contributors to www.knoppix.net! |
German Version: FaqRescueDeutsch
Knoppix is a great rescue disc too. You can repair Linux or that other OS, backup data, recover passwords, etc. The following solutions assume that you have booted Knoppix on the machine that needs to be repaired.
A: Boot with the Knoppix CD and mount that partition using the Knoppix root shell. For example:
Gives you a root shell back in your old system! Now get the resolved and updated packages http://www.debian.org/distrib/packages and dpkg -install them to fix the previous show stopping packages.
A: Mount that partition and run LILO as root:
A1: See Computer First Aid Using Knoppix
A2: if you have a CD burner installed, use one of the various tools on Knoppix to create a CD. If you want to backup over the network, you can use NFS, Samba (windows share), scp (ssh copy), ftp, email or more... e.g boot knoppix on an other machine too, start ssh server there "kmenu->KNOPPIX->Servers->SSH Server", mount a HD, make it read/write. Then you can use scp on the broken box like "scp -r /mnt/hda1/importantdata/ knoppix@192.168.1.1:/mnt/hda1/backup/" for an entire directory (recursively, insert correct IP etc.).
A: To backup use "sudo dd if=/dev/hda of=mbr.backup size=512 count=1" and "sudo dd of=/dev/hda if=mbr.backup size=512 count=1" to restore. Caution the MBR contains the partition table (the first four primary entries) it will break things if you changed the partition sice the backup.
A1: Yeah, as if anyone would believe you! But in case you're really serious, you might try "john" and expect to wait a while.
A2: You can change password by chrooting into installed linux and running passwd. You may need to mount your linux read-write. "mount -o remount -rw /dev/hd.. ; cd /mnt/hd..; chroot . " and "passwd root".
A: try "ssh" and/or "telnet" to log in on that remote box. you'll need to know a password, but after that you can use the shell to repair the box.
A:
A: There are several ways but the easiest is probably:
A: Tried parted ? http://www.gnu.org/software/parted/
http://www.knoppix.net/search?q=parted&submit=Go
A2: For resizing, Solution 2 in the
ntfsresize FAQ (Frequently Asked Questions)
http://mlf.linux.rulez.org/mlf/ezaz/ntfsresize.html#example
usually works well.
For backup of a partition, Partition Image is great!
http://www.partimage.org/doc/index-3.html