How to install Pfsense on a Compact Flash (CF)
-
Hello,
First I have to tell you that I'm not a freebsd specialist! I learned this method from an another French forum on FreeNAS so feel free to correct me if i'm wrong!!!
I searched the pFsense docs but found nothing on this problem so I decided to share the solution of my problem here…I have been using pFsense for a long time and always thought of installing it to a cf...
The other day I tried it on my LEX CV860A system with a Sandisk extreme III 1GB CF with pfSense-1.2-RC3-LiveCD.
I got an error message (more or less like this one):
ad1: TIMEOUT - READ_DMA retrying (1 retry left) LBA=0 ad1: TIMEOUT - READ_DMA retrying (0 retries left) LBA=0 ad1: FAILURE - READ_DMA timed out LBA=0 ad1: TIMEOUT - READ_DMA retrying (1 retry left) LBA=1 ad1: TIMEOUT - READ_DMA retrying (0 retries left) LBA=1 ad1: FAILURE - READ_DMA timed out LBA=1 ad1: TIMEOUT - READ_DMA retrying (1 retry left) LBA=0 ad1: TIMEOUT - READ_DMA retrying (0 retries left) LBA=0 ad1: FAILURE - READ_DMA timed out LBA=0
I let the installer run for a loooong time and finally I had access to the installer but was unable to install pFsense to the unrecognised CF… :-(
The solution is:
-- Boot with LiveCD
-- Do not use the default boot but exit to prompt
-- Type (with enter between lines :-D ):
set hw.ata.ata_dma=0 boot
– Do your install (remember, put enough RAM and don't use SWAP!!!)
-- On the first reboot on the CF with pFsense, use once again the same method:
-- Do not use the default boot but exit to prompt
-- Type:
set hw.ata.ata_dma=0 boot
– Once the boot is completed, go to shell and type:
echo "hw.ata.ata_dma=0" >> /boot/loader.conf exit
Login in the webGUI,
Do not install any plugins, edit your "/etc/platform" from "pfSense" to "embedded" and reboot…Voila! you should now be able to use your new cf-based pFsense!!!
Sorry If I made some mistakes, French is my mothertongue...
Regards!
-
Or you could just follow this link
http://doc.pfsense.org/index.php/HOWTO_Install_pfSense#Embedded_.28Compact_Flash.29_Installation
and do it the normal way ;) -
Or you could just follow this link
http://doc.pfsense.org/index.php/HOWTO_Install_pfSense#Embedded_.28Compact_Flash.29_Installation
and do it the normal way ;)Well, in fact If you want the "full" version…with video support, it does not work with your method... ;-)
-
Well if you want the full version you dont want to install to a CF :D
http://doc.pfsense.org/index.php/Microdrive_embedded_installations
also:
http://forum.pfsense.org/index.php/topic,6469.0.html -
This is quite interesting, because I was just thinking of doing a full installation on an internal 512 MB USB FLASH module, before I choose to perform a full installation on a regular 80GB IDE harddrive (I also have a 128 MB IDE DOM here, but using the embedded image is not an option for my machine with the Intel Desktop Board D201GLY2A, because of this UP kernel config issue preventing it to boot).
Is it really all it takes, to just switch to the embedded profile by changing "pfSense" to "embedded" in /etc/platform?
Then why exactly is this method not supported, if it solved a lot of issues for application on a regular (= non-embedded) machine with any kind of flash memory as replacement for a harddrive?
-
There are 2 other options how to install the full version to a flashmedia. Use vmware and hook up the cfcard in a usb-reader connected to the vm. Then simply boot the livecd iso (you don't even have to burn it) and install it to the cf. Once it is powered down again ove it around to the hardware that you want to use (you will most likely have to reassign interfaces on bootup though). Other option is to create a small hdd in vmware and install the iso to that one. The binary vmware diskfile can be written using physdiskwrite or dd to the cfcard.
These methods are still not supported though ;)
-
Amongst other reasons, I suspect it isn't supported because (as you'd know if you searched) CF etc have a limited write-lifecycle. This means that using them as a replacement for a hard disk will cause them to fail. How long that takes depends on the media, it's history and how you (ab)use it.
-
Isn't that the point, to switch to the embedded profile by changing "pfSense" to "embedded" in /etc/platform after doing a full install to a flash media?
-
You can do so but it's not officially supported.
-
There are 2 other options how to install the full version to a flashmedia. Use vmware and hook up the cfcard in a usb-reader connected to the vm. Then simply boot the livecd iso (you don't even have to burn it) and install it to the cf. Once it is powered down again ove it around to the hardware that you want to use (you will most likely have to reassign interfaces on bootup though). Other option is to create a small hdd in vmware and install the iso to that one. The binary vmware diskfile can be written using physdiskwrite or dd to the cfcard.
These methods are still not supported though ;)
You can physdiskwrite the actual VMWare .vmdk file directly to a microdrive and have it work? I tried doing a full install from a CD to my 4GB Hitachi microdrive the other day and it never finished installing. It was stuck somewhere in the process. I've been trying to think of an alternate method of getting it on there.
Robert
-
Yes, Seth pointed that out to me. That's how he got his custom image on his alix.
-
Knowing full well that this installation is unsupported- is there any known reason why an NFS mount point couldn't be used to also add packages?