Recording method and apparatus for optical recording medium with a laminated structure having ROM and RAM layers