[poky] file permissions in the rootfs

Gary Thomas gary at mlbassoc.com
Sun Aug 18 12:51:32 PDT 2013


On 2013-08-18 04:40, Andy Ng wrote:
> Dear List,
>
> I try to build Poky 7.0.1  and the final rootfs image doesn't not mount with the following problem:
>
> ----------------------8<-------------------------8<------------------------------
> BIFS: mounted UBI device 0, volume 0, name "polatisnic-rootfs"
> UBIFS: mounted read-only
> UBIFS: file system size:   10737408 bytes (10485 KiB, 10 MiB, 82 LEBs)
> UBIFS: journal size:       1964160 bytes (1918 KiB, 1 MiB, 15 LEBs)
> UBIFS: media format:       w4/r0 (latest is w4/r0)
> UBIFS: default compressor: lzo
> UBIFS: reserved for root:  0 bytes (0 KiB)
> VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
> devtmpfs: mounted
> Freeing init memory: 208K
> INIT: version 2.88 booting
> mount: permission denied (are you root?)
> mount: permission denied (are you root?)
> grep: /proc/filesystems: No such file or directory
> mount: permission denied (are you root?)
> grep: /proc/mounts: No such file or directory
> grep: /proc/mounts: No such file or directory
> Remounting root file system...
> mount: can't read '/etc/mtab': No such file or directory
> ------------------------8<-----------------------------------8<------------------
>
> After a bit of research, I have found out that the busybox was populated in the rootfs
> under ownership of "andreas:andreas" instead of "root:root", and its symbolic links under "root:root"
>
> I fixed manually the ownership and it booted  up.
>
> Does anyone knows what might be going wrong in my build process?

Explain your build process in detail (UBIFS is not a very common deployment)
in order to get help.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the poky mailing list