Updating UBIFS rootfilesystem

Matthias Fuchs matthias.fuchs at esd.eu
Fri Feb 24 03:14:32 EST 2012


On 02/13/2012 02:57 PM, Artem Bityutskiy wrote:
> On Wed, 2012-02-08 at 13:44 +0100, Matthias Fuchs wrote:
>> Hi,
>>
>> is there an elegant way to update an UBIFS rootfilesystem?
>>
>> Let's say I have enough flash space for my actual rootfilesystem
>> (rootfs1) and a new version (rootfs2). So while running from rootfs1
>> I updated rootfs2 volume with a new rootfilesystem.
> 
> I you cannot update a mounted fs - you have to unmount it first. If you
> are able to do this, you should be able to ubirename.
So I was thinking that a ubirename is not really an update and expected the rename
op to work even on a mounted fs.

I solved the issue by booting an initramfs first. There I do the rename "rootfs2" exists and then switch root 



More information about the linux-mtd mailing list