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

Re: SCSI-Tape (st0) in rescue mode



"Thomas E. Dodd /CSDC" wrote:
> 
> Then you need to put the st dev node on the
> it (with mknod). Then add the dump and restore
> commands to the disk in /bin or /sbin on the disk.
> 
> I'm getting rescue.img now. I'll try to make one for
> you, or give more detalied instructions later.

The rescue.img looks like a gzipped ext2 filesystem
that has been padded to fill a floppy.
Assuming the initrd command puts all the right modules
on the disk. Try this:

cp rescue.img /tmp/rescue.img.gz
cd /tmp
gunzip rescue.img.gz
mkdir rescue
mount -o loop /tmp/rescue.img /tmp/rescue
cp /sbin/restore /tmp/rescue/sbin
mknod /tmp/rescue/dev/st0 c 9 0
mknod /tmp/rescue/dev/st1 c 9 1
umount /tmp/rescue
gzip /tmp/rescue.img
dd if=/tmp/rescue.img.gz of=/dev/fd0


This new disk should work, but there may be a problem
since the file is a little smaller than the original
image. I think it was padded with zeros. Ask the creator
of the original if the new image doesn't work.

I cannot pull my system down to test it right now.

	-Thomas



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