[yocto] /dev/root entry in mtab file

Marc Ferland marc.ferland at gmail.com
Mon Nov 21 13:30:29 PST 2011


Hi,

I noticed that the /etc/mtab file on my system image contains the /dev/root
entry which doesn't exist on the file system. This causes some problems
with applications that parse mtab to list currently mounted file systems.

So far my only option has been to parse the kernel command line and extract
the "root" option... it works but then I have to handle cases like
"root=UUID=".

Is this a known issue? If this is normal behavior, is there a generic way
to list mounted partitions correctly?

Here's my /etc/mtab:
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,relatime,barrier=0,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=60248k,nr_inodes=15062,mode=755 0 0
proc /proc proc rw,relatime 0 0
tmpfs /mnt/.psplash tmpfs rw,relatime,size=40k 0 0
sysfs /sys sysfs rw,relatime 0 0
none /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
tmpfs /var/volatile tmpfs rw,relatime 0 0
tmpfs /media/ram tmpfs rw,relatime 0 0

Any help appreciated!

Regards,

Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20111121/2fa20343/attachment.html>


More information about the yocto mailing list