[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rescue disk



Tony Godshall wrote:
According to Hugo Vanwoerkom,

George Iordanou wrote:

I want to create a rescue disk. I went to debian's official webpage
and i downloaded the unstable version which consists of the following
files:

boot.img
cd-drivers.img
net-drivers.img
root.img

How can i create a bootable rescue disk? I want to get into my system
using the floppy's kernel.


Is a bootable rescue CD OK? mkrescue is part of Lilo and creates either floppies or CD with "mkrescue --iso", which iso your burn with cdrecord.

I modified mkrescue --iso, which is a script, to come up with a menu that actually says which partition is going to boot, rather than "Linux".

Booting that CD gives you the option of using the partition you ran mkrescue from or what is on the MBR ("harddisk").


Sounds handy.

Can you post a patch?


=============================================================
--- mkrescue.orig	2004-09-13 14:14:15.000000000 -0500
+++ mkrescue	2004-12-01 09:14:32.000000000 -0600
@@ -427,6 +427,10 @@
 echo " " >>$mountconfig
 echo "image=linux" >>$mountconfig

+if [ $isoimage = yes ]; then
+	echo "label=$image" >>$mountconfig
+fi
+
 if [ ! -z $initrd ]; then
 	echo "  initrd=initrd" >>$mountconfig
 fi
==============================================================

This refers to the current Sarge version of lilo (which contains mkrescue)

I want to make another change: to add all the images of the current partition. E.g. I have two images of the current partition that differ only in a string on the append: "network". Then in the boot I look for that string and if it exists I bring up PPP at boot. If not I don't. Many times I need a rescue boot (after failures of the d-i) but I don't want the internet. So both of those images should be on the rescue CD.

I'll advise when I got something.

HTH

H





Reply to: