如何从单个快照映像每次启动Android系统?

时间:2018-01-15 12:48:15

标签: android hibernate linux-kernel filesystems ext4

我正在尝试减少Android M上的启动时间,现在它需要大约8秒。为此,我使用了休眠方法。一切都很好,Android系统每次正确启动,当且仅当我休眠并拍摄快照图像然后关闭它。但是我不想每次都拍摄快照图像,系统应该从单个快照图像恢复。

我尝试从同一张图片中恢复。它适用于第一次和第二次以后我得到ext4文件系统错误。

此分区属于android数据分区。我从这个分区得到的错误是:



[   64.250735] EXT4-fs error (device mmcblk0p26): ext4_mb_generate_buddy:758: group 9, block bitmap and bg descriptor inconsistent: 31166 vs 31165 free clusters
[   64.252813] <3> (3)[1507:PackageManager]Aborting journal on device mmcblk0p26-8.
[   64.267680] <3> (3)[1507:PackageManager]EXT4-fs (mmcblk0p26): Remounting filesystem read-only
[   64.268667] <3> (1)[1:init]init: Starting service 'media'...
[   64.269479] <3> (3)[1507:PackageManager]EXT4-fs error (device mmcblk0p26) in ext4_free_blocks:4881: Journal has aborted
[   64.272235] <3> (3)[1507:PackageManager]EXT4-fs error (device mmcblk0p26) in ext4_reserve_inode_write:4999: Journal has aborted
[   64.278537] <3> (3)[1507:PackageManager]EXT4-fs error (device mmcblk0p26) in ext4_reserve_inode_write:4999: Journal has aborted
[   64.283132] <3> (3)[1507:PackageManager]EXT4-fs error (device mmcblk0p26) in ext4_ext_remove_space:3035: Journal has aborted
[   64.286970] <3> (3)[1507:PackageManager]EXT4-fs error (device mmcblk0p26) in ext4_ext_truncate:4669: Journal has aborted
[   64.291775] <3> (3)[1507:PackageManager]EXT4-fs error (device mmcblk0p26) in ext4_reserve_inode_write:4999: Journal has aborted
[   64.294465] <3> (3)[1507:PackageManager]EXT4-fs error (device mmcblk0p26) in ext4_truncate:3894: Journal has aborted
[   64.297764] <3> (3)[1507:PackageManager]EXT4-fs error (device mmcblk0p26) in ext4_reserve_inode_write:4999: Journal has aborted
[   64.300437] <3> (3)[1507:PackageManager]EXT4-fs error (device mmcblk0p26) in ext4_orphan_del:2888: Journal has aborted
&#13;
&#13;
&#13;

我试图理解这个错误,第一个错误是因为RAM和分区中的文件系统元数据不匹配而来。即我的快照图像包含已安装的&#34; / data&#34;在RAM中具有旧文件系统数据的分区,并且在从快照映像恢复后在第二次引导时更新磁盘分区中的数据。我想这个文件系统数据应该在恢复进程之前更新。

请建议我解决上述错误的方法吗?

0 个答案:

没有答案