fix partition creation for ram sized parts