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

    Re-Sizing CF image with non BSD System

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    4 Posts 2 Posters 2.5k 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.
    • E
      elliotcater
      last edited by

      Hi,

      I'm a mac osx user and I was wondering if there was any way to re-size pfsense without having to use a stand alone freebsd system?

      Many thanks

      Elliot

      1 Reply Last reply Reply Quote 0
      • N
        nocer
        last edited by

        Hi,

        I assume you've visited here already

        http://forum.pfsense.org/index.php/topic,1672.0.html

        then although it's written for FreeBSD but easily modify for other *nix even for OSX. Or, may be you can create VM in the OSX then install FreeBSD, this might be the easiest way.

        cheers,

        1 Reply Last reply Reply Quote 0
        • E
          elliotcater
          last edited by

          I have been there but I would like to do it in osx, using the tools available in the bsd subsystem. Hopefully at the end of this I can give back something to the community that has given me a kick ass load balancing router to replace the naff netgear one that is now a doorstop.

          As far as I can tell the only thing missing is mdconfig and bsdlabel.

          The first instance of mdconfig appears

          MD=mdconfig -a -t vnode -f $FLASHTMP/pfSense-${1}MB.img

          I'm guessing here all that is happening is the creation of a ramdisk in the PWD (i.e $FLASHTMP) called "pfSense-(variable in MB's)MB.img"

          Instead of this could i use diskutil or hdiutil?

          I have no idea about how I'm going to get round the bsdlabel bit;

          echo "date '+%b %e %T': Bsdlabel"
          bsdlabel -R /dev/${MD} $TMPFILE1 >/dev/null 2>&1
          bsdlabel -B /dev/${MD} >/dev/null 2>&1

          because it writes a bootstrap (the -B option) from /boot/boot of the current machine and osx just aint got that directory and i doubt that bootstrap.

          I'm stuck and would like to provide this script in osx flavour for the community.

          Any help is greatly appreciated

          1 Reply Last reply Reply Quote 0
          • E
            elliotcater
            last edited by

            also anyone wanting to go the virtual machine root i found this program that is a gui for qemu

            www.kju-app.org

            its pretty good, universal binary.

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