I have a Linux TAR file that I would like to convert directly into an ISO. Is there a way to do this, preferably, without having to extract the contents of the file first?
This would be similar to the following question; however, this is focused on plain or straight-up tar files and not related to bzip or a bzipped tar.
This is also something that I intended to use within a script and the reason that I do not want to extract it first.
Use AVFS to access the contents of the tar archive as if it was a directory. AVFS is a virtual filesystem built on FUSE. Point your favorite ISO builder to the directory inside the tar archive.
If your primary objectives are to expedite the process and to avoid unnecessary disk activity for performance reasons, and you have plenty of RAM to spare relative to the size of your tarball, you can extract the .tar into RAM using tmpfs. This option is very likely the fastest available, unless you're able to get @bulleric's pipe approach to work and you're reading from one disk and writing to another.
or uncompressed .tar and
(can be folder
/media/ISO
or point mount/media/cdrom
)You must extract it but you dont must extract it to your harddrive you can use stdtout and pipe it to genisoimage or mkisofs
tar --to-stdout xf tareddata.tar | genisoimage -o image.iso tareddata
test it:
mount -o loop image.iso /mnt
you can write a small script to automize this issue
greez bull