Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I tried to do my first backup of critical data to a CD-RW. The good news is that using K3B, I was able to do the backup. The bad news is that when I try to reuse, edit, delete (in other words any kind of subsequent write process) to the CD-RW, I get told the CD is write protected. Maybe the fact that the CD-RW was originally formatted on a M$ box is a problem?
The man pages on mount led me to try
mount -o remount -o rw /dev/sr0 /media/cdrecorder
and it looked like it was going to work. Using the mount command with no options to check the mounts showed the CD-RW as now "rw" versus "ro". But any attempt to actually write to the disk a second time gets the same denial, that it is write protected.
I'm an old korn shell guy, so setting up a script and letting cron do my backups for me would be fine. I just don't have any idea how to get the CD-RW to truly act like an editable disk drive.
Don't you have to 'blank' the CD before you re-use it, unless you specified mulit-session at first create time. Once it is 'fixated' it is write protected. It is the 3rd option from the left. It goes Burn:Copy:Blank
In short, you can't. What it sounds like you want to do is called Packet Writing. Where you mount the disc as if it were another HD, and then write to it as such. There are actually projects going on to do this, but it takes a bit of work to get them going...
You can erase and write to CDRW's though, using the iso9660 filesystem (ro). Here's how to erase/format the disc:
cdrecord dev=x,x,x speed=x -v -eject blank=all
where dev=x,x,x is what you see when you type:
I tried the cdrecord command. I got all excited and thought it was working. Unfortunately, I got the folllowing output:
# cdrecord dev=0,0,0 speed=4 -v -eject blank=all
Cdrecord 2.0 (i686-suse-linux) Copyright (C) 1995-2002 Jörg Schilling
TOC Type: 1 = CD-ROM
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
cdrecord: Warning: using inofficial libscg transport code version (email@example.com '@(#)scsi-linux-sg.c 1.75 02/10/21 Copyright 1997 J. Schilling').
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'LITE-ON '
Identifikation : 'LTR-16102B '
Revision : 'OQSB'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1966272 = 1920 KB
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Reference speed: 2
Is not unrestricted
ATIP start of lead in: -11635 (97:26/65)
ATIP start of lead out: 337350 (75:00/00)
1T speed low: 0 (reserved val 0) 1T speed high: 4
2T speed low: 8 2T speed high: 0 (reserved val 10)
power mult factor: 4 6
recommended erase/write power: 3
A1 values: 02 4C B0
A2 values: 4A C8 06
Disk type: Phase change
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
Starting to write CD/DVD at speed 4 in real BLANK mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Blanking entire disk
cdrecord: Input/output error. blank unit: scsi sendcmd: no error
CDB: A1 00 00 00 00 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 65.487s timeout 9600s
cdrecord: Cannot blank disk, aborting.
When I cd to the mount point and do an ls, I get the classic, "total 0" that looks like an empty directory. But if I umount, then try to mount again, it won't let me, giving me the following:
# mount -t iso9660 -o rw /dev/sr0 /media/cdrecorder
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
or too many mounted file systems
Sorry to be such a pest! While you're looking at this, I may try a CD-RW that hasn't been formatted under windows?