On Wed, 28 Oct 2015 07:45:05 +0000 (UTC) Mik J <mikyde...@yahoo.fr> wrote: > Hello everyone, > I asked this question on another list a long time ago. > * I would like to mount an iso in order to add some files# ls -l /mnt > drwxr-xr-x 2 root wheel 512 May 3 15:31 iso# vnconfig svnd0 Image.iso > # mount_cd9660 -o rw /dev/svnd0c /mnt/iso > After the mount, it's read only# ls -l /mnt > dr-xr-xr-x 1 root wheel 512 May 3 15:31 iso > The person who replied told me it was normal, cd9660 are always mounted as > read only and suggested that I have to remake the iso > * If that is correct, I would like to know how would I be able to remake > this iso, and particularly keeping the boot options. > When I want to make an OpenBSD iso I use -b i386/floppy58c.fs -c boot.catalog > I would like to know how can I find which -b and -c options have been used by > the person who made the iso in order to use it when I want to rebuild this iso > Thanks >
you must be using a pretty old version of OpenBSD if you are using svnd0 (it is just vnd0 now). i don't know of a way to mount an iso9660 filesystem r/w either (makes sense as it is for read-only media), but you can mount the iso image as you did above, and then copy it into a new directory. # mkdir newiso # (cd /mnt/iso && tar cf - *) | tar xpf - -C newiso now you can modify the version in the newiso directory. i don't know how to get the parameters used on any random image, but the command used to create the install cd image is: mkhybrid -a -R -T -L -l -d -D -N -o /usr/src/distrib/i386/cdfs/obj/cd58.iso -v -v -A "OpenBSD 5.8 i386 bootonly CD" -P "Copyright (c) `date +%Y` Theo de Raadt, The OpenBSD project" -p "Theo de Raadt <dera...@openbsd.org>" -V "OpenBSD/i386 5.8 boot-only CD" -b 5.8/i386/cdbr -c 5.8/i386/boot.catalog /usr/src/distrib/i386/cdfs/obj/cd-dir but i don't think it matters much which -b and -c options were used originally. when you recreate the image you have to redo that anyway. i'm not sure of your use of -b for a cd however. according to mkhybrid(8): This will work, for example, if the boot image is a LILO-based boot floppy. but i've never tried that. i use cdbr as in the example above (which is from the release(8) process, used to make the official releases). you can find cdbr as /usr/mdec/cdbr, and can copy it to the newiso dir if you don't already have a copy there.