This installation in CF is correct..?



  • I want to prove Pfsense in a CF, use the M0N0WALL without problems
    but I want to make sure that this installation is correct.

    1.- I start with liveCD and I make the installation in HD

    2.- During the installation I do not make partition SWAP.

    3.- Once started pfsense, change/etc/platform to embedded.

    He is correct??

    The CF is of single reading exepto to write config?.

    This is equal to write the CF with the image embedded, but thus I have video??

    Pardon, this translation is automatic.

    Thanks.



  • This type of installation is not officially supported but I think it should work.



  • The 'official' way to do it is to download the .img.gz file then use physdiskwrite in windows or DD in linux/unix to write the image to a compact flash card. Then boot from the flash card, and configure your system accordingly from the serial port console or web interface. You don't HAVE to install from the livecd to get an embedded setup.



  • @kew:

    The CF is of single reading exepto to write config?.

    This is equal to write the CF with the image embedded, but thus I have video??

    The CF is written to everytime you shutdown so that it can save the RDD data. CF is written to everytime you click on "Save Changes"

    I think that this is equivalent to the embedded image, except that you now have video. I have tried this and it seems to work

    sai



  • @sai:

    @kew:

    The CF is of single reading exepto to write config?.

    This is equal to write the CF with the image embedded, but thus I have video??

    The CF is written to everytime you shutdown so that it can save the RDD data. CF is written to everytime you click on "Save Changes"

    I think that this is equivalent to the embedded image, except that you now have video. I have tried this and it seems to work

    sai

    One of my fellow technicians is under the impression that once you boot an image from CF that the file system is read-only.  They are under the impression that you have to setup the box to how you want it BEFORE you flash the changes over.  Is the filesystem read-only?  Is it possible to rename/delete/create files in directories such as /usr/bin once you boot an embedded system with the OS being on a CF card?



    • Executive Summary *
      If you intend to hang it of a radio mast somewhere out there or for a bussines use the embedded install.
      If this is a box in the cupboard or celar, do a hd install to CF. and buy a 256MB or larger CF and not create a swap partition.

    • Detail *
      Yes you can do a normal HD install onto a CF card which is in a IDE-CF converter.

    This means the filesystem is mounted RW normally. So if you reset the box it will perform a fsck on the volume. If you create no SWAP and you have 128+ MB ram this should work fine. I run my testbox this way and the Kingston ValueLine 512MB CF card has not failed yet. It's been a year.

    When the CF card will start failing I cannot say as most modern cards have a defect recovery mechanism that is so good that by the time we notice disk errors we can pretty much confirm it is shot.

    When you use a CF install the filesystem is normally mounted read-only and is mounted rw only for config actions or firmware upgrades. Yes you can replace binaries on a embedded system by mounting the CF rw by using /etc/rc.conf_mount_rw.
    All the variable data that is created in /var or /tmp is on a memory fs. The rest is all read-only.
    The rrd data is saved to a TGZ file on the config partition of the CF and restored on each reboot.

    That said, memory cards these days are pretty good, and so cheap that replacing them is easy. A recent test by the magazine c`t tried to break a USB memory stick but it still did not fail after 40 million write actions. If that is anything to go by it is unlikely to fail in our lifetime.


Locked