Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Atapi CD Burning example with cdrecord
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
TripleD
n00b
n00b


Joined: 21 Jan 2003
Posts: 30

PostPosted: Tue Jun 17, 2003 6:34 pm    Post subject: Atapi CD Burning example with cdrecord Reply with quote

I thought i would post this for future reference for anyone looking too do cd burning with a regular Atapi device without jumping through the ide-scsi hoop's :)

Also, although i did find in the list's here that cdrecord now supports burning to Atapi burner's, i did not find any example's for doing such a thing, so after some messing about i seem to have come across the magic way of doing it....

Wow, burncd like burning in Linux... finally! :)

First find your burner device:

bash-2.05b# cdrecord dev=ATAPI -scanbus

Cdrecord 2.01a05 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
scsidev: 'ATAPI'
devname: 'ATAPI'
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.7'
scsibus0:
0,0,0 0) *
0,1,0 1) 'SONY ' 'DVD-ROM DDU1621 ' 'S1.6' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) 'MITSUMI ' 'CR-4802TE ' '2.1D' Removable CD-ROM
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *

In this example, my cd burner would be scsibus1:
1,0,0

In this example i will be burning an iso image, (i have not tried, but i'm sure the other example's in the man would work the same.)

bash-2.05b# cdrecord -v speed=4 ( or what ever speed you choose) dev=ATAPI:1,0,0 -data anyfile.iso
the key here is to specify the dev "type" being "ATAPI:bus, or ATAPI:1,0,0" instead of the regular bus listing for scsi which would have been just 1,0,0 for the dev listing.

Hopefully after this you should see a spew of info and the timer to begin, hit enter and you should be on your way to ATAPI burning on Linux!

Please feel free to make any correction's that are necessary in the above.

Cheers

David
Back to top
View user's profile Send private message
Donut
n00b
n00b


Joined: 27 Apr 2003
Posts: 40

PostPosted: Tue Jun 17, 2003 8:48 pm    Post subject: Reply with quote

Many thanks - this worked a treat exactly as you documented. :)

I didn't realise it would be so easy after struggling unsuccessfully with scsi-emulation.

FYI, once I got it working from the command line with cdrecord I tried CD Bake Oven using the workaround I found here...

https://forums.gentoo.org/viewtopic.php?t=46311&highlight=cdbakeoven+atapi

...and that worked great for ATAPI too.

Cheers

Paul
Back to top
View user's profile Send private message
Ribs
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2002
Posts: 133
Location: UK

PostPosted: Fri Jun 20, 2003 6:12 pm    Post subject: Reply with quote

Thanks for the tip, this worked perfectly.

I needed to burn some ISO images. I tried all the GUI applications out there, but they all thought I wanted to the burn the .iso as a file, not creat a CD from it. The command you gave was exactly what I wanted.

Long live the command line!

-Ribs
Back to top
View user's profile Send private message
richone
n00b
n00b


Joined: 19 Jun 2003
Posts: 38

PostPosted: Wed Jun 25, 2003 1:35 am    Post subject: Reply with quote

Xcdroast 0.98alpha14 supports ATAPI writes, make sure you select the ATAPI:0,0,0 device in the cd settings tab when setting up Xcdroast. I was able to coax it up to 32x on a 48x burner, not to shabby. Thanks for the tip as my ide-scsi adventure was about to begin :)
Back to top
View user's profile Send private message
FxChiP
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2003
Posts: 103

PostPosted: Wed Jun 25, 2003 10:15 pm    Post subject: Reply with quote

I advise caution - one of the interfaces for ATAPI is ***EXPERIMENTAL***

My CD burner no longer works a week or two after burning a CD (that didn't even go well!)
Back to top
View user's profile Send private message
richone
n00b
n00b


Joined: 19 Jun 2003
Posts: 38

PostPosted: Thu Jun 26, 2003 12:53 am    Post subject: Reply with quote

Caution noted. I have burned (or is it burnt) 10 cds without incident...
Back to top
View user's profile Send private message
noisefactor
n00b
n00b


Joined: 08 Mar 2003
Posts: 45

PostPosted: Wed Jul 16, 2003 1:23 am    Post subject: Reply with quote

FxChiP wrote:
I advise caution - one of the interfaces for ATAPI is ***EXPERIMENTAL***

My CD burner no longer works a week or two after burning a CD (that didn't even go well!)


were you using xcdroast or cdrecord? btw, how did you install cdrecord? i looked for a package (qpkg -i /bin/cdrecord) but
found nothing.
Back to top
View user's profile Send private message
latexer
Retired Dev
Retired Dev


Joined: 05 Mar 2003
Posts: 239
Location: NYC

PostPosted: Wed Jul 16, 2003 1:50 am    Post subject: Reply with quote

also, if you're using 2.5.x/2.6.0-test1, you can now burn by directly specifying the device. It will spit out some errors about in improper format, but will work none the less, i.e.

Code:
peter@gonzo peter $ cdrecord dev=/dev/hdc bbc-2.1.iso
Cdrecord 2.01a14 (i686-pc-linux-gnu) Copyright (C) 1995-2003 Jörg Schilling
cdrecord: Operation not permitted. WARNING: Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
scsidev: '/dev/hdc'
devname: '/dev/hdc'
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.7'
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'MATSHITA'
Identifikation : 'UJDA720 DVD/CDRW'
Revision       : '1.03'
Device seems to be: Generic mmc2 DVD-ROM.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R96R
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
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.
Track 01: Total bytes read/written: 50003968/50003968 (24416 sectors).
peter@gonzo peter $


pretty sexy if you ask me. :)
_________________
overlays - Use at your own risk. File bug reports on this stuff and i'll kick you in the junk. Ask me before asking upstream if these fail. I mean it. No, really.

#gentoo-dotnet on freenode
Back to top
View user's profile Send private message
FxChiP
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2003
Posts: 103

PostPosted: Wed Jul 16, 2003 2:15 am    Post subject: Reply with quote

In retrospect, I talked to someone who's into computer repair, and he says the same thing happened to his because of a busted fuse, which happens because of age or hitting it too hard. I never hit it, so it's time probably came. The caution could be discarded... but I'd still like to know that in advance...
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7692
Location: Pelotas, BR

PostPosted: Wed Jul 16, 2003 4:34 pm    Post subject: Reply with quote

See also XCDroast with ATAPI driver

Moving to Documentation, Tips & Tricks as it is not a support question.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum