rootfs: fix disk format bugs.