Date: Thu, 17 Sep 2009 03:28:18 +0000 From: "b. f." <bf1783@googlemail.com> To: freebsd-questions@FreeBSD.org Cc: freebsd@superhero.nl Subject: Re: Change one file in an ISO image Message-ID: <d873d5be0909162028q2ce4584cq1cd8180dfac67933@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Patrick Gelsema wrote: >I need to change one file in an existing ISO image. It is a DVD image btw. >Unfortunately I dont have many options of changing the fie before creating >the image. > >Mounting is not the issue, copying data neither but the ISO is also >bootable. There must be a simpler solution as in copying all the content >with cpio and making it bootable. OS on the DVD is WinPE btw. > >Does anyone have some pointers for performing this action? Unfortunately, libarchive(3), which is used by tar(1) and cpio(1) on recent versions of FreeBSD, seems to have only read and extract support for ISO 9660 archives, and not write support (see libarchive-formats(5) or http://code.google.com/p/libarchive/wiki/LibarchiveFormats ). So while you could use tar(1) or cpio(1) to extract the contents of the dvd without mounting it in order to make your change, you would have to use some other tool to write the new .iso image, like mkisofs(8) from the sysutils/cdrtools-devel port. (And if the original image has extensions that are not supported by librarchive(3), you could use something like readcd(1) from that same port instead of tar(1) or cpio(1) to read and extract it.) b.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d873d5be0909162028q2ce4584cq1cd8180dfac67933>