Patent ID: 7167429

Claim:
A method for recording a plurality of data sets onto an optical storage medium by utilizing a temporary storage device in an optical storage system, the optical storage system comprising a memory for storing the plurality of data sets, the optical storage medium comprising a plurality of data blocks and a plurality of spare data blocks being installed on the optical storage medium, each data block being utilized for recording a data set, each spare data block being utilized for substituting for a defective data block to record the data set corresponding to the defective data block, the method comprising: storing a plurality of data sets corresponding to a plurality of defective data blocks in the memory into the temporary storage device; re-arranging a sequence of the plurality of data sets corresponding to the plurality of defective data blocks in the temporary storage device according to a sorting process; and recording the plurality of re-arranged data sets in the temporary storage device into the plurality of spare data blocks of the optical storage medium.