How do I create an ISO image of an entire hard drive operating under Linux (CENTOS)?
Posted on 2006-05-09
Hello. I'm relatively new to Linux and know enough to be dangerous. I'm trying to create an ISO image of an entire volume on a Linux (CentOS Linux 4.3) box such that I can then transfer that ISO image to a CD which will then be used to create an identical configuration on another box (with the exact same hardware config). The hard drive I'm backing up has a capacity of 80gb and only has about 10gb being used.
As I understand it (and I could be wrong) there are two processes here. First is creating the ISO file. Second is transferring that ISO file to a CD in such a way as to allow for restoring it to another hard drive to give me an identical setup on the second machine. How do I do this?
With regard to creating the ISO image file of the entire volume, my limited understanding says I should be using the "mkisofs" command but I have been unable to get it to work. The full command I'm issuing is:
mkisofs -o image.iso -b boot/intrd-2.6.9-34.EL.img -c boot.cat -R -J -T
When I issue this command I get an error stating the .img file I specified "has not an allowable size". Candidly I don't even know if the .img file I'm specifying is correct but it's the only .img file in the /BOOT/ directory.
With regard to the seond step in the process ... well, let's just say I haven't gotten that far yet.
Thank you in advance for your assistance.