I've been having lots of trouble with my SD and local filesystems getting corrupted, which in turn has been causing the flush-179 process to go ballistic (100% CPU loop, reboot hangs, etc.). If only there was a way to run a quick FSCK(8) on my Android's unmounted filesystems to check for problems. Well, there is!
This may be old, old news to some of the more seasoned OS hackers, so please be kind with any negative feedback about it being intuitively obvious. It wasn't to me, but after some research and testing, I've come up with these simple steps:
- Dave
This may be old, old news to some of the more seasoned OS hackers, so please be kind with any negative feedback about it being intuitively obvious. It wasn't to me, but after some research and testing, I've come up with these simple steps:
- Boot into Recovery
- Connect via USB to ADB shell
Code:C:\Scratch\Android> [B]adb devices[/B] C:\Scratch\Android> [B]adb shell[/B]
- Mount /system and /data to determine the /dev/block names, then umount each
Code:~ # [B]mount /system[/B] ~ # [B]mount /data[/B] ~ # [B]df[/B] Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 308620 64 308556 0% /dev /dev/block/mmcblk0p27 295509 121021 159231 43% /cache /dev/block/mmcblk0p26 1184268 848052 276060 75% /data /dev/block/mmcblk0p25 562384 461416 72400 86% /system ~ # [B]umount /system[/B] ~ # [B]umount /data[/B]
- Run e2fsck against each /dev/block filesystem
Code:~ # [B]e2fsck -n /dev/block/mmcblk0p25[/B] e2fsck 1.41.6 (30-May-2009) /dev/block/mmcblk0p25: clean, 4168/35760 files, 117605/142847 blocks ~ # [B]e2fsck -n /dev/block/mmcblk0p26[/B] e2fsck 1.41.6 (30-May-2009) /dev/block/mmcblk0p26: clean, 7173/75200 files, 216745/300799 blocks ~ #
- Dave