Using partitions on DOC2000 (nftl)
Dan Brown
dan_brown at ieee.org
Sat Sep 4 12:55:20 EDT 2004
----- Original Message -----
From: "Jan Vestby" <jan at tronrud.no>
> The new diskonchip code can handle one additional partition beyond the
> formatted part.
This is true of NFTL-based devices. Newer INFTL-based devices can have four
partitions.
> I have only been able to use this by invoking the dformat /SIZE option in
> the
> 4.2 version of the DOS utilities. Howvever, this option is rather brutal:
> bad block table entries beyond the new "size" is silently dropped.
That's very interesting. And odd. When you say the BBT entries are
dropped, do you mean they aren't reported by dinfo, or that they really are
erased from the BBT table in the Media Header? If it's the latter, Linux
will still be aware of them and everything should behave properly.
> Formatting the DOC with the /USE percentage option preserves the bbt data.
> The resulting smaller size shows up in nftl media header entry
> FormattedSize.
>
> Is there any problems with using this parameter to perform the partioning,
> or have I overlooked something ?
Assuming I'm correctly remembering what the /USE parameter does, this won't
help you. The partition will still take up the same amount of space, but a
larger percentage of it will be in reserved (rather than usable) units. The
reserved units are used to consolitate data when needed for garbage
collection, and having more of them may increase the efficiency of NFTL.
There is a utility in the mtd util/ directory called docfdisk. This can be
used to alter INFTL-style partition tables. Somebody should really add the
ability to alter NFTL partitions as well. Any volunteers?
-Dan Brown
More information about the linux-mtd
mailing list