sudo gainroot dd if=/dev/mmcblk0p1 of=/dev/mmcblk0p1 bs=512 count=1 skip=6 fsck -af /dev/mmcblk0p1
sudo gainroot apt-get update apt-get install recovery-tools