Hi Mow -
On Jan 17, 2008, at 10:50 PM, mowengineer wrote:
Working on a TS7300 that I will be polling network based equipment and
serial based equipment at a defined interval and logging all data
captured onto a SD card in the second SD slot.
Has anyone split a partition on a SD card to create two separate
partitions? I want to put the /VAR directory on a separate RW
partition
and the rest of the OS on a RO partition.
The second SD card would be RW for logging.
Then I can log data, have system logs on /VAR but remain RO on the
rest of the system, preventing any issues with loss of power or user
reboots.
While I can't speak to the particular hardware, what you describe is
both quite straightforward and quite common in the Linux world.
Splitting an /existing/ partition and expecting to maintain data can
be problematic, depending on how the data is laid out in the
partition, but its simply a matter of creating the partition (fdisk),
writing a blank filesystem (mkfs.ext3), moving the existing data in
the /var partition to the second disk (or partition on the same dist),
and specifying a mountpoint in /etc/fstab.
hth,
/-Will
smime.p7s
Description: S/MIME cryptographic signature
|