Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-10 Thread Neil Bothwick
On Thu, 09 Jun 2005 21:11:47 +0200, Holly Bostick wrote:

 I don't myself use cdrecord directly all that often, but I did manage to
 remember
 
cdrecord dev=ATAPI -scanbus
 
 which produced this output:
 
[snip]

 scsibus0:
   0,0,0 0) '_NEC' 'DVD_RW ND-2510A ' '2.15'
 Removable CD-ROM 0,1,0  1) *
   0,2,0 2) *
   0,3,0 3) *
   0,4,0 4) *
   0,5,0 5) *
   0,6,0 6) *
   0,7,0 7) *
 
 so the correct syntax to access my burner would be

 cdrecord dev=0,0,0 whatever comes after that.

That would be dev=ATAPI:0,0,0 - otherwise it will look for the first
SCSI device. 



-- 
Neil Bothwick

Everyone has a photographic memory. Some don't have film.


pgpL4Z6WWPdpP.pgp
Description: PGP signature


Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-10 Thread Walter Dnes
cdrecord -scanbus dev=ATAPI gives me the following...

scsibus0:
0,0,0 0) 'HITACHI ' 'DVD-ROM GD-5000 ' '0110' Removable CD-ROM
0,1,0 1) 'SONY' 'CD-RW  CRX100E  ' '1.0m' 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) *

  I copy/move a bunch of files into directory xfer, and burn an ISO with
the following script...

#!/bin/sh
mkisofs -R -J xfer | cdrecord -tao -v fs=8m -data dev=ATAPI:0,1,0 -

Piping direct from mkisofs avoids creating, and then deleting, a
physical ISO file.  It does give a warning message because, with input
from stdin, cdrecord has no way of telling in advance whether it'll fit
onto the CD.

-- 
Walter Dnes [EMAIL PROTECTED]
My musings on technology and security at http://tech_sec.blog.ca
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Neil Bothwick
On 09 Jun 2005 10:17:30 +0100, Govind Chandra wrote:

 cdrecord -scanbus says there are issues with kernel 2.5 and newer.

Ignore it. It's only a warning and we have moved on quite a way since 2.5.


-- 
Neil Bothwick

A woman walked into a bar and asked the barman for a large double
entendre, so he gave her one.


pgpdL1zNug0Wy.pgp
Description: PGP signature


Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Holly Bostick
Govind Chandra schreef:
 Just installed Gentoo 2005.0.
 
 cdrecord -scanbus says there are issues with kernel 2.5 and newer.
 
 Is there any way of writing CDs in Gentoo 2005.0?
 
 Govind
 
 

Of course there is... don't you think you'd have heard about it if none
of us could write CD's and DVDs? I mean, that would be *news* ;-) .

That message is... well, not untrue, but misleading. We've been beyond
the 2.5 stage long enough that while the issues are not fixed (due
to the developer of cdrecord being in philosophical conflict with the
kernel devs), they have long ago had workarounds developed for them.

So CD recording works fairly normally under Linux-- certainly under X,
where there are several frontends available that record such media
reliably. Under the console, a read-through of the man pages is in order
due to 1) specific settings needed to run cdrecord using an ATAPI
recorder rather than a SCSI one; 2) additional programs needed to record
DVDs (rather than CDs) or special formats (like ISOs). But it's all
pretty straightforward, and works well (I haven't burned a coaster in
months).

What precisely is the problem you're having?

Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Rob

At 10:35 AM 6/9/2005, Rob wrote:

At 04:50 AM 6/9/2005, you wrote:

Govind Chandra schreef:
 Just installed Gentoo 2005.0.

 cdrecord -scanbus says there are issues with kernel 2.5 and newer.

 Is there any way of writing CDs in Gentoo 2005.0?

 Govind



Of course there is... don't you think you'd have heard about it if none
of us could write CD's and DVDs? I mean, that would be *news* ;-) .

That message is... well, not untrue, but misleading. We've been beyond
the 2.5 stage long enough that while the issues are not fixed (due
to the developer of cdrecord being in philosophical conflict with the
kernel devs), they have long ago had workarounds developed for them.

So CD recording works fairly normally under Linux-- certainly under X,
where there are several frontends available that record such media
reliably. Under the console, a read-through of the man pages is in order
due to 1) specific settings needed to run cdrecord using an ATAPI
recorder rather than a SCSI one; 2) additional programs needed to record
DVDs (rather than CDs) or special formats (like ISOs). But it's all
pretty straightforward, and works well (I haven't burned a coaster in
months).

What precisely is the problem you're having?

Holly
--
gentoo-user@gentoo.org mailing list

Dear list,

Here is my experience:  I followed the kernel warnings that ide-scsi was 
depricated, then found out that most of the burner programs would not work 
or worked lousy with an ide ATAPI interface.  So I went back to the 
hdc=ide-scsi kernel option.  I would like to, however, follow the correct 
procedure, that is, use an ide atapi interface, only it didn't work out for 
me the first time.  Any help or advice would be appreciated.


Sincerely, Rob. 



--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Zac Medico


--- Rob [EMAIL PROTECTED] wrote:

 procedure, that is, use an ide atapi interface, only
 it didn't work out for 
 me the first time.  Any help or advice would be
 appreciated.

Hi Rob,

What do you mean it didn't work out?  More specific
please.  Instead of using the scsibus address like
-dev=0,0,0 or whatever you simply substitute
-dev=/dev/hdc.

Zac



__ 
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Holly Bostick
Rob schreef:
 At 10:35 AM 6/9/2005, Rob wrote:
 
 At 04:50 AM 6/9/2005, you wrote:

 Govind Chandra schreef:
  Just installed Gentoo 2005.0.
 
  cdrecord -scanbus says there are issues with kernel 2.5 and newer.
 
  Is there any way of writing CDs in Gentoo 2005.0?
 
  Govind
 
 

 Of course there is... don't you think you'd have heard about it if none
 of us could write CD's and DVDs? I mean, that would be *news* ;-) .

 That message is... well, not untrue, but misleading. We've been beyond
 the 2.5 stage long enough that while the issues are not fixed (due
 to the developer of cdrecord being in philosophical conflict with the
 kernel devs), they have long ago had workarounds developed for them.

 So CD recording works fairly normally under Linux-- certainly under X,
 where there are several frontends available that record such media
 reliably. Under the console, a read-through of the man pages is in order
 due to 1) specific settings needed to run cdrecord using an ATAPI
 recorder rather than a SCSI one; 2) additional programs needed to record
 DVDs (rather than CDs) or special formats (like ISOs). But it's all
 pretty straightforward, and works well (I haven't burned a coaster in
 months).

 What precisely is the problem you're having?

 Holly
 -- 
 gentoo-user@gentoo.org mailing list
 
 Dear list,
 
 Here is my experience:  I followed the kernel warnings that ide-scsi was
 depricated, then found out that most of the burner programs would not
 work or worked lousy with an ide ATAPI interface.  So I went back to the
 hdc=ide-scsi kernel option.  I would like to, however, follow the
 correct procedure, that is, use an ide atapi interface, only it didn't
 work out for me the first time.  Any help or advice would be appreciated.
 
 Sincerely, Rob.
 

What kernel was this under, and what kernel are you using now? In the
very early days of 2.6, one really had to explicitly run ide-cd (the
replacement for ide-scsi) in order to get things working, but again, we
are far beyond that now. Ide-cd is automatically compiled into the
kernel (you don't even get to choose it, it's just there), and /dev/hdc
(assuming that that's where your CD/DVD burner is) will use it when it
is detected to be a writeable device during the boot process.

So again, I ask what precisely your issue is what goes wrong when
you try to burn a CD or DVD? What commands are you using to do so, and
what type of disk are you trying to create (a bootable ISO? a data disk?
a SVCD? an audio disk)? If we knew that, maybe we'd know where to start
looking for a misconfiguration or missing backend subsystem.


Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Rob

At 10:55 AM 6/9/2005, you wrote:



--- Rob [EMAIL PROTECTED] wrote:

 procedure, that is, use an ide atapi interface, only
 it didn't work out for
 me the first time.  Any help or advice would be
 appreciated.

Hi Rob,

What do you mean it didn't work out?  More specific
please.  Instead of using the scsibus address like
-dev=0,0,0 or whatever you simply substitute
-dev=/dev/hdc.

Zac


Hi Zac,

Sorry for not being specific enough.  What I mean was that by specifying 
/dev/hdc as the cd burner, the only program I could get to work was 
x-cdroast.  None of the other burner programs that I emerged and tested 
would work with the ATAPI interface.  So that is why I went back to the 
deprecated ide-scsi interface.


So again I am asking, did I do something wrong?  Or am I just caugh in a 
temporary transition to /dev/hdc?


Thanks alot!!  Rob



--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Rob



Hi Holly,

I was using the 2.6.11 (I believe, but now I'm not sure of the specific rev 
level, but it was definitely 2.6.x).  I may have just misconfigured 
something.  But x-cdroast continuously gave me warnings that my performance 
would suffer unless I went back to ide-scsi.



 
 

 Of course there is... don't you think you'd have heard about it if none
 of us could write CD's and DVDs? I mean, that would be *news* ;-) .

 That message is... well, not untrue, but misleading. We've been beyond
 the 2.5 stage long enough that while the issues are not fixed (due
 to the developer of cdrecord being in philosophical conflict with the
 kernel devs), they have long ago had workarounds developed for them.

 So CD recording works fairly normally under Linux-- certainly under X,
 where there are several frontends available that record such media
 reliably. Under the console, a read-through of the man pages is in order
 due to 1) specific settings needed to run cdrecord using an ATAPI
 recorder rather than a SCSI one; 2) additional programs needed to record
 DVDs (rather than CDs) or special formats (like ISOs). But it's all
 pretty straightforward, and works well (I haven't burned a coaster in
 months).

 What precisely is the problem you're having?

 Holly
 --
 gentoo-user@gentoo.org mailing list

 Dear list,

 Here is my experience:  I followed the kernel warnings that ide-scsi was
 depricated, then found out that most of the burner programs would not
 work or worked lousy with an ide ATAPI interface.  So I went back to the
 hdc=ide-scsi kernel option.  I would like to, however, follow the
 correct procedure, that is, use an ide atapi interface, only it didn't
 work out for me the first time.  Any help or advice would be appreciated.

 Sincerely, Rob.


What kernel was this under, and what kernel are you using now? In the
very early days of 2.6, one really had to explicitly run ide-cd (the
replacement for ide-scsi) in order to get things working, but again, we
are far beyond that now. Ide-cd is automatically compiled into the
kernel (you don't even get to choose it, it's just there), and /dev/hdc
(assuming that that's where your CD/DVD burner is) will use it when it
is detected to be a writeable device during the boot process.

So again, I ask what precisely your issue is what goes wrong when
you try to burn a CD or DVD? What commands are you using to do so, and
what type of disk are you trying to create (a bootable ISO? a data disk?
a SVCD? an audio disk)? If we knew that, maybe we'd know where to start
looking for a misconfiguration or missing backend subsystem.


Holly
--
gentoo-user@gentoo.org mailing list



--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Holly Bostick
Rob schreef:
 At 10:55 AM 6/9/2005, you wrote:
 
 
 --- Rob [EMAIL PROTECTED] wrote:

  procedure, that is, use an ide atapi interface, only
  it didn't work out for
  me the first time.  Any help or advice would be
  appreciated.

 Hi Rob,

 What do you mean it didn't work out?  More specific
 please.  Instead of using the scsibus address like
 -dev=0,0,0 or whatever you simply substitute
 -dev=/dev/hdc.

 Zac
 
 
 Hi Zac,
 
 Sorry for not being specific enough.  What I mean was that by specifying
 /dev/hdc as the cd burner, the only program I could get to work was
 x-cdroast.  None of the other burner programs that I emerged and tested
 would work with the ATAPI interface.  So that is why I went back to the
 deprecated ide-scsi interface.
 
 So again I am asking, did I do something wrong?  Or am I just caugh in a
 temporary transition to /dev/hdc?
 
 Thanks alot!!  Rob
 
 
 

Rob, I regret to inform you that your syntax seems to be all wrong, and
this stands a good chance of being your problem.

I don't myself use cdrecord directly all that often, but I did manage to
remember

 cdrecord dev=ATAPI -scanbus

which produced this output:

Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg
Schilling
on-the-fly encryption (version 1.0-rc1) built-in, (C) 2004,2005
Maximilian Decker

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 burbon04 at gmx.de.
  For more information please see
http://burbon04.gmxhome.de/linux/CDREncryption.html.
  The original author should not be bothered with problems of this
version.

cdrecord: Warning: Running on Linux-2.6.11-gentoo-r8
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) '_NEC' 'DVD_RW ND-2510A ' '2.15' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *


so the correct syntax to access my burner would be

cdrecord dev=0,0,0 whatever comes after that.

The whole /dev/hdc thing is just not correct (it's dev= whatever).
Check the man page for more info.

Hope this helps get you pointed in the right direction.

Holly


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Zac Medico
--- Rob [EMAIL PROTECTED] wrote:
 Sorry for not being specific enough.  What I mean
 was that by specifying 
 /dev/hdc as the cd burner, the only program I could
 get to work was 
 x-cdroast.  None of the other burner programs that I
 emerged and tested 
 would work with the ATAPI interface.  So that is why
 I went back to the 
 deprecated ide-scsi interface.
 
 So again I am asking, did I do something wrong?  Or
 am I just caugh in a 
 temporary transition to /dev/hdc?
 
 Thanks alot!!  Rob
 

All the cd/dvd burning frontends are just that,
frontends.  They all use the same backend command line
programs to handle the actual burning.  These backend
programs include cdrecord, growisofs, and cdrdao.

This means that theoretically (maybe with a little
troubleshooting), any frontend will work with the
ATAPI interface.

Zac



__ 
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Holly Bostick
Rob schreef:
 At 10:55 AM 6/9/2005, you wrote:
 
 
 --- Rob [EMAIL PROTECTED] wrote:

  procedure, that is, use an ide atapi interface, only
  it didn't work out for
  me the first time.  Any help or advice would be
  appreciated.

 Hi Rob,

 What do you mean it didn't work out?  More specific
 please.  Instead of using the scsibus address like
 -dev=0,0,0 or whatever you simply substitute
 -dev=/dev/hdc.

 Zac
 
 
 Hi Zac,
 
 Sorry for not being specific enough.  What I mean was that by specifying
 /dev/hdc as the cd burner, the only program I could get to work was
 x-cdroast.  None of the other burner programs that I emerged and tested
 would work with the ATAPI interface.  So that is why I went back to the
 deprecated ide-scsi interface.
 
 So again I am asking, did I do something wrong?  Or am I just caugh in a
 temporary transition to /dev/hdc?
 
 Thanks alot!!  Rob
 
 
 

Actually (since I don't use cdrecord often), I noted down the command I
must use to generate and burn an iso file, so here the 'burn' section:

cdrecord -v -dao -eject dev=ATAPI:0,0,0 driveropts=burnfree
/wherever/the/file/is.iso

for example.

So the syntax is dev=ATAPI=#,#,# ,depending on what scanbus told you
your device was.

Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Zac Medico


--- Holly Bostick [EMAIL PROTECTED] wrote:

 
 Actually (since I don't use cdrecord often), I noted
 down the command I
 must use to generate and burn an iso file, so here
 the 'burn' section:
 
 cdrecord -v -dao -eject dev=ATAPI:0,0,0
 driveropts=burnfree
 /wherever/the/file/is.iso
 
 for example.
 
 So the syntax is dev=ATAPI=#,#,# ,depending on what
 scanbus told you
 your device was.
 

Cool, I've beed using dev=/dev/hdc type syntax all
this time.  I just found out that I need cdrecord
-scanbus dev=ATAPI: to get relevent info to use your
syntax.

Zac



__ 
Discover Yahoo! 
Use Yahoo! to plan a weekend, have fun online and more. Check it out! 
http://discover.yahoo.com/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Richard Fish
Neil Bothwick wrote:

On 09 Jun 2005 10:17:30 +0100, Govind Chandra wrote:

  

cdrecord -scanbus says there are issues with kernel 2.5 and newer.



Ignore it. It's only a warning and we have moved on quite a way since 2.5.


  


Indeed.  With 2.6, the kernel devs would prefer you to use the device node:

cdrecord dev=/dev/cdrw   (with cdrw being a symlink to an actual
device, but you can use /dev/cdrom, /dev/hdX, whatever)

The cdrecord author still prefers the dev=x,x,x syntax.  This was the
subject of much fighting between them.  The choice is yours though.

-Richard



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Richard Fish
Holly Bostick wrote:

so the correct syntax to access my burner would be

cdrecord dev=0,0,0 whatever comes after that.

The whole /dev/hdc thing is just not correct (it's dev= whatever).
Check the man page for more info.

  


Actually Holly, both methods should work.  I use dev=/dev/cdrw without
any trouble at all.

From what I remember reading, the kernel devs prefer this, because to
them, creating an artificial numbering system (bus, id, lun) for a bus
topography (IDE, SATA) that doesn't use it to be just silly.  They
consider the whole ide-scsi thing to be an unnecessary hack.  Plus,
identifying things by their dynamically-assigned address on a bus
doesn't work well in a hot-pluggable world.

The cdrecord author prefers the dev=x,x,x syntax, because then the same
syntax is used to access all CD-R[W] drives on all platforms.

Neither side seems willing to accept the other's viewpoint as valid.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Richard Fish
Rob wrote:



 Hi Holly,

 I was using the 2.6.11 (I believe, but now I'm not sure of the
 specific rev level, but it was definitely 2.6.x).  I may have just
 misconfigured something.  But x-cdroast continuously gave me warnings
 that my performance would suffer unless I went back to ide-scsi.


Did performance actually suffer?  Or was it just dire warnings that you
were doing something dangerous, stupid, or likely to cause sterility. 
Usually with cdrecord that means you are on the right track!

On that note, you might want to try running cdrecord from the command
line.  The command I use is:

cdrecord dev=/dev/cdrom -immed -eject driveropt=burnfree blank=fast
file.iso

If your drive doesn't support burnfree, just take that out.  Also if
your drive is on a channel all by itself, you can remove the -immed option.

-Richard



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Daniel Drake
Holly Bostick wrote:
 Rob, I regret to inform you that your syntax seems to be all wrong, and
 this stands a good chance of being your problem.
 
 I don't myself use cdrecord directly all that often, but I did manage to
 remember
 
cdrecord dev=ATAPI -scanbus

Last time I checked (2.6.11), dev=ATAPI doesnt work, since its not related to
a particular device node file, the kernel doesn't know whether you have write
permissions to that device, so it denies write-related commands.

As for which syntax is theoretically correct, thats the subject of an eternal
discussion. The cdrecord author thinks ATAPI:x,y,z is correct, the kernel
developers thing dev=/dev/cdrom is correct.

But right now, you'll probably find that dev=/dev/cdrom is the only one that
works when you actually come to writing.

Daniel
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] So how does one write a CD in 2.6?

2005-06-09 Thread Holly Bostick
Richard Fish schreef:
 Holly Bostick wrote:
 
 
so the correct syntax to access my burner would be

cdrecord dev=0,0,0 whatever comes after that.

The whole /dev/hdc thing is just not correct (it's dev= whatever).
Check the man page for more info.

 

 
 
 Actually Holly, both methods should work.  I use dev=/dev/cdrw without
 any trouble at all.
 
From what I remember reading, the kernel devs prefer this, because to
 them, creating an artificial numbering system (bus, id, lun) for a bus
 topography (IDE, SATA) that doesn't use it to be just silly.  They
 consider the whole ide-scsi thing to be an unnecessary hack.  Plus,
 identifying things by their dynamically-assigned address on a bus
 doesn't work well in a hot-pluggable world.
 
 The cdrecord author prefers the dev=x,x,x syntax, because then the same
 syntax is used to access all CD-R[W] drives on all platforms.
 
 Neither side seems willing to accept the other's viewpoint as valid.
 
 -Richard
 

Fair enough, Richard. I'm sure that dev=/dev/hdc would likely work.
However, it would have to be /dev/hdc (the original device name),
because I cannot necessarily be sure that I will always have /dev/cdrw,
for example. Atm, my DVD burner as hdc is symlinked to /dev/cdrom,
/dev/cdrw, /dev/dvd and /dev/dvdr, so I could probably use any of those.

But that's all udev's doing, and under other Linuxes, other versions of
udev, or even with other drives, I'd have to check the symlinks every
time to make sure that my DVD+R wasn't now *only* linked to /dev/dvd and
/dev/dvdr, and no more to /dev/cdrom, and /dev/cdrw. Of course I'm sure
that /dev/hdc would always work under all circumstances unless I
physically moved the drive. But if I scan the bus and see what cdrecord
thinks, then that will also always work.

So I agree that both viewpoints are valid, but not once you start adding
in the symlinks to the real device, because that's a
distribution-specific config issue and not a 'base' kernel or program
issue... and if you're distro-hopping or multi-booting, the most
irritating thing is to have to remember that under X distro the command
is one thing, and under Y distro, the command is another. To me, anyway.
I have a hard enough time remembering CLI commands as it is :-) .

Holly

-- 
gentoo-user@gentoo.org mailing list