[Sugar-devel] Restoring the journal from an 0.82 image
Sascha Silbe
sascha-ml-ui-sugar-devel at silbe.org
Fri Jul 2 04:12:02 EDT 2010
Excerpts from Luis Michelena's message of Thu Jul 01 23:50:12 +0000 2010:
> I have reflashed my XO (bettie given by Erik
> Garrison<http://www.facebook.com/profile.php?id=3802&ref=search>after
> his layout from olpc) with the 0.88 beta image(I have another, but has
> the Uruguayan ofw keys), and I'm amazed by the improvements.
Thanks (on behalf of all developers) for this praise!
> But I'd would like to restore the 0.82 journal to the new configuration, is
> the journal format in 0.82 compatible with 0.88?, to try to backport the
> backup/restore scripts to the 0.82?
The best way is to just copy the entire home directory (or at least
~/.sugar) before the first start of the new version. The old data store
will be automatically detected and imported ("migrated").
As you have already run the new version, there are basically two options:
1. You don't care about anything you have done since you upgraded.
In this case just remove everything in the new home directory and
copy over the old one.
2. You want to keep the new configuration (wireless network secrets etc.)
and data store entries while importing the old data store entries.
You need to copy over .sugar/default/datastore from the old home
directory to the new one, _without_ removing this directory in the
new home directory. After copying, remove
.sugar/default/datastore/version to trigger a migration of 0.82
data store entries on next start of Sugar.
Sugar must NOT be running while you are doing these operations.
> At the moment, I'm loop(mtdblock and block2mtd ) mounting the 0.82 image,
> but I haven't figured out how to copy the journal.
No idea why you need mtdblock and block2mtd. I use this fstab entry on my
XO-1s to mount the NAND flash (all my installations are on external SD
cards or use NFS root):
mtd0 /media/nand jffs2 defaults,noatime 0 0
Sascha
--
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100702/08a830d5/attachment-0001.pgp
More information about the Sugar-devel
mailing list