Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Adding personal content to the .iso

    Scheduled Pinned Locked Moved Development
    9 Posts 4 Posters 5.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      Guest
      last edited by

      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 .iso

      
      mount -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.

      1 Reply Last reply Reply Quote 0
      • D
        DanielSHaischt
        last edited by

        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

        Mit freundlichen Gruessen / With kind regards
        DAn.I.El S. Haischt

        1 Reply Last reply Reply Quote 0
        • B
          billm
          last edited by

          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.
          
          

          pfSense core developer
          blog - http://www.ucsecurity.com/
          twitter - billmarquette

          1 Reply Last reply Reply Quote 0
          • D
            DanielSHaischt
            last edited by

            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

            Mit freundlichen Gruessen / With kind regards
            DAn.I.El S. Haischt

            1 Reply Last reply Reply Quote 0
            • D
              DanielSHaischt
              last edited by

              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

              Mit freundlichen Gruessen / With kind regards
              DAn.I.El S. Haischt

              1 Reply Last reply Reply Quote 0
              • J
                jeroen234
                last edited by

                so this must also meen that freebsd 6.1 don't suport rewritebole cds?

                1 Reply Last reply Reply Quote 0
                • D
                  DanielSHaischt
                  last edited by

                  @jeroen234:

                  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

                  Mit freundlichen Gruessen / With kind regards
                  DAn.I.El S. Haischt

                  1 Reply Last reply Reply Quote 0
                  • J
                    jeroen234
                    last edited by

                    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

                    1 Reply Last reply Reply Quote 0
                    • B
                      billm
                      last edited by

                      @jeroen234:

                      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

                      pfSense core developer
                      blog - http://www.ucsecurity.com/
                      twitter - billmarquette

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.