Hello All,
I need to create a slightly modified Centos 6.3 Net Install ISO. The modification is trivial, (a default kickstart in isolinux.cfg). I have created a new ISO by loopback mounting the original, copying to a new directory, editing and using mkisofs, and it works as expected.
This is how I made the new ISO:
<code> cd my_install_directory sudo mkisofs -o ~/centos63-ks.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T . </code>
However, I an unable to copy this new ISO into a USB disk using dd, in the same manner as the original net install iso. I believe this is because the new ISO does not include an MBR. How do I include an MBR in the new ISO, so that it can be transferred to a USB disk via DD, in the same way as the original ?
Thanks in advance
Chandana
on 10/5/2012 7:16 PM Chandana De Silva spake the following:
Hello All,
I need to create a slightly modified Centos 6.3 Net Install ISO. The modification is trivial, (a default kickstart in isolinux.cfg). I have created a new ISO by loopback mounting the original, copying to a new directory, editing and using mkisofs, and it works as expected.
This is how I made the new ISO:
<code> cd my_install_directory sudo mkisofs -o ~/centos63-ks.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T . </code>
However, I an unable to copy this new ISO into a USB disk using dd, in the same manner as the original net install iso. I believe this is because the new ISO does not include an MBR. How do I include an MBR in the new ISO, so that it can be transferred to a USB disk via DD, in the same way as the original ?
Thanks in advance
Chandana
Can't you just modify the usb device after you create it?
Yes, but I would like to know how it was done. It would also make it easier in the long run for those using the iso.
On 10/10/12 10:35, Scott Silva wrote:
on 10/5/2012 7:16 PM Chandana De Silva spake the following:
Hello All,
I need to create a slightly modified Centos 6.3 Net Install ISO. The modification is trivial, (a default kickstart in isolinux.cfg). I have created a new ISO by loopback mounting the original, copying to a new directory, editing and using mkisofs, and it works as expected.
This is how I made the new ISO:
<code> cd my_install_directory sudo mkisofs -o ~/centos63-ks.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T . </code>
However, I an unable to copy this new ISO into a USB disk using dd, in the same manner as the original net install iso. I believe this is because the new ISO does not include an MBR. How do I include an MBR in the new ISO, so that it can be transferred to a USB disk via DD, in the same way as the original ?
Thanks in advance
Chandana
Can't you just modify the usb device after you create it?
CentOS-devel mailing list CentOS-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel
Chandana De Silva wrote:
Hello All,
I need to create a slightly modified Centos 6.3 Net Install ISO. The modification is trivial, (a default kickstart in isolinux.cfg). I have created a new ISO by loopback mounting the original, copying to a new directory, editing and using mkisofs, and it works as expected.
This is how I made the new ISO:
<code> cd my_install_directory sudo mkisofs -o ~/centos63-ks.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T . </code>
However, I an unable to copy this new ISO into a USB disk using dd, in the same manner as the original net install iso. I believe this is because the new ISO does not include an MBR. How do I include an MBR in the new ISO, so that it can be transferred to a USB disk via DD, in the same way as the original ?
I believe you need to run 'isohybrid' on the new ISO - e.g. in your case:
isohybrid ~/centos63-ks.iso
isohybrid is part of the syslinux package
Also, you might want to run "hardlink" on your 'my_install_directory' before running mkisofs - this will make the resulting ISO image a bit smaller
James Pearson
James, Thank you very much for this. This is exactly what I was looking for On 10/10/12 23:33, James Pearson wrote:
I believe you need to run 'isohybrid' on the new ISO - e.g. in your case:
isohybrid ~/centos63-ks.iso
isohybrid is part of the syslinux package
Also, you might want to run "hardlink" on your 'my_install_directory' before running mkisofs - this will make the resulting ISO image a bit smaller