LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva > Conectiva
User Name
Password
Conectiva This forum is for the discussion of Conectiva Linux.

Notices


Reply
  Search this Thread
Old 10-09-2002, 01:36 PM   #1
caleb
Member
 
Registered: Sep 2002
Location: Cap. Fed. - Buenos Aires - Argentina
Distribution: Conectiva 10
Posts: 118

Rep: Reputation: 15
getting my cd-rw to work


So, this is my only problem left: CD-RW
Steps by step things go like this.
What I have:

CD-ROM= Creative 52x IDE (first IDE, slave)

CD-RW= LG 12X8X32X IDE (second IDE, slave)

Now, I know that even though my CD-RW it's an IDE devices, to get it to work on Linux, the kernel will treat it as if it were a SCSI device, therefore: the kernel has to have SCSI support.

Given the fact that I'm using Conectiva 8 (kernel 2.4.18), I alredy have SCSI support activated as a module on my kernel.

So now on to what I've alredy done to get it to work.

Added the correct lines to my lilo.conf file: append=hdb=ide-scsi hdd=ide-scsi


boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
lba32
message=/boot/message
image=/boot/vmlinuz-2.4.18-2cl
label=linux
root=/dev/hda5
initrd=/boot/initrd-2.4.18-2cl.img
read-only
append=hdb=ide-scsi hdd=ide-scsi
image=/boot/memtest86
label=memtest
other=/dev/hda1
label=win
table=/dev/hda

Then I added

alias scd0 sr_mod
alias scd1 sr_mod
pre-install sg modprobe ide-scsi
pre-install sr_mod modprobe ide-scsi

to /etc/modules.conf (hope those are correct).

Then:

su
pass
rm -fr /dev/cdrom
rm -fr /dev/cdrom1
ln -s /dev/sg0 /dev/cdrom
ln -s /dev/sg1 /dev/cdrw

After that I edited fstab to update the links, then booted up again just in case.
Then, after booting up I opened a shell and did a:

su
pass
cdrecord --scanbus

But it didn't work and then i messed up

fact is I accidentally deleted /dev/scd0, /dev/scd1, /dev/sg0, /dev/sg1, /dev/sga, /dev/sgb.

yep... I screwed up big time...

So i deleted the simlynks /dev/cdrom, /dev/cdrw and created them again but this time pointing to hdb (cdrom) and hdd (cdrw) so at least my cdrom and my cdburner would work as normal cdroms, and that's what i have now.

Well, that's about it.
hope i gave you guys all the info you need to help me out

thaks

Last edited by caleb; 10-09-2002 at 03:53 PM.
 
Old 10-09-2002, 02:09 PM   #2
Xterminator
Member
 
Registered: Sep 2002
Location: São Paulo -Brazil
Posts: 76

Rep: Reputation: 15
#rmmod ide-cd
#modprobe ide-scsi
#modprobe sg
#cdrecord -scanbus
Cdrecord 1.8 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
Using libscg version 'schily-0.1'
scsibus0:
0,0,0 0) 'HP ' 'CD-Writer+ 9300 ' '2.0g' Removable CD-ROM
cdrecord: Warning: controller returns wrong size for CD capabilities page.
0,1,0 1) 'CREATIVE' 'CD4820E CS990211' '1.03' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *

#mkdir /mnt/cdrw

#mknod /dev/sr0 b 11 0

#mknod /dev/sr1 b 11 1

# ln -sf /dev/sr0 /dev/cdrw
# ln -sf /dev/sr1 /dev/cdrom


#your editor /etc/rc.d/rc.local
in last line increase

modprobe sg; modprobe ide-scsi

Sorry Caleb i dont´t speak english
 
Old 10-09-2002, 03:48 PM   #3
caleb
Member
 
Registered: Sep 2002
Location: Cap. Fed. - Buenos Aires - Argentina
Distribution: Conectiva 10
Posts: 118

Original Poster
Rep: Reputation: 15
ok this is what i did

first

mknod /dev/sga c 21 0
mknod /dev/sgb c 21 0

as vlad told me on the other thread

then
ln -s /dev/sga /dev/sg0
ln -s /dev/sgb /dev/sg1

after that i issued
#rmmod ide-cd
#modprobe ide-scsi
#modprobe sg

and then
#cdrecord -scanbus

and i got a

[root@inferna gnemmi]# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
cdrecord: Warning: controller returns wrong size for CD capabilities page.
0,0,0 0) 'CREATIVE' 'CD5233E ' '1.00' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *

that means it recognizes my cd-rom but there's no word about my cd-rw and that's why i decided to stop until cdrecord -scanbus correctly recongnizes my LG cd-rw

is there a step or something i'm missing or did i do something wrong?

thanks for your help !!

Xterminator, if you don't know how to speak in English, you can write in portuguese if that's allowed in the forum (i really don't know if it's permitted or not) and I'll understand (my native tongue is spanish and you know we both understand portuñol :P).
 
Old 10-10-2002, 02:34 PM   #4
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Hi caleb,

Looks like you didn't make anything wrong, but you should check if the device /dev/sr0 or /dev/sr1 exists, and if don't, create then just like Xterminator, because the /dev/sga and /dev/sgb are a Generic SCSI access, so the most indicate devices you should use are /dev/sr0 and /dev/sr1, because they are SCSI CDROM devices.

Otherside you could check your logs with the comand

# tm

if something goes wrong, it will be show there.
 
Old 10-10-2002, 03:08 PM   #5
Xterminator
Member
 
Registered: Sep 2002
Location: São Paulo -Brazil
Posts: 76

Rep: Reputation: 15
Caleb my CDRW shows to this same message that its, but functions perfectly..I advises to you to have access the site http://xcdroast.sourceforge.net/RPMS/a10/conectiva-7+8/
and to bring up to date the packages for writing of CD's since the version of cdrtools of the Conectiva has a small problem of overflow in the writing of CDs, the version most recent functions of perfect form. you want to see mine xcdroast burning a COMPACT DISC? http://www.xterminator.hpg.ig.com.br/shots/XCDroast.jpg

Last edited by Xterminator; 10-10-2002 at 03:12 PM.
 
Old 10-10-2002, 07:00 PM   #6
caleb
Member
 
Registered: Sep 2002
Location: Cap. Fed. - Buenos Aires - Argentina
Distribution: Conectiva 10
Posts: 118

Original Poster
Rep: Reputation: 15
ok i checked on /dev and both files alredy existed (/sr0 /sr1), so there was no need to create them.

then deleted /dev/cdrom, /dev/cdrw/ and created them again but this time pointing to /dev/sr0 and /dev/sr1

#ln -s /dev/sr0 /dev/cdrom
#ln -s /de/sr1 /dev/cdrw

but when i issue a cdrecord -scanbues it still shows:

[gnemmi@inferna gnemmi]$ su
Password:
[root@inferna gnemmi]# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
cdrecord: Warning: controller returns wrong size for CD capabilities page.
0,0,0 0) 'CREATIVE' 'CD5233E ' '1.00' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
[root@inferna gnemmi]#

so i did a #tm

[root@inferna gnemmi]# tm
Oct 10 20:56:27 inferna pppd[1792]: secondary DNS address
oct 10 21:00:43 inferna su(pam_unix)[1888]: session opened for user root by gnemmi(uid=500)
Oct 10 21:00:47 inferna modprobe: modprobe: Can't locate module char-major-97
Oct 10 21:00:47 inferna last message repeated 3 times
Oct 10 21:02:43 inferna kernel: Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Oct 10 21:02:43 inferna kernel: Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
Oct 10 21:02:43 inferna kernel: sr0: scsi3-mmc drive: 0x/52x cd/rw xa/form2 cdda tray
Oct 10 21:02:43 inferna kernel: Uniform CD-ROM driver Revision: 3.12
Oct 10 21:02:43 inferna kernel: sr1: scsi3-mmc drive: 24x/32x writer cd/rw xa/form2 cdda tray
Oct 10 21:02:43 inferna kernel: cdrom: open failed.

 
Old 10-10-2002, 10:35 PM   #7
Xterminator
Member
 
Registered: Sep 2002
Location: São Paulo -Brazil
Posts: 76

Rep: Reputation: 15
Lightbulb :)

Caleb !!!
try again
[root@Zumbi edson]# cdrecord -scanbus
Cdrecord 1.11a19 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.6'
scsibus0:
0,0,0 0) 'CREATIVE' 'CD-RW RW8439E ' '1R15' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
cdrecord returns 0,0,0
the correct is
#ln -sf /dev/sr0 /dev/cdrw
#ln -sf /dev/sr1 /dev/cdrom

Last edited by Xterminator; 10-10-2002 at 10:37 PM.
 
Old 10-10-2002, 11:53 PM   #8
caleb
Member
 
Registered: Sep 2002
Location: Cap. Fed. - Buenos Aires - Argentina
Distribution: Conectiva 10
Posts: 118

Original Poster
Rep: Reputation: 15
[root@inferna gnemmi]# rm -fr /dev/cdrw
[root@inferna gnemmi]# rm -fr /dev/cdrom
[root@inferna gnemmi]# ln -sf /dev/sr0 /dev/cdrw
[root@inferna gnemmi]# ln -sf /dev/sr1 /dev/cdrom
[root@inferna gnemmi]# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
cdrecord: Warning: controller returns wrong size for CD capabilities page.
0,0,0 0) 'CREATIVE' 'CD5233E ' '1.00' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
[root@inferna gnemmi]#

the thing is that 0,0,0 0) 'CREATIVE' 'CD5233E ' '1.00' Removable CD-ROM is my cdrom drive and my cd-rw doesn't show on that list

another thing: isn't /sr0 my cdrom and /sr1 my cd-rw?

thanks for your help Xterminator and vlad )


Last edited by caleb; 10-10-2002 at 11:57 PM.
 
Old 10-11-2002, 03:49 PM   #9
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
caleb,

First of all, your links sr0 and sr1 don't have a "right" order by now , you should define it later, basing in your results of your scanbus, theres a need of a device, but your links exists just to turn your live easier in the future. You will create then in the order they apear in scanbus .

Look's like your system can "see" your cdrw (tm show's it), but cdrecord can't find it on your SCSI bus. There are some flags you colud pass to cdrecord that could help, like:

# cdrecord -reset

That should try to reset the SCSI bus where the CD recorder is located. Maybe your CDRW shows up on next test, if you will need to debug it using:

# cdrecord -d

You can see the proper documentation with:

# man cdrecord

and in the directory /usr/share/doc/cdrecord-_version_

But you should try too to use other program's to search your cdrw like the xcdroat, like Xterminator said.
 
Old 10-11-2002, 04:14 PM   #10
caleb
Member
 
Registered: Sep 2002
Location: Cap. Fed. - Buenos Aires - Argentina
Distribution: Conectiva 10
Posts: 118

Original Poster
Rep: Reputation: 15
[root@inferna gnemmi]# cdrecord -reset
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
scsidev: 'yamaha'
devname: 'yamaha'
scsibus: -2 target: -2 lun: -2
cdrecord: No such file or directory. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
[root@inferna gnemmi]# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
cdrecord: Warning: controller returns wrong size for CD capabilities page.
0,0,0 0) 'CREATIVE' 'CD5233E ' '1.00' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
[root@inferna gnemmi]#
 
Old 10-11-2002, 04:16 PM   #11
caleb
Member
 
Registered: Sep 2002
Location: Cap. Fed. - Buenos Aires - Argentina
Distribution: Conectiva 10
Posts: 118

Original Poster
Rep: Reputation: 15
tried with xcdroast but it only detects my cd-rom, just as cdrecord does
 
Old 10-14-2002, 07:05 AM   #12
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Caleb,

try:

# cdrecord -reset -scanbus -d
 
Old 10-14-2002, 07:38 AM   #13
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Lightbulb

Caleb,

Try too to pass a option in your boot line that shows what is your scsi device to grub:

# vi /boot/grub/menu.lst

kernel = (hdX,X)/boot/vmlinuz-_version_ root=/dev/XXX 3 vga=0x31A hdY=scsi

when Y is where your cdrw is conected (a,b,c,d)...
 
Old 10-14-2002, 10:53 AM   #14
wrc1944
Member
 
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139

Rep: Reputation: 15
This may or may not have anything to do with it, but because of the apparent confusion in the system recognizing the cd-rw, perhaps it does.

In my experience, and as I understand it from years of building systems, it is never a good idea to have cd-roms, or cd-rws connected as "slaves" to your hard drives. The cd-rom should be on the second ide connector as the primary, and the cr-rw hooked up as it's slave.

The hard drives should be hooked up to the first ide primary as master and slave.

Doing it in other ways might cause problems, as perhaps your system and software are designed to expect to see the standard drive connections I mention above.

wrc1944
 
Old 10-15-2002, 10:12 PM   #15
caleb
Member
 
Registered: Sep 2002
Location: Cap. Fed. - Buenos Aires - Argentina
Distribution: Conectiva 10
Posts: 118

Original Poster
Rep: Reputation: 15
sorry ppl but there's something wrong with my HD
I'll have to get it fix and then I'll post again
it's gonna take two or three days

see ya soon and thanks for your help !!

Last edited by caleb; 10-15-2002 at 10:13 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does the mounting of a *BSD partition on linux work work well when rw ? kloss *BSD 3 10-08-2005 02:21 PM
Will Ubuntu Work work With my Wireless Card? PulsarSL Ubuntu 3 10-07-2005 10:33 PM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 10:32 PM
FALCONS EYE (nethack) FAILS ON STARTUP, use to work, wont work even after reinstall roorings Linux - Software 0 10-08-2003 10:39 PM
UPS cable didn't work. A cool work-around jlangelier LinuxQuestions.org Member Success Stories 1 07-18-2003 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva > Conectiva

All times are GMT -5. The time now is 05:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration