From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,728439e75d68b87 X-Google-Attributes: gid111c93,public From: michal@gortel.phys.ualberta.ca (Michal Jaegermann) Subject: Re: SuSE 6.4 Rescue System CD Date: 2000/11/09 Message-ID: <8uerm1$elq$1@pulp.srv.ualberta.ca>#1/1 X-Deja-AN: 691722146 References: <3A088B42.C200282F@nospam.guacamole.com> <8uause$417$1@surz18.uni-marburg.de> <3A0994C5.17F0F441@nospam.guacamole.com> <8udtjd$p2h$1@surz18.uni-marburg.de> <3A0AC66E.7B6330EC@nospam.guacamole.com> Organization: Disorganized Bits Reply-To: michal@phys.ualberta.ca Newsgroups: comp.os.linux.alpha Marble Head (Marble.Head@nospam.guacamole.com) wrote: : My experience with other "rescue" images is: : They all have tar, they all have dd, but none of them have dump/restore. If you want your customized rescue disk it is pretty easy to construct one using 'busybox' - http://busybox.lineo.com/. Yes, this does compile on Alpha although I did not try yet the latest version. There is no dump/restore among tools included there but they are simple to add. Here is a recipe for a simple boot/ramdisk floppy pair. You create a kernel for your hardware which supports exactly what you want without loading any modules and has a bigger default ram disk size - 8 Megs should be ample but you may go for a bigger one if you really want and have memory. You use your kernel as a replacement for one on a boot floppy; that one from Red Hat will do just fine and it is a normal ext2 file system on it so you can mount it and read and write over it to your heart contents. You may want 'init' of your own. You create a basic system using busybox stuff compiled with _shared_ libraries and you use that to populate your ramdisk image. How do do that is described in 'ramdisk.txt' file from a kernel documentation and busybox also has documentation which explains how to set 'init' and associated things. You also add to this image (only those required by your binaries) _stripped_ shared libraries and few extra utilities you want. Should be enogh of space for 'bash', although you can live with a simpler shell provided in 'busybox', and still a number of extra utilities on your own (fdisk, dump, restore, ... ). After that you unmount that image, compress with gzip and 'cat' resulting file to /dev/fd0 with a future ramdisk floppy in it. Barring bad sectors on floppies (happens quite frequently and retry with another floppy if this is the case) you should end up with a pair of floppies which can do any rescue job. Just boot with "load_ramdisk=1". It should be clear that such pair can be also used to break into any machine (not even running Linux at all) on which it can be used. But this is consistent with an old adage "if your computer is not physically secure then it is not secure - period". Making even richer environment on a ramdisk with a help of a CD is left as an exercise to the reader. :-) Michal