Other mounting iso as r/w

Is there any way to make an mdconfig backed file R/W?

I have mounted an ISO file using '-t 9660' and would like to be able to change it.

Is that possible?
 
Something like this...
I haven't done this in a long time

1. Mount ISO

# mdconfig -a -t vnode -f /home/user/my.iso -u 0
# mount -t cd9660 /dev/md0 /mnt


2. Copy ISO files and modify

# mkdir /tmp/my_new_iso
# cp -R /mnt/* /tmp/my_new_iso/
# umount /mnt
# mdconfig -d -u 0


3. Create new iso

# mkisofs -J -R -no-emul-boot -V "MY_LABEL" -o /home/user/my_new_custom.iso /tmp/my_new_iso


sysutils/mkisofs
 
Something like this...
I haven't done this in a long time

1. Mount ISO

# mdconfig -a -t vnode -f /home/user/my.iso -u 0
# mount -t cd9660 /dev/md0 /mnt


2. Copy ISO files and modify

# mkdir /tmp/my_new_iso
# cp /mnt/ /tmp/my_new_iso/
# umount /mnt
# mdconfig -d -u 0


3. Create new iso

# mkisofs -J -R -no-emul-boot -V "MY_LABEL" -o /home/user/my_new_custom.iso /tmp/my_new_iso


sysutils/mkisofs
mkisofs: Missing boot image name, use -eltorito-boot option.
 
mkisofs: Uh oh, I cant find the boot image 'boot/cdboot' inside the target tree.

I guess I need to copy /boot/cdboot to /tmp/my_new_iso/
 
1. Mount ISO
# mdconfig -a -t vnode -f /home/user/hiren.iso -u 0
# mount -t cd9660 /dev/md0 /mnt


2. Copy and edit

# mkdir /tmp/hiren_new
# cp -a /mnt/. /tmp/hiren_new/


3. Create custom ISO
# mkisofs \
-iso-level 3 \
-udf \
-J -R \
-V "HIREN_PE" \
-b boot/etfsboot.com \
-no-emul-boot \
-boot-load-size 8 \
-o /home/user/hiren_custom.iso \
/tmp/hiren_new


this is boot/etfsboot.com - BIOS loader for Windows, not UEFI.
 
Back
Top