Advertisement

cdrecord -scanbus error

Started by January 29, 2003 02:13 PM
6 comments, last by baldurk 21 years, 9 months ago
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!
I think I remember what to do to fix this, but it''s been a while since I''ve seen it. Can you give me the output of running this line in a terminal?
ls -l /dev/sg* /dev/scd*


Advertisement
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
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 cdwriterexit

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).

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
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.

Advertisement
I don''t know if you''ll be interested, but I''ve just found I can''t read from the drive either.

[root@localhost mnt]# cd /mnt/cdrom2
bash: cd: /mnt/cdrom2: Input/output error
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.

This topic is closed to new replies.

Advertisement