Archived

This topic is now archived and is closed to further replies.

baldurk

cdrecord -scanbus error

Recommended Posts

Hey, I''m having trouble using cdrecord. I recently changed from Redhat 7.2 to Mandrake 9.0, and although I could use cdrecord fine on RH, I can''t on Mandrake. Here''s the error I get when scanning for the CDRW drive: [root@localhost baldurk]# cdrecord -scanbus Cdrecord 1.11a32 (i586-mandrake-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling cdrecord: No such file or directory. Cannot open ''/dev/pg*''. Cannot open SCSI driver. cdrecord: For possible targets try ''cdrecord -scanbus''. Make sure you are root. Having googled I think it would be useful for you to know that I am 99% sure I have ide-scsi compiled into the kernel. lsmod shows that I have the ide-scsi module running. In /etc/lilo.conf I have append="hdd=ide-scsi" (hdd is my CDRW drive) and in /etc/modules.conf I have the following: options ide-cd ignore=hdd alias scd0 sr_mod pre-install sg modprobe ide-scsi pre-install sr_mod modprobe ide-scsi pre-install ide-scsi modprobe ide-cd probeall scsi_hostadapter ide-scsi any help you can provide would be greatly appreciated!

Share this post


Link to post
Share on other sites
brw-rw---- 1 baldurk cdwriter 11, 0 Jan 25 15:38 /dev/scd0
brw-rw---- 1 baldurk cdwriter 11, 1 Jan 25 15:45 /dev/scd1
brw-rw---- 1 baldurk cdwriter 11, 2 Jan 25 15:45 /dev/scd2
brw-rw---- 1 baldurk cdwriter 11, 3 Jan 25 15:45 /dev/scd3
brw-rw---- 1 baldurk cdwriter 11, 4 Jan 25 15:45 /dev/scd4
brw-rw---- 1 baldurk cdwriter 11, 5 Jan 25 15:45 /dev/scd5
brw-rw---- 1 baldurk cdwriter 11, 6 Jan 25 15:45 /dev/scd6
brw-rw---- 1 baldurk cdwriter 11, 7 Jan 25 15:45 /dev/scd7
crw-rw---- 1 baldurk cdwriter 21, 0 Jan 28 21:49 /dev/sg0
crw-rw---- 1 baldurk cdwriter 21, 1 Jan 28 21:49 /dev/sg1
crw-rw---- 1 baldurk cdwriter 21, 10 Jan 28 21:49 /dev/sg10
crw-rw---- 1 baldurk cdwriter 21, 11 Jan 28 21:49 /dev/sg11
crw-rw---- 1 baldurk cdwriter 21, 12 Jan 28 21:49 /dev/sg12
crw-rw---- 1 baldurk cdwriter 21, 13 Jan 28 21:49 /dev/sg13
crw-rw---- 1 baldurk cdwriter 21, 14 Jan 28 21:49 /dev/sg14
crw-rw---- 1 baldurk cdwriter 21, 15 Jan 28 21:49 /dev/sg15
crw-rw---- 1 baldurk cdwriter 21, 2 Jan 28 21:49 /dev/sg2
crw-rw---- 1 baldurk cdwriter 21, 3 Jan 28 21:49 /dev/sg3
crw-rw---- 1 baldurk cdwriter 21, 4 Jan 28 21:49 /dev/sg4
crw-rw---- 1 baldurk cdwriter 21, 5 Jan 28 21:49 /dev/sg5
crw-rw---- 1 baldurk cdwriter 21, 6 Jan 28 21:49 /dev/sg6
crw-rw---- 1 baldurk cdwriter 21, 7 Jan 28 21:49 /dev/sg7
crw-rw---- 1 baldurk cdwriter 21, 8 Jan 28 21:49 /dev/sg8
crw-rw---- 1 baldurk cdwriter 21, 9 Jan 28 21:49 /dev/sg9
lrwxrwxrwx 1 root root 3 Jan 25 15:45 /dev/sga -> sg0
lrwxrwxrwx 1 root root 3 Jan 25 15:45 /dev/sgb -> sg1
lrwxrwxrwx 1 root root 3 Jan 25 15:45 /dev/sgc -> sg2
lrwxrwxrwx 1 root root 3 Jan 25 15:45 /dev/sgd -> sg3
lrwxrwxrwx 1 root root 3 Jan 25 15:45 /dev/sge -> sg4
lrwxrwxrwx 1 root root 3 Jan 25 15:45 /dev/sgf -> sg5
lrwxrwxrwx 1 root root 3 Jan 25 15:45 /dev/sgg -> sg6
lrwxrwxrwx 1 root root 3 Jan 25 15:45 /dev/sgh -> sg7
lrwxrwxrwx 1 root root 3 Jan 25 15:45 /dev/sgi -> sg8
lrwxrwxrwx 1 root root 3 Jan 25 15:45 /dev/sgj -> sg9
lrwxrwxrwx 1 root root 4 Jan 25 15:45 /dev/sgk -> sg10
lrwxrwxrwx 1 root root 4 Jan 25 15:45 /dev/sgl -> sg11
lrwxrwxrwx 1 root root 4 Jan 25 15:45 /dev/sgm -> sg12
lrwxrwxrwx 1 root root 4 Jan 25 15:45 /dev/sgn -> sg13
lrwxrwxrwx 1 root root 4 Jan 25 15:45 /dev/sgo -> sg14
lrwxrwxrwx 1 root root 4 Jan 25 15:45 /dev/sgp -> sg15

Share this post


Link to post
Share on other sites
Try adding yourself to the cdwriter group and log out and back in (no need to reboot, just refresh your group settings).

To do that:

su
<enter password>
adduser your-user-name cdwriter
exit

And then log out of your X session and back in.

If that doesn''t do it, make sure you have the ''sg'' module loaded (modprobe sg as root).

Share this post


Link to post
Share on other sites
I tried adding myself to cdwriter by "adduser baldurk cdwriter" but it just printed usage info and exited. No indication that it worked. Also, would I need to? I''m running cdrecord as root.

I also tried modprobe sg, but that didn''t help.

500 x 1

Share this post


Link to post
Share on other sites
quote:
Original post by baldurk
Also, would I need to? I''m running cdrecord as root.

As root you wouldn''t, I guess. Now that I look again, you''re the owner of those devices too, so that wouldn''t have done anything really. I''ve never used Mandrake long enough to notice things like that.

I noticed that I had write access to my SCSI generic devices, so I thought maybe that''s what I''d done to fix it for me. I guess not .
quote:
Original post by baldurk
I also tried modprobe sg, but that didn''t help.

I seemed to remember one of those fixed the problem for me. I''m pretty sure this error has something to do with reading from (or writing to?) the SCSI generic devices due to something I remember. I''m out of ideas for the moment though.

Share this post


Link to post
Share on other sites
I narrowed down my problem. By downloading the latest cdr-tools (2.0 something), which have ATAPI support, I can avoid the ide-scsi issue. I have also discovered by experimenting that the problem actually arises only when blanking a CDRW.

Share this post


Link to post
Share on other sites