Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
here the facts:
i have a MITSUMI CDR-4802TE 4x, ATAPI, cd writer...
Debian sarge with 2.6.5
The writer is on the compatibility list of cdrecord. I didnt install any SCSI emulation, cause
i read somewhere that the new kernel doesnt need this.
I am a total newbie on burning CDs with linux. So i installed xcdroaster,tried to burn a CD but it didnt work. So i tried the command line version with:
cdrecord -v dev=/dev/hdc /tmp/track-01.img
here is the log file:
------------------------------------------------------------------------------------------------------------
Hell-linux:~# cdrecord -v dev=/dev/hdd /tmp/track-01.img
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01a27 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
and thus may have bugs that are not present in the original version.
Please send bug reports and support requests to <cdrtools@packages.debian.org>.
The original author should not be bothered with problems of this version.
TOC Type: 1 = CD-ROM
scsidev: '/dev/hdd'
devname: '/dev/hdd'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'MITSUMI '
Identifikation : 'CR-4802TE '
Revision : '1.4D'
Device seems to be: Philips CDD-522.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC SWABAUDIO
Supported modes: TAO PACKET SAO SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1638400 = 1600 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 4 MB
Total size: 5 MB (00:33.64) = 2523 sectors
Lout start: 5 MB (00:35/48) = 2523 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Is not unrestricted
Is not erasable
Disk sub type: Medium Type B, low Beta category (B-) (4)
ATIP start of lead in: -12421 (97:16/29)
ATIP start of lead out: 359848 (79:59/73)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 71
Manufacturer: SHENZEN SG&GAST DIGITAL OPTICAL DISCS
Manufacturer is guessed because of the orange forum embargo.
The orange forum likes to get money for recent information.
The information for this media may not be correct.
Blocks total: 359848 Blocks current: 359848 Blocks remaining: 357325
Starting to write CD/DVD at speed 4 in real TAO mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
resid: 198
cdrecord: Success. mode select g1: scsi sendcmd: no error
CDB: 55 10 00 00 00 00 00 01 02 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 06 00 00 00 00 1A 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x1A Qual 0x00 (parameter list length error) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.002s timeout 40s
cdrecord: Warning: using default CD write parameter data.
Mode Select Data 00 10 00 00 05 32 01 04 08 00 00 00 00 00 00 00 00 00 00 96 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cdrecord: Cannot open new session.
cdrecord: Success. prevent/allow medium removal: scsi sendcmd: no error
CDB: 1E 00 00 00 00 00
status: 0x1 (GOOD STATUS)
cmd finished after 0.000s timeout 40s
Writing time: 0.020s
cdrecord: fifo had 64 puts and 0 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
Hell-linux:~#
------------------------------------------------------------------------------------------------------------------
I haven't ever burned discs under the 2.6 kernel however the line "is not unrestricted" hints to me that the disc has already had something burned to it and is a single write disc. As another option I think cdrecord likes the drive specified as dev=ATAPI:0,1,0 or similar when burning to ATAPI drives. The scsi errors might indicate that it was still treating it as a SCSI device. Just a few thoughts on the problem.
I think the problem is that there's already data on the CD (4 MB) and that you didn't make it a multi-session CD, so you can't write on it again. Did you try burning on an empty CD? If so, did it give you the same problems?
Here's the line that makes me believe that you've already burned data on this CD:
'cdrecord: Cannot open new session.'
Of course, if you made it a multi-session CD using Nero or any other Windows-based CD-writing program and then want to add another session, I'm not sure how cdrecord will handle it or if it can.
As to the line:
cdrecord -v dev=/dev/hdc /tmp/track-01.img
I think that's okay. Of course, if you know the speed, put it yourself instead of making cdrecord try to determine it.
"Here are the steps I used:
1. Burn the first ISO image:
mkisofs -J -L -R -o freshportsbackup.raw freshports.backup.2000.12.*
2. Record that image using the multi and data flags:
cdrecord -v -multi -data speed=12 dev=0,5,0 freshports.raw
Remember you may want to should adjust speed to suit your CD drive
3. Create the second image:
1. Locate the start of the free space on the CD:
# cdrecord -msinfo dev=0,5,0
0,12639
2. Create the second image using the starting location and specify the CD write device:
mkisofs -J -L -R -o freshportsbackup.raw -M /dev/cd0a -C 0,12639 freshports.backup.2000.12.*
Note: /dev/cd0a is my CD writer.
Note: 0,12639 is obtained during step 3a.
4. Burn the second ISO image:
cdrecord -v -multi -data speed=12 dev=0,5,0 freshportsbackup.raw
Remember you may want to should adjust speed to suit your CD drive.
If you forget which device is your cdwrite, look in /etc/fstab where you should see something like this:
$ grep cd /etc/fstab
/dev/cd0a /cdrom cd9660 ro,noauto 0 0
"
"This example will show how I first burned some FreshPorts backups and then a cvs repository. I have snipped some bits from the output.
Create the first ISO:
# mkisofs -J -L -R -o freshports.raw mycvs.2000.12.31.tgz
Warning: creating filesystem that does not conform to ISO-9660.
Total translation table size: 0
Total rockridge attributes bytes: 261
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used c164
1237 extents written (2 Mb)
Burn the first ISO:
# cdrecord -v -multi -data speed=12 dev=0,5,0 freshports.raw
Cdrecord 1.9 (i386-unknown-freebsd4.2) Copyright (C) 1995-2000 Jörg Schilling
[snip]
Blocks total: 336225 Blocks current: 336225 Blocks remaining: 334986
Starting to write CD/DVD at speed 12 in write mode for multi session.
Last chance to quit, starting real write in 1 seconds.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Starting new track at sector: 0
Track 01: 2 of 2 MB written (fifo 100%).
Track 01: Total bytes read/written: 2533376/2533376 (1237 sectors).
Writing time: 23.826s
Fixating...
Fixating time: 23.689s
cdrecord: fifo had 40 puts and 40 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
Have a quick look at the drive contents:
# mount /cdrom
# ls -l /cdrom
total 2411
-rw-r--r-- 1 dan dan 2469096 Dec 31 11:50 mycvs.2000.12.31.tgz
# umount /cdrom
Find out the where the free space starts:
# cdrecord -msinfo dev=0,5,0
0,12639
Create the second ISO using the free space information from the previous step:
# mkisofs -J -L -R -o freshportsbackup.raw -M /dev/cd0a -C 0,12639 my.backup.2000.12.*
Warning: creating filesystem that does not conform to ISO-9660.
[snip]
52.89% done, estimate finish Sun Dec 31 12:59:18 2000
70.51% done, estimate finish Sun Dec 31 12:59:22 2000
88.17% done, estimate finish Sun Dec 31 12:59:23 2000
Total translation table size: 0
Total rockridge attributes bytes: 1885
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used d164
28369 extents written (55 Mb)
Burn the second ISO:
# cdrecord -v -multi -data speed=12 dev=0,5,0 freshportsbackup.raw
[snip]
Blocks total: 336225 Blocks current: 323586 Blocks remaining: 307854
Starting to write CD/DVD at speed 12 in write mode for multi session.
Last chance to quit, starting real write in 1 seconds.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Starting new track at sector: 12639
Track 02: 30 of 30 MB written (fifo 100%).
Track 02: Total bytes read/written: 32215040/32215040 (15730 sectors).
Writing time: 33.053s
Fixating...
Fixating time: 10.438s
cdrecord: fifo had 508 puts and 508 gets.
cdrecord: fifo was 0 times empty and 361 times full, min fill was 95%.
Have a look at the contents now:
# mount /cdrom
# ls /cdrom
my.backup.2000.12.17.tgz
my.backup.2000.12.18.tgz
my.backup.2000.12.19.tgz
my.backup.2000.12.20.tgz
my.backup.2000.12.21.tgz
my.backup.2000.12.22.tgz
my.backup.2000.12.24.tgz
my.backup.2000.12.25.tgz
my.backup.2000.12.26.tgz
my.backup.2000.12.27.tgz
my.backup.2000.12.28.tgz
my.backup.2000.12.29.tgz
my.backup.2000.12.30.tgz
my.backup.2000.12.31.tgz
mycvs.2000.12.31.tgz
# umount /cdrom
"
when i use "cdrecord -data -speed=4 -tao -v -dev ATAPI:/dev/hdd test.iso" the firs time i get this:
------------------------------------------------------------------------------------
Hell-linux:/tmp# cdrecord -data -speed=4 -tao -v -dev ATAPI:/dev/hdd test.iso
Cdrecord-Clone 2.01a29 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
and thus may have bugs that are not present in the original version.
Please send bug reports and support requests to <cdrtools@packages.debian.org>.
The original author should not be bothered with problems of this version.
TOC Type: 1 = CD-ROM
scsidev: 'ATAPI:/dev/hdd'
devname: 'ATAPI:/dev/hdd'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 1
Device type : Disk
Version : 0
Response Format: 0
Vendor_info : 'ADAPTEC '
Identifikation : 'ACB-5500 '
Revision : 'FAKE'
Device seems to be: Adaptec 5500.
cdrecord: Sorry, no CD/DVD-Drive found on this target.
---------------------------------------------------------------------------------------------
if i execute the exact same command shortly after i get this:
---------------------------------------------------------------------------------------------
Hell-linux:/tmp# cdrecord -data -speed=4 -tao -v -dev ATAPI:/dev/hdd test.iso
Cdrecord-Clone 2.01a29 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
and thus may have bugs that are not present in the original version.
Please send bug reports and support requests to <cdrtools@packages.debian.org>.
The original author should not be bothered with problems of this version.
TOC Type: 1 = CD-ROM
scsidev: 'ATAPI:/dev/hdd'
devname: 'ATAPI:/dev/hdd'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'MITSUMI '
Identifikation : 'CR-4802TE '
Revision : '1.4D'
Device seems to be: Philips CDD-522.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC SWABAUDIO
Supported modes: TAO PACKET SAO SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1638400 = 1600 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 326 MB
Total size: 375 MB (37:11.70) = 167378 sectors
Lout start: 375 MB (37:13/53) = 167378 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Is not unrestricted
Is not erasable
Disk sub type: Medium Type B, low Beta category (B-) (4)
ATIP start of lead in: -12421 (97:16/29)
ATIP start of lead out: 359848 (79:59/73)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 71
Manufacturer: SHENZEN SG&GAST DIGITAL OPTICAL DISCS
Manufacturer is guessed because of the orange forum embargo.
The orange forum likes to get money for recent information.
The information for this media may not be correct.
Blocks total: 359848 Blocks current: 359848 Blocks remaining: 192470
Starting to write CD/DVD at speed 4 in real TAO mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
cdrecord: Input/output error. mode select g1: scsi sendcmd: no error
CDB: 55 10 00 00 00 00 00 01 02 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 06 00 00 00 00 1A 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x1A Qual 0x00 (parameter list length error) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.001s timeout 40s
cdrecord: Warning: using default CD write parameter data.
Mode Select Data 00 10 00 00 05 32 01 04 08 00 00 00 00 00 00 00 00 00 00 96 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cdrecord: Cannot open new session.
cdrecord: Input/output error. prevent/allow medium removal: scsi sendcmd: no error
CDB: 1E 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 40s
Writing time: 0.015s
cdrecord: fifo had 64 puts and 0 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
Hell-linux:/tmp#
---------------------------------------------------------------------------------------------
i am sure there is no data on the CD. Here is the output of "cdrecord -dev ATAPI:/dev/hdd -msinfo"
---------------------------------------------------------------------------------------------
Hell-linux:/tmp# cdrecord -dev ATAPI:/dev/hdd -msinfo
cdrecord: Sorry, no CD/DVD-Drive found on this target.
Hell-linux:/tmp# cdrecord -dev ATAPI:/dev/hdd -msinfo
cdrecord: Input/output error. read toc: scsi sendcmd: no error
CDB: 43 00 01 00 00 00 00 00 04 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 06 00 00 00 00 24 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x24 Qual 0x00 (invalid field in cdb) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 40s
cdrecord: Cannot read session offset
cdrecord: Input/output error. prevent/allow medium removal: scsi sendcmd: no error
CDB: 1E 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 40s
Hell-linux:/tmp#
---------------------------------------------------------------------------------------------
so.. what am I doing wrong ?!?!?!
ps:I can't install k3b, cause i dont' wanna install all those kde libraries.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.