RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Erasing a CD-RW with a cdrecord command

Erasing a CD-RW disk on a Linux system can be as easy as entering one line command using cdrecord utility. The first part of the solution is to find a character device name of our CD/DVD writer. This can be done by a wodim tool:

wodim --devices

OUTPUT:

wodim: Overview of accessible drives (1 found) :
-------------------------------------------------------------------------
 0  dev='/dev/scd0'     rwrw-- : 'TSSTcorp' 'CD/DVDW SH-S183L'
-------------------------------------------------------------------------

From the output above we can see a path to a actual character device file which is /dev/scd0 and the model name SH-S183L. Now insert your CD-RW into the drive and for a full blank use issue a following command:

$ cdrecord -v blank=all dev=/dev/scd0

If you wish a fast blank which take considerably less time to erase use:

$ cdrecord -v blank=fast dev=/dev/scd0

In case if you run into some error during the blanking process you may try to include a -force option:

$ cdrecord -force -v blank=all /dev/scd0 

More cdrecord command blanking options:

       all             blank the entire disk
        disc            blank the entire disk
        disk            blank the entire disk
        fast            minimally blank the entire disk (PMA, TOC, pregap)
        minimal         minimally blank the entire disk (PMA, TOC, pregap)
        track           blank a track
        unreserve       unreserve a track
        trtail          blank a track tail
        unclose         unclose last session
        session         blank last session

Share this linux post:

Submit Erasing a CD-RW with a cdrecord command in Delicious Submit Erasing a CD-RW with a cdrecord command in Digg Submit Erasing a CD-RW with a cdrecord command in FaceBook Submit Erasing a CD-RW with a cdrecord command in Google Bookmarks Submit Erasing a CD-RW with a cdrecord command in Stumbleupon Submit Erasing a CD-RW with a cdrecord command in Technorati Submit Erasing a CD-RW with a cdrecord command in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download