3

I extracted an ISO file to a directory. Now I want to make that extract files bootable again. Will converting it to .iso make it bootable?

1 Answers1

2

No, but its relatively easy to do that, it depends on how the iso was make bootable in the first instance, you need to have some kind of boot loader like isolinux for example. If there is a directory called isolinux inside it, you have a lucky day! The command that creates the bootable iso will probably look like this:

cd thedirectorywithisofiles
mkisofs -o ../your-new.iso -b isolinux/isolinux.bin -c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V "volume" .

So probably is not too hard as you're thinking!

If you think the iso was using grub, you still can ignore it and download and use isolinux as a substitute or try this link: https://www.gnu.org/software/grub/manual/legacy/Making-a-GRUB-bootable-CD_002dROM.html

  • "mkisofs command not found" installing it says `Package mkisofs is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: genisoimage:i386 genisoimage

    E: Package 'mkisofs' has no installation candidate`

    – Unique Kiddo Jul 29 '16 at 04:24
  • please specify in your question what distribution/OS you are using...some tools might not be available or should be installed – magor Jul 29 '16 at 06:15
  • #apt-get install genisoimage ? – Luciano Andress Martini Jul 29 '16 at 11:29
  • i'm using debian jessie – Unique Kiddo Jul 30 '16 at 12:09