Discovering current MTD partition
Ricard Wanderlof
ricard.wanderlof at axis.com
Thu Apr 28 05:09:44 EDT 2011
On Thu, 28 Apr 2011, Artem Bityutskiy wrote:
>> Well, in this case /dev/cmdline says
>>
>> console=ttyS0 root=/dev/mtdblock3 rw rootfstype=jffs2 init=/linuxrc
>>
>> so no mention of /dev/root there.
>
> /dev/root is the alias for whatever is in root=, so in your
> case /dev/root = /dev/mtdblock3
Yes, I understand that, I was just mentioning the fact that it was not
necessarily possible to determine the root file system partition from
/proc/mounts as it uses the /dev/root alias there.
/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
More information about the linux-mtd
mailing list