Revert "ramdisk reverse some changes"

This reverts commit c751e45f2c8648c7a0e6c221bff9024b730fdeac.