Access entire device with mtdblock0

Ricard Wanderlof ricard.wanderlof at
Wed Jan 14 06:25:33 EST 2009

On Wed, 14 Jan 2009, Mike Frysinger wrote:

> On Wed, Jan 14, 2009 at 04:00, Peter Korsgaard wrote:
>> "Mike" == Mike Frysinger <writes:
>>>> Any recommendations on a simple way to create a partition using the
>>>> entirety of flash?
>> Why not just add a partition spanning the entire device in addition to
>> the other partitions?
> i was not aware partition tables allowed for overlaps.  if that's
> true, then the answer is obvious and easy to implement in boards ...

Sure does. We've used it for quite a while, using /dev/mtd0 to refer to 
the whole flash, with /dev/mtd1,2,3... referring to the individual 

Ricard Wolf Wanderlöf                           ricardw(at)
Axis Communications AB, Lund, Sweden  
Phone +46 46 272 2016                           Fax +46 46 13 61 30

More information about the linux-mtd mailing list