Re: Change one file in an ISO image
On Thu, September 17, 2009 05:28, b. f. wrote: 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.) If the linux suggestion fails I will try this one. Unfortunately I can't do Make release as it is not Freebsd. It is a Windows based boot cd. Thanks! b. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Change one file in an ISO image
Patrick Gelsema wrote: If the linux suggestion fails I will try this one. I'm not sure exactly what you're trying to do here -- but from what I saw, the suggestions you are referring to only mentioned different ways of mounting the iso image from the dvd. Whether you mount the dvd, or just use some tool to extract the contents of the dvd without mounting it, you will still have to edit the contents, and then write them to a new medium. Most disks do not allow easy in-place editing of their contents, and in any case I would be reluctant to do this for WinPE. Unfortunately I can't do Make release as it is not Freebsd. It is a Windows based boot cd. I think by make a release, the poster meant that you would use a WAIK or BartPE or whatever to make a new version of WinPE that incorporates your changes, and not that you would use a literal make release. If WinPE has some kind of self-consistency checks against the content of it's own files that may be violated by editing one of them in an existing image, then you may have to do this anyway. b. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Change one file in an ISO image
On Thu, Sep 17, 2009 at 07:41:09PM +, b. f. wrote: Patrick Gelsema wrote: If the linux suggestion fails I will try this one. I'm not sure exactly what you're trying to do here -- but from what I saw, the suggestions you are referring to only mentioned different ways of mounting the iso image from the dvd. Whether you mount the dvd, or just use some tool to extract the contents of the dvd without mounting it, you will still have to edit the contents, and then write them to a new medium. Most disks do not allow easy in-place editing of their contents, and in any case I would be reluctant to do this for WinPE. Have a look at the sysutils/isomaster port. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpxcwVA4AaYT.pgp Description: PGP signature
Re: Change one file in an ISO image
On 9/16/09, Gelsema, P (Patrick) - FreeBSD free...@superhero.nl wrote: Hi list, 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? Rgds, Patrick the cd9660/iso9660 filesystem type doesn't support rw options. Even if you mdconfig and mount -o rw, it is mounted ro editing a ISO is not possible. will require a remastering process. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Change one file in an ISO image
On Thursday 17 September 2009 17:09:28 Tim Judd wrote: On 9/16/09, Gelsema, P (Patrick) - FreeBSD free...@superhero.nl 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. the cd9660/iso9660 filesystem type doesn't support rw options. Even if you mdconfig and mount -o rw, it is mounted ro If your change does not require altering the size of the file you wish to edit you may be able to just use a hex editor. I don't know enough about the ISO 9660 filesystem to say whether and how often it fragments files, but for a localized change you should be able to find the block containing the original file data and alter it. On the plus side you can check your work by mounting the modified ISO image and making sure you got the right file, etc. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Change one file in an ISO image
On 9/17/09, John Nielsen li...@jnielsen.net wrote: On Thursday 17 September 2009 17:09:28 Tim Judd wrote: On 9/16/09, Gelsema, P (Patrick) - FreeBSD free...@superhero.nl 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. the cd9660/iso9660 filesystem type doesn't support rw options. Even if you mdconfig and mount -o rw, it is mounted ro If your change does not require altering the size of the file you wish to edit you may be able to just use a hex editor. I don't know enough about the ISO 9660 filesystem to say whether and how often it fragments files, but for a localized change you should be able to find the block containing the original file data and alter it. On the plus side you can check your work by mounting the modified ISO image and making sure you got the right file, etc. JN Until the CRC kicks in. Copy, edit, remaster. To me, there's a reason it's called 'mastering' a CDROM I'm sorry, unionfs is the only other way, and unionfs isn't workable on WinPE (to which the OP clearly stated that this is the disc he wants to edit). Bart's bbie (Bart's Boot Image Extractor), an win32 app will write the image file in any iso or cdrom to a file. re-use that file to specify the el-torito boot image... probably need no-emulation mode. Until I see proof of on the fly editing of a CD-ROM image, I will always preach that a CD-ROM cannot be altered except by remastering an image. Thank you, --Tim ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Change one file in an ISO image
Gelsema, P (Patrick) - FreeBSD wrote: Hi list, 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? Have you tried mounting it as a vnode ? and mounting it R/W ? mdconfig -a -t vnode -f file.img mount -t type /dev/md0 /mnt/rw_dvd Where type may be cd9660 or some other format of the image. I haven't seen reported success with this method (checked with various google searches), but perhaps there's something along these lines *will* work. Hope that helps, Bryant ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Change one file in an ISO image
Bryant Eadon wrote: Have you tried mounting it as a vnode ? and mounting it R/W ? mdconfig -a -t vnode -f file.img mount -t type /dev/md0 /mnt/rw_dvd Where type may be cd9660 or some other format of the image. I haven't seen reported success with this method (checked with various google searches), but perhaps there's something along these lines *will* work. Pardon my political incorrectness... If you can't get it to work under FreeBSD, I'm pretty sure that it works under Linux: mount -t iso9660 -o loop file.img /mnt (I'm not sure that iso9660 is the right filesystem type, but man mount will tell you.) Once mounted that way you can use it like any other filesystem. I actually did this once, but it was years ago. Mike -- Michael David Crawford m...@prgmr.com prgmr.com - We Don't Assume You Are Stupid. Xen-Powered Virtual Private Servers: http://prgmr.com/xen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Change one file in an ISO image
Why not just make a release with the updated file? -jgh On Wed, Sep 16, 2009 at 07:26:01PM -0400, Bryant Eadon thus spake: Gelsema, P (Patrick) - FreeBSD wrote: Hi list, 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? Have you tried mounting it as a vnode ? and mounting it R/W ? mdconfig -a -t vnode -f file.img mount -t type /dev/md0 /mnt/rw_dvd Where type may be cd9660 or some other format of the image. I haven't seen reported success with this method (checked with various google searches), but perhaps there's something along these lines *will* work. Hope that helps, Bryant ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Change one file in an ISO image
On Wed, 16 Sep 2009, Gelsema, P (Patrick) - FreeBSD 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? Maybe use sysutils/geteltorito to extract the boot image, then mount the image and copy out the files, then reassemble the whole thing with mkisofs. Untested... -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Change one file in an ISO image
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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org