[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Re: deleted data
Steve Tickle <s.tickle [at] quarndon.co.uk> writes:
> I was more curious than anything but I suppose ultimately, it would be
> nice to make a bootable disk image as a sort of rescue disk.
That's certainly possible. Would be something like (note, I said
"like" I haven't done it, read the manpages to make sure I'm right
before attempting):
1) build a directory tree of what you want on the CD to boot under
some directory (we'll call it dirname)
2) make a rescue floppy with
mkrescue --root=/dev/cdrom
3) copy the floppy to an image on your disk somewhere with
dd if=/dev/floppy of=/dirname/boot.img
4) make a bootable ISO image of the directory tree and boot floppy
with:
mkisofs -b boot.img -o rescue.iso /dirname
5) write the CD image with cdrecord:
cdrecord dev=/dev/sg0 boot.img
The tricky bit might be figuring out what you want on the CD, and
possibly figuring out what to do with /var (should be writable) and
where to mount the hard disk partitions.
That all being said, there's probably rescue CD images for your distro
out there somewhere, which would let you skip to step 5 :)
--
Eric E. Moore
___________________________________________________________________
Sheffield Linux User's Group - http://www.sheflug.co.uk .
To unsubscribe from this list send mail to
shef-lug-request@list.sheflug.org.uk with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.