Adding personal content to the .iso
-
Hello, I was wondering if it is possible to add "personal content" to the pfsense .iso ?
With linux I used this to get files from the .isomount -o loop -t iso9660 /xxx/Original.iso /yyy/Modded.iso
and then (after adding my content) I used make_iso.sh to make the iso.
Does this work with FreeBSD, or how should I make that iso after modding ?Im new to BSD so any tips, hints are wellcome.
ps. maybe you guys could make a tutorial that explained this to us :)
pss. I like alot this Firewall, excellent work. -
Mounting an ISO on FreeBSD has been answered many times. Use Google! The equivalent for …
mount -o loop -t iso9660 /xxx/Original.iso /yyy/Modded.iso
… is ...
# mdconfig -a -t vnode -f /tmp/pfSense.iso -u 0 # mount -r -t cd9660 /dev/md0 /mnt/iso # <<do something="">> # umount /mnt/iso # mdconfig -d -u 0</do>
AFAIK the mounted ISO is read-only! And I doubt, that on Linux this would be different. That means you can't simply copy files over to your mounted ISO image.
Regards
Daniel S. Haischt -
That could be because you used -r in the mount command :) No idea if you can mount it rw anyway, but just pointing it out.
-r The file system is to be mounted read-only. Mount the file sys- tem read-only (even the super-user may not write it). The same as the rdonly argument to the -o option.
-
I googled for a way to mount an ISO using -rw on FreeBSD. It seems to be not possible, tho I did not test it. The only thing I found is that you can mount a photo CD with -rw access privs and I think the pfSense ISO isn't supposed to be a photo CD ;)
Regards
Daniel S. Haischt -
Okay I think this says it all:
haischt@abyssone $ sudo cp manual.tar.bz2 /cdrom cp: /cdrom/manual.tar.bz2: Read-only file system
I did use the -rw option, got no error message, but the -w will be simply ignored as it seems.
Regards
Daniel S. Haischt -
so this must also meen that freebsd 6.1 don't suport rewritebole cds?
-
so this must also meen that freebsd 6.1 don't suport rewritebole cds?
If you have a FreeBSD box, you could simply try it on your own, no?
Regards
Daniel S. Haischt -
i don't have rw cd's only r cd's
but if freebsd don't suport this then you can never mount a cdrom rw like you are trying to do now with the cdrom image
-
i don't have rw cd's only r cd's
but if freebsd don't suport this then you can never mount a cdrom rw like you are trying to do now with the cdrom image
Dunno if FreeBSD supports the UDF filesystem, probably wouldn't be terribly difficult to find out. Either way, that's not quite an ISO filesystem anyway :) But it sounds like it can't mount an iso9660 fs as read/write (I was only pointing out that the prior example was mounting read only so it couldn't have worked regardless). FYI, the flag for mounting as writeable is '-w' - dunno if it makes a difference, but it may be that -r takes precedence over -w in -rw.
–Bill