clean up permissions and rework on ramdisk

Signed-off-by: Willi Ye <williye97@gmail.com>