ramdisk: clean-up and prepare work areas