[yocto] Make one directory writeable
Mike Looijmans
mike.looijmans at topic.nl
Wed Feb 13 02:08:11 PST 2019
As for the particular case of /mnt, on most images, /mnt is a symlink to
/media, and /media is (on) a filesystem in RAM, so it's already writeable.
If the write does not need to persist across reboots, use a tmpfs mount.
If your real problem is that you cannot create anything in /mnt (or /media for
modern users), the issue is that someone broke something in your image,
because that should work out of the box.
On 13-02-19 09:27, Josef Holzmayr wrote:
> Hi Bhupendra,
>
> On Wed, Feb 13, 2019 at 12:51:17PM +0530, Bhupendra Singh wrote:
>> Hello
>>
>> I have built core-image-minimal with read only rootfs then now I want to
>> make one directory (like /mnt) writable.
>>
>> Is it possible to make one directory writeable in read only rootfs if yes
>> ,please tell me how can I do same.
>
> This is not exactly yocto specific, general linux concepts apply. You
> can use a secondary, tertiary, ... partition or starage device and then
> mount that as read-write. But it always has to be a seperate filesystem.
> There is no way to make only one path of a given filesystem RW, it
> always means that the whole filesystem is writeable.
>
> Greetz
>
More information about the yocto
mailing list