The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Attn: UFicle, cdrecord under RHEL4? by DesiredUsername2009-03-31 17:19:12
  EEEEEWWWW! by bwkaz 2009-03-31 22:20:52

Sorry about the reaction, but ATA:0,0,0 is *definitely* the wrong way to address your CD drive nowadays. (ATAPI:0,0,0 is just as bad, but only because I can never remember which of those two uses which ioctl set. One uses a horrifically bad ioctl that shouldn't even be in the kernel (something CDROM specific, IIRC), and the other uses SG_IO. SG_IO is correct; it's supported on any IDE disk device now, and works a *LOT* better than the CDROM-specific ioctl.)

The best way to specify a disk device in cdrecord is to use /dev/sdX or /dev/hdX directly. That way you don't have to worry about which bus-type you're using, and which ioctl layer cdrecord is going to use; choosing the device name directly uses SG_IO as well, and has no similar syntax that uses something broken, so it's not subject to confusion. ;-)

(Now, that doesn't mean that you won't get this error using the device file directly. And you will get warnings from the cdrecord author, unless your distro removed those -- but you can ignore those warnings; they're pretty much useless. The interface works better than anything else, even if it's officially unsupported.)

Now, to see if I can find the LKML post that explained this... Ah, here it is. (Be sure to read all of it: the original explanation of ATA vs. ATAPI is backwards.) :-)

[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)