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

Adding more files to a iso image?



Hi,

I've finally managed to get my debian system (Woody/Sarge/Sid) configured
and working perfectly with not a single problem.

Anyway, I have created a image of /dev/hda1 using partimage and currently
storing this on a nfs partition.

I'm using a live cd that consists on partimage, so I can boot up and mount
the nfs directory with the partimge file in and restore the complete image
(just incase I completely manage to mangle my system or I need to install
the image on another computer).

Basically the image is small enougth to fix on the extra space on the live
cd,
how would I go about add this image to the cd?

I would use dd to image to cdrom to my harddrive, then would I use to
loopback interface to mount the iso image as rw, copy the partimage file
to the mounted  iso and then umount the iso and reburn using cdrecord.

i.e:

dd if=/dev/cdrom of=/tmp/livecd-image.iso

mount -t iso9660 -o loop,rw /tmp/livecd-image.iso /cdrom

mkdir /cdrom/image

cp debian-partimage.img /cdrom/image

umount /cdrom

cdrecord -v --eject dev=0,2,0 speed=8 -data /tmp/livecd-image.iso

Would this copy the image to the mounted iso image or would I loose it
after I unmounted it?

Thanks

Mark




Reply to: