Skip to contentSkip to conversation

can I write to the cdrom through writing to the device file sr0?

DISCUSSION jeff shia 3 participants 5 messages Aug 18, 2005

lore
Share & tools
lore

jeff shia

author
#0 lore raw

I want to write a cdrw user space driver just like cdreord,but the cdrecord is too complex and huge!can I write to the cdrom through writing to the device file sr0,here sr0 is the device file of the cdrw.

#1 lore raw

Hi Jeff :)

* jeff shia <[email protected]> dixit:

Quoted 4 lines

I want to write a cdrw user space driver just like cdreord,but the cdrecord is too complex and huge!can I write to the cdrom through writing to the device file sr0,here sr0 is the device file of the cdrw.

Although someone may say that the size of cdrecord is
proportional to the author's ego, the crude reality is that cdrecord has to be such complex and huge (well, I don't think it is huge, but...). It has to be complex because cdwriting *is* complex. Take a look at the code and see if you can get rid of things. Nowadays I think that most of the writers out there are SCSI-3/MMC compliant, so you can just use that driver, but that won't probably remove much code.

Try joining a cdrecord alternative. I don't remember the name,
but a project to build a cd recording library exists.

Raúl Núñez de Arenas Coronado

Signature · 3 lines
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
author
#2 lore raw

thank you ,DervishD.
another question:What is the difference between cdrtools and cdrecord? It seems that the fomer is bigger.

Quoted 27 lines · DervishD

Hi Jeff :)

* jeff shia <[email protected]> dixit:

Quoted 4 lines

I want to write a cdrw user space driver just like cdreord,but the cdrecord is too complex and huge!can I write to the cdrom through writing to the device file sr0,here sr0 is the device file of the cdrw.

Although someone may say that the size of cdrecord is
proportional to the author's ego, the crude reality is that cdrecord has to be such complex and huge (well, I don't think it is huge, but...). It has to be complex because cdwriting *is* complex. Take a look at the code and see if you can get rid of things. Nowadays I think that most of the writers out there are SCSI-3/MMC compliant, so you can just use that driver, but that won't probably remove much code.

Try joining a cdrecord alternative. I don't remember the name,
but a project to build a cd recording library exists.

Raúl Núñez de Arenas Coronado

--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...

#3 lore raw
Quoted 3 lines · jeff shia

thank you ,DervishD.
another question:What is the difference between cdrtools and cdrecord? It seems that the fomer is bigger.

cdrtools is a package which includes cdrecord. Or, the other way 'round, cdrecord is a part of cdrtools package. Nowadays, anyway.

Quoted 11 lines · DervishD
Quoted 10 lines

Hi Jeff :)

* jeff shia <[email protected]> dixit:

Quoted 4 lines

I want to write a cdrw user space driver just like cdreord,but the cdrecord is too complex and huge!can I write to the cdrom through writing to the device file sr0,here sr0 is the device file of the cdrw.

Quoted 8 lines
Quoted 8 lines

Although someone may say that the size of cdrecord is
proportional to the author's ego, the crude reality is that cdrecord has to be such complex and huge (well, I don't think it is huge, but...). It has to be complex because cdwriting *is* complex. Take a look at the code and see if you can get rid of things. Nowadays I think that most of the writers out there are SCSI-3/MMC compliant, so you can just use that driver, but that won't probably remove much code.

Well, yes and no. If you have re-writable media, there's a packet driver for it in recent kernels, and it is possible to (indirectly) mount and use a cdrw device as normal block device. Ofcourse it'll only work for data "tracks", not for audio disks.

/mjt

author
#4 lore raw
In reply to jeff shia

thank you!
such as cdrtools have the tools of mkiso9660 which can make an iso file according to the iso9660 file system standard?but cdrecord can only write an iso9660 file to the cdrom?

Quoted 5 lines · jeff shia

I want to write a cdrw user space driver just like cdreord,but the cdrecord is too complex and huge!can I write to the cdrom through writing to the device file sr0,here sr0 is the device file of the cdrw.