Cisco Flash File System tool

This is a tool for manipulating the flash file system used on Cisco flash memory cards. It requires an MTD driver for the flash cards and so only runs on Linux. There is an appropiate driver here.

This code is licensed under the GPL v2.

This software is still alpha! It has only been tested with a Class B filesystem.

Supported Operations

  • dir - list files.
  • delete - mark a file as deleted
  • erase - erase whole flash
  • get - Get a file from flash
  • put - Put a file onto flash
  • fsck - Check file checksums and check blank space is properly erased.

    Supported Filesystems

    There are three different Cisco flash file systems (Class A, B and C).
    See PCMCIA Filesystem Compatibility Matrix and Filesystem Information for information on which filesystems on used on which routers.
    See Using the Cisco IOS File System for more information on cisco flash IOS commands.

    This program fully supports Class B and partially supports Class A.

    Usage

    cffs - cisco flash file system reader
    Version 0.05  (C) Simon Evans 2002 (spse@secret.org.uk)
    Usage: cffs <device> <option> [files...]
            <device>  MTD Char device (eg /dev/mtd/0)
            -l, --dir       List files
            -d, --delete    Delete files
            -e, --erase     Erase flash
            -g, --get       Get files from flash
            -p, --put       Put files onto flash
            -f, --fsck      Check file system
            -h, --help      Usage information
            -v, --version   Show version
    
    Manual Page

    Examples

    An MTD device must always be specified. A default is not coded in because on a lot of PDAs and embedded systems /dev/mtd/0 usually points to a boot loader or other important partition. In this case, a careless cffs --erase would be fatal!.

    Directory Listing

    % ./cffs /dev/mtd/0 --dir
    	880   <no date>  [5B8E] [FFFF] running-config
    	856   <no date>  [E2DC] [FFFF] startup-config
    %
    

    Deleting a file

    % ./cffs /dev/mtd/0 --delete running-config
    % ./cffs --dir
    	880   <no date>  [5B8E] [FFFE] running-config [deleted]
    	856   <no date>  [E2DC] [FFFF] startup-config
    %
    

    Download

    Current Version is 0.06
    cffs-0.06.tgz

    Simon Evans
    Last modified: Mon Sep 30 02:51:37 BST 2002