LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: Benjamin Close <linux@senet.com.au>
To : Mark Lang <mblang@one.net.au>
Date: Tue, 27 Jun 2000 23:50:13 +0930 (CST)
Re: iso image help required
On Tue, 27 Jun 2000, Mark Lang wrote:
> I have been given an assignment to be completed by the end of the week
> and require your help if possible. I need to take an complete iso img of
> a Linux box to be used as a backup procedure.
>
Howdy,
In order to create the image you'll need two hard disks. The
theory to create/restore from an iso image is as follows:
HDD1 - Linux (with boot sectors - the works)
HDD2 - somewhere you can dump a large file
First you want to make sure nothing will write to the disk you need to
copy while your copying it. You should dosomething like:
mount -o remount,ro /
sync
wait 20 seconds (yes sync isn't guarenteed)
This ensures that the drive will not be written to.
Now:
dd if=/dev/hda of=/mnt/otherharddisk/diskdump.file
This will copy the disk.
Once this is done (it will take a while depending on the size of the
disk) you need to covert this file to an isoimage using mkisofs (Note now
you have the disk image you can remount the first drive read/write incase
you need the space).
Once mkisofs has create the image for you can bur it to cd.
Now for restoration: find a linux boot disk. (toms root/boot disk set
works well). Then mount the cd and: dd if=/mnt/cdrom/diskdump.file
of=/dev/hda
done!
The one catch is I can't help you on the mkisofs paramaters. However, last
time I looked the man page was pretty good. Besides you shouldn't need any
options anyway.
Cheers,
--
* Benjamin Close
* Benjsc@senet.com.au
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page