UBIFS corruption after software upgrade

Artem Bityutskiy dedekind1 at gmail.com
Wed Aug 22 09:02:18 EDT 2012


On Tue, 2012-07-24 at 17:02 -0400, Russell Zuck wrote:
> I am attempting to troubleshoot an issue where the root partition 
> (ubi0_0) of my embedded platform becomes corrupted after a few upgrades 
> of our system software.
> 
> Upgrade Process:
> 1. upgrade daemon checks for upgrades, from a file server, periodically.
> 2. If available, the upgrade daemon retrieves the upgrade package (just 
> a tarball) and unpacks it.  The tarball contains several install 
> scripts, a version file, and another tarball that contains all of our 
> system software, required config files, and lib dependencies.
> 3. The upgrade daemon is triggered to deploy the upgrade package.
> 4. Deploy
> 	a. run pre-install script
> 	b. run install script. This just unpacks the system software tarball 
> onto the existing root filesystem.
> 	c. run the post-install script
> 	d. cleanup the upgrade staging directory
> 	e. reboot
> 
> Upgrade Process Variations:
> 1. Terminate all system software before deploying the upgrade package
> 2. sync after unpacking the system software package
> 3. sync again before rebooting

Well, I do not see anything which could corrupt the file-system from the
description.

> UBIFS extra self-checks: I mounted the debugfs but don't know how to 
> make use of of the self-checks.

You just need to enable them by writing 1 to the corresponding files.
See http://www.linux-mtd.infradead.org/faq/ubifs.html#L_how_debug

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120822/ae50d519/attachment.sig>


More information about the linux-mtd mailing list