support image creation when data partition is in read-write mode