http://bernaerts.dyndns.org/linux/53-de ... pact-flash

http://kristof.vanhertum.be/?p=3

http://chschneider.eu/linux/thin_client/

======================================

http://dataflip.blogspot.com/2008/06/optimizing-vyatta-for-compact-flash.html

1. Use a non-journaling file system.
Journaling is great as it protects the file system against crashes and speeds up file system checks. However, each time there is a change on the file system it must be written down in the journal. This causes unnecessary writes. I have decided to give up file system integrity in order to prolong the life of my CF. To make up for not having a file system journal, I recommend using a UPS, storing your config files remotely, and having a backup Vyatta server ready to go.

You can edit the install system script to install, non-journaling, ext2 instead of ext3.

When booted to the live cd:
a. change line 360 of /opt/vyatta/sbin/install-system
to read:
output=$(mke2fs /dev/$ldrive 2>$1)
b. change line 421 to read:
output=$(mount –t ext2 /dev/$ldrive $rootfsdir)

2. Run install-system and make sure to install to the CF card. This could be labeled as sda if connected via USB.

3. Before you exit the live cd, mount the CF drive and edit the following files:

a. /boot/grub/menu.1st
Change the root kernel boot parameter from root=/dev/sda1 to root=/dev/hda1

b. /etc/fstab
Change the line to read:
/dev/hda1 / ext2 defaults,noatime 0 1
The noatime option disables recording of the time when files are accessed.
c. Boot to CF

4. Redirect Logging
Log files are constantly being written to /var/log/. The majority of these are syslog messages going to /var/log/messages. One can stop the syslog daemon, reduce the amount of information being logged, mount a thumb drive to /var/log/, or redirect where the logs are going. For the sake of simplicity, I recommend setting log output to the console. However, if this is a production environment or your logging firewall rules, you should probably mount a USB drive over /var/log.
a. from the configuration mode:
set system syslog console
commit

---------------------------------

http://www.vyatta.org/forum/viewtopic.php?t=502

------------------------------------


0.
Moving log files from /var/log to tmpfs is not so easy,
cause you need to create special directory structure [in /var/log]
for syslog and other daemons with logging capabilities.
For this purpose I've created debian package mksubdirs,
which creates needed directory structure on boot time.

1.
Add these lines to your /etc/fstab:
Code:
none                    /tmp            tmpfs   mode=1777       0 0
none                    /var/tmp        tmpfs   mode=1777       0 0
none                    /opt/vyatta/tmp tmpfs   mode=0755       0 0
none                    /var/log        tmpfs   mode=0755       0 0

And reboot Vyatta system.

2.
Download and install mksubdirs package:
Code:
cd /tmp
wget http://www.cyberlynx.eu/~cyberlynx.eu_cartman/vyatta/packages/mksubdirs_2010100200_all.deb
sudo dpkg -i mksubdirs_2010100200_all.deb

Reboot your Vyatta system again.

Source: http://vyatta.org/forum/viewtopic.php?t=4775

