Patent ID: 7450818

Claim:
A data recording apparatus comprising: a receiving part configured to receive program information and information related to the program information; a first deciding part configured to decide whether or not the program information can be recorded on a recording medium based on the related information; a first ensuring part configured to, when it is decided that the program information can be recorded on the recording medium, ensure a first area for recording the program information on the recording medium; a second deciding part configured to decide whether or not a second area contiguous to the first area can be ensured to record an increase in a total data size of the program information when, after recording the program information on the recording medium has been started and a total data amount of the program information to be recorded on the recording medium has increased, the first area can not entirely store the program information; a second ensuring part configured to ensure the second area when it is decided that the second area can record the increase in the total data size of the program information; a third ensuring part configured to ensure a third area independent from the first area when it is not decided that the second area can record the increase in the total data size of the program information; a recording part configured to record the received program information on the first and second areas or on the first and third areas ensured on the recording medium based on the decision of the second deciding part; and moving means for, when it is decided that the second area cannot record the increase in the total data size of the program information, moving other information already stored in an area contiguous from the first area to another area on the recording medium, wherein the second ensuring part ensures the contiguous area as the second area.