LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cdrecord: Cannot open SCSI driver. (https://www.linuxquestions.org/questions/linux-software-2/cdrecord-cannot-open-scsi-driver-348956/)

karhu 08-01-2005 02:28 PM

cdrecord: Cannot open SCSI driver.
 
Hi, I'm trying to burn a CD with songs that are already in wav format.
(my cdrw is reading CDs and DVDs fine. I got the songs ripping an audio CD using transcode)


to burn a CD I executed the command:

[root@localhost ~]# nice --18 cdrecord dev=1,0,0 speed=1 fs=4m -v -eject -audio tract*wav

but nothing happens. The results of the command are:

Code:

.
.
.
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
cdrecord: Success. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

then, if I execute:

[root@localhost ~]# cdrecord -scanbus

the results are:

Code:

.
.
.
scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c1.83 04/05/20 Copyright 1997 J. Schilling').
scsibus1:
        1,0,0  100) 'HL-DT-ST' 'DVDRAM GSA-4163B' 'A103' Removable CD-ROM
        1,1,0  101) *
        1,2,0  102) *
        1,3,0  103) *
        1,4,0  104) *
        1,5,0  105) *
        1,6,0  106) *
        1,7,0  107) *

I get the same error message, even after I modified the file /etc/fstab (adding "rw" to the line where my /dev/hdc is: )

the contents of my /etc/fstab now are:

Code:

.
.
.
/dev/hdc /media/cdrecorder auto pamconsole, fscontext=system_ubject_r:removable_t,rw ,exec,noauto, managed 0 0


Can somebody help me with this problem ?

thanks in advance.


ps. afterwards I also modified the file /etc/grub.conf, by adding :

hdc=ide-sci

in the same line that refers to the kernel. so, now it reads:

Code:

# grub.conf generated by anaconda
.
.
.
title Fedora Core (2.6.9-1.667)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-1.667 ro root=/dev/VolGroup00/LogVol00 hdc=ide-sci rhgb quiet
        initrd /initrd-2.6.9-1.667.img

but the error message remains the same and I still cannot burn any CDs :(

my distro is: Fedora Core 3


kind regards,



karhu 08-01-2005 02:33 PM

Hi,

I had to restore my /etc/fstab to its original content (I guess /dev/hdc is set as read only?):

Code:

/dev/hdc /media/cdrecorder auto pamconsole, fscontext=system_ubject_r:removable_t, exec,noauto, managed 0 0

because after I modified it (as mentioned in my previous post): /dev/hdc as: rw

Code:

/dev/hdc /media/cdrecorder auto pamconsole, fscontext=system_ubject_r:removable_t,rw ,exec,noauto, managed 0 0

I got the message: "/etc/fstab line 9 in bad format"
everytime I rebooted the computer.



kencaz 08-01-2005 03:02 PM

Try changing it from this:
[root@localhost ~]# nice -18 cdrecord dev=1,0,0 speed=1 fs=4m -v -eject -audio tract*wav
to this:
[root@localhost ~]# nice -18 cdrecord dev=/dev/hdc speed=1 fs=4m -v -eject -audio tract*wav

KC

karhu 08-02-2005 01:33 AM

many thanks!

I'm at work now, but I will try your solution as soon as I get home.




btw,

any ideas about what is wrong with my /etc/fstab ?

how can I modify my /etc/fstab to set the cdrom as rw? )



by the moment, I had to leave the file as it was originally:

Code:

/dev/hdc /media/cdrecorder auto pamconsole, fscontext=system_ubject_r:removable_t, exec,noauto, managed 0 0

so now /dev/hdc is read only, because when I modified the file to this:

Code:

/dev/hdc /media/cdrecorder auto pamconsole, fscontext=system_ubject_r:removable_t,rw ,exec,noauto, managed 0 0
I received the error I commented in my second post.




thanks in advance,

kencaz 08-02-2005 01:45 AM

Looks like your using "Supermount"... I have a CDR and CDRW and in my fstab both are mounted "ro" ... cdrocord, kb3, or other burning applications will make the appropriate changes needed to burn cd's...

Change it back to it's original configuration...

KC

karhu 08-03-2005 01:02 AM

many thanks kencaz!!!

finally I could burn a CD
:)


for all those with the same problem as me:

- do not change /etc/fstab

- do not change /etc/grub.conf


- as Kencaz wrote: the solution is to give cdrecord the full path towards the cdrw. (you can get the right path towards your cdrw by looking at /etc/fstab - "emacs /etc/fstab")

nice --18 cdrecord dev=/dev/hdc speed=1 fs=4m -v -eject -audio tract*wav





regards,

aldimond 08-18-2005 09:16 PM

For all y'all talking about /etc/fstab, there's a clear and simple reason you shouldn't touch fstab for this: /etc/fstab is about mounting filesystems. That is, you'll have a line in your fstab saying that the filesystem on the device /dev/hdc should be mounted at /media/cdrecorder when you do decide to mount it (or when it automounts, if you do the automounting thing), and also specifies some options related to this mounting.

(For those that don't know, mounting a filesystem means taking information from a device and allowing it to be accessed through your directory structure. If you had nothing in your /mnt/fstab file and you wanted to use a data cd you'd have to issue a "mount" command specifying the device name of your cdrom drive (/dev/hdc), the location to which you want it mounted (/media/cdrecorder), and information passed as commandline arguments like the filesystem type and whether you can write to the device using commands like "mkdir" and "touch" when you access it via /media/cdrecorder. If you have information in your /etc/fstab file, all you have to do is type a simple "mount /medai/cdrecorder" and that stuff you don't want to memorize is automatically applied for you. For those not familiar with mounting, if you manually mount a filesystem on removable media you have to unmount it ("umount /media/cdrecorder") before you eject the disk. Unless you have an automounter that does that for you... I've never used an automounter so I don't know anything about 'em)

To burn a CD, you don't mount a filesystem. Therefore nothing in /etc/fstab has anything to do with CD burning. Same is true when you play an audio CD. The tipoff is that instead of specifying /media/cdrecorder to cdrecord you are specifying /dev/hdc. In fact, if a filesystem on a drive is mounted and you try to record or play a cd on that drive it will fail because the device is already being used for a filesystem.


All times are GMT -5. The time now is 02:19 PM.