A software driven method for recording data to optical media is provided. Embodiments
include a software-driven method for writing multi-session optical media that is
compliant with UDF Revision 1.02 standards and specifications. An optical media
with one or more sessions recorded to the media space is received for recording
a subsequent session. The start of the first partition space in a first session
is located and a sector is determined for the start of the subsequent session.
Data is prepared for recording to the subsequent session, and the partition space
of the subsequent session is defined to start at the sector of the start of the
first partition space in the first session on the optical media. File identification
and file entry structures are imported into the subsequent session, and the subsequent
session is written in compliance with UDF Revision 1.02, and providing access to
all user data recorded to the multi-session optical media space.