Packet writing (or incremental packet writing, IPW) is an optical disc recording technology used to allow write-once and rewritable CD and DVD media to be used in a similar manner to a floppy disk from within the operating system.
Packet writing allows users to create, modify, and delete files and directories on demand without the need to burn a whole disc. Packet writing technology achieves this by writing data in incremental blocks rather than in a single block.
Deleting files and directories of a CD-R using packet writing technology does not recover the space occupied by these objects but, rather, they are simply marked as being deleted (making them effectively hidden). Similarly, changes to files cause new instances to be created instead of replacing the original files. Because of this, the available space on a non-rewritable medium using packet writing technology will decrease every time its content is modified.
Due to the characteristics of optical rewritable media such as CD-RWs and DVD-RWs, the ability of data sectors to hold their contents diminishes when changing them frequently (since re-crystallized alloy de-crystallizes). To cope with this the packet writing system can remap bad sectors with good sectors as required. These bad sectors cannot be recovered by formatting the media.