Re-Sizing CF image with non BSD System
-
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
-
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,
-
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>&1because 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
-
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.