Manage a flash filesystem
flashctl [-eFfimruvxz] [-A] [-a flags] [-b align] [-c flag] [-L] [-l limit] [-n path] [-o offset] -p path [-s num] [-U] [-u] [-v...]
The options are processed in the order given, and apply to the last partition specified by a -p option, letting you control multiple partitions with one command.
|Use this option only with a "raw" device (e.g. /dev/fs0); don't use it with a mounted partition. You can't use the -l and -o options with the -A option.|
If you specify the -v option for verbose output, flashctl outputs a period (.) for every partition unit that it erases. On RAM disk, the unit size is 64K; on other devices, it varies. This output is reassuring because it can take several minutes to erase slow flash devices.
|The -L option fails if the partition
You can use /dev/fs0 to bypass the mounted filesystem check, but we don't recommend that you do so, because the /dev/fs0 path bypasses all protection mechanisms. If you use it, the flash driver doesn't know what filesystem or partition the locking affects. The filesystem might think the flash is writable and suddenly it isn't. The filesystem will get very confused, and write operations will start to fail. Worse yet, if you lock a single block in a filesystem via /dev/fs0, most of your writes will fail and suddenly stop working.
This option overrides any mountpoint specified with the mount attribute of the mkefs command.
|The -U option fails if the partition
You can use /dev/fs0 to bypass the mounted filesystem check, but we don't recommend that you do so.
The flashctl utility is used to manage a flash filesystem. The utility interacts with the flash filesystem driver using devctl() messages. Using flashctl, you can erase and format a raw partition, force a reclaim operation, and get information about flash filesystem partitions.
The flashctl utility rounds the values of the -o and -l ("el") options down to the nearest block bound. If the range specified exceeds the partition size, it's rounded down to fit. If you use the -v option, flashctl displays what the values have been rounded to.
Create a flash filesystem between 1M and 3M in a 4M raw partition:
flashctl -p /dev/fs0p0 -o 1M -l 2M -e -f
|This command line results in this organization:
Erase, format, and then mount (as /fs0p0) the flash filesystem partition /dev/fs0p0:
flashctl -p /dev/fs0p0 -e -f -m
Mount the given flash filesystem partition as /flash:
flashctl -p /dev/fs0p0 -n /flash -m
Use the following command to format the range from 3 to 6 MB, if the layout is unknown:
flashctl -p /dev/fs0p0 -F -o 3m -l 6m -f
|For devf-ram partitions only, you must format and erase a partition before you can mount the flash filesystem. Otherwise, you may get an error message flashctl: mounting partition failed.|
The mount facility (with the -m and -u options) don't provide complete mount functionality, such as read-only (mount -r) and special options (mount -o).
devf-800fads, devf-generic, devf-i365sl, devf-mtx600-w8, devf-p5064, devf-ppaq, devf-ram, devf-rpx-lite, devf-sc400, devf-vr41xx, mkefs
"FFS3 filesystem" in the Filesystems chapter of the System Architecture.