SD and ramdisk fix