Storage media can be classified by their data storage mechanism, such as magnetic, optical, or solid-state.