Jason Wertz on Thu, 27 Mar 2003 16:25:50 -0500 |
/dev/sg0 is the raw scsi device as previously mentioned. assuming you are a member of the cdrom group, just... # chgrp cdrom /dev/sg0 ; chmod 660 /dev/sg0 and all should work well...I just set up a new debian box and had to do this. I'm not at that box but I think that's all I did to rip and burn as a regular user. If not, someone will correct me. Jason Wertz Senior Technology Specialist / WebMaster Delaware County Community College ph: 610-325-2771 fax: 610-325-2820 http://learn.dccc.edu/~jason >>> jeff@purple.com 03/27/03 08:51AM >>> On Thu, Mar 27, 2003 at 02:10:10AM -0500, Will Dyson wrote: > [44 lines, 325 words, 2015 characters] Top characters: esinotad > > On Wed, 2003-03-26 at 18:59, Jeff Abrahamson wrote: > > > I can use the cdrom (cd-rw) just fine for many things: playing cd's, > > reading cdrom's, etc. I can run cd-disc-id just fine. But cd-paranoia > > isn't happy. > > [snip] > > > Checking /dev/cdrom for cdrom... > > Testing /dev/cdrom for cooked ioctl() interface > > /dev/scd0 is not a cooked ioctl CDROM. > > Testing /dev/cdrom for SCSI interface > > No generic SCSI device found to match CDROM device /dev/scd0 > > You don't mention cd burning as one of the things you can do with this > drive, even though it is a cd-rw. > > You need to be able to send raw scsi commands to the cd device in order > to burn cds or use cdparanoia. The cooked ioctrl() interface is the > interface that is used to send scsi commands to a cdrom using the ide-cd > driver (atapi can basicly be seen as scsi commands over the ata bus). > > Your cdrw is probably an atapi device, rather than scsi (scsi burners > are rather expensive, for no particular reason other than low production > volume). But it is being represented as a scsi device by the ide-scsi > kernel, so /dev/cdrom is a link to /dev/scd0 (if you are using a modular > kernel, you'll see sr_mod in lsmod). The /dev/sg* devices are the > interface used to send raw scsi commands to a scsi device (an evil > interface if I ever saw one). > > You need to have permission on /dev/sg* in order to send these raw > commands to your cdrw (and probably write on /dev/scd0 as well). You may > not have that now, because the ability to send raw scsi commands to any > scsi device on the system is the ability to lock the computer up hard, > or wipe the filesystem (if it is on a scsi disk, of course). Wow, you're absolutely right. I can burn cd's, but I have to be root to do it. Sure enough, cdparanoia works as root. But I'm in the right group: jeff@asterix:jeff $ ll /dev/cdrom lrwxrwxrwx 1 root root 4 2002-12-27 16:14 /dev/cdrom -> scd0 jeff@asterix:jeff $ ll /dev/scd0 brw-rw---- 1 root cdrom 11, 0 2001-06-13 04:22 /dev/scd0 jeff@asterix:jeff $ grep cdrom /etc/group cdrom:x:24:jeff jeff@asterix:jeff $ ll /dev/sg0 crw------- 1 root root 21, 0 2001-06-13 04:22 /dev/sg0 jeff@asterix:Mutt $ Is the issue /dev/sg0? But why, it's looking at /dev/scd0. I'm always hesitant to change ownership and modes on devices. Any suggestions on what is the right way to do this? And yet I'm concerned about having to become root to rip ogg-vorbis files. Already I don't like having to be root to write cd's. I guess I could sudo abcde, or modify abcde so it sudo's cdparanoia. But that feels somehow unclean. Tia. -- Jeff Jeff Abrahamson <http://www.purple.com/jeff/> GPG fingerprint: 1A1A BA95 D082 A558 A276 63C6 16BF 8C4C 0D1D AE4B _________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce General Discussion -- http://lists.netisland.net/mailman/listinfo/plug
|
|