Re: Discovering current MTD partition

Ricard Wanderlof
2011-04-28T07:31:25Z

On Wed, 27 Apr 2011, umar@janteq.com wrote:

> Hi,
>
> /proc/mounts as well doesn't relay any info about /dev/mtdXX.

Sorry, you are right of course. It just seems to say /dev/root on my
system.

The df command however seems to figure out which mtd device is mounted on
/ . I don't know exactly how it finds this out though. I'm pretty sure it
uses /proc/mounts, because if /proc/mounts is missing it doesn't output
anything, but it must be getting extra information from somewhere.

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