Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CDROM issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
zeky
Guru
Guru


Joined: 24 Feb 2003
Posts: 470
Location: Vukojebina, Europe

PostPosted: Sat Mar 15, 2003 7:36 pm    Post subject: CDROM issues Reply with quote

hi!

Let's start from the begining. I'v read all kind of forums but didn't find what i was looking for :( I have a cd-rw, the only cdrom in my box on my hdb, it's IDE cdrom. I wanted it to work for burning. I've included scsi emulation in kernel, load the modules etc... The first problem is:

Code:
zeky root # cdrecord -scanbus
Cdrecord 2.0 (i686-pc-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.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.


What am I missing here???

--zeky :roll:
Back to top
View user's profile Send private message
Bolle
n00b
n00b


Joined: 15 Mar 2003
Posts: 3
Location: D/BW/Bruchsal

PostPosted: Sat Mar 15, 2003 8:54 pm    Post subject: Reply with quote

Quote:

What am I missing here???


The hdX=ide-scsi boot parameter?


From my grub.conf:
Code:

title gentoo
        root (hd0,4)
        kernel /boot/kernel-2.4.20 ro root=/dev/hda6 hdc=ide-scsi
Back to top
View user's profile Send private message
zeky
Guru
Guru


Joined: 24 Feb 2003
Posts: 470
Location: Vukojebina, Europe

PostPosted: Sat Mar 15, 2003 9:10 pm    Post subject: Reply with quote

Quote:

The hdX=ide-scsi boot parameter?


allready done this:

Code:
kernel (hd0,3)/boot/bzImage root=/dev/hda4 vga=0x315 hdb=ide-scsi


btw...

Code:
zeky root # ls /dev/hdb
ls: /dev/hdb: No such file or directory
Back to top
View user's profile Send private message
Arthur Vandelay
n00b
n00b


Joined: 09 Jan 2003
Posts: 55

PostPosted: Sun Mar 16, 2003 12:28 am    Post subject: Reply with quote

Check if all the modules are being loaded. From my /etc/modules.autoload file:

ide-scsi
sg
sr_mod
Back to top
View user's profile Send private message
bear
n00b
n00b


Joined: 15 Feb 2003
Posts: 11
Location: Minnesota

PostPosted: Sun Mar 16, 2003 1:39 am    Post subject: Reply with quote

I'm having a problem which i think is similar to this. I compiled the SCSI emulation and cd-rom support directly into the kernel (sans modules) I removed all ATAPI support and I have the "kernel /bzImage root=/dev/hdc4 hda=ide-scsi hdb=ide-scsi" in my grub.conf. My issue is this...
Code:
s0575 root # cdrecord -scanbus
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
scsibus0:
        0,0,0     0) '_NEC    ' 'DV-5700A        ' '1.51' 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) *
s0575 root # cdrecord -scanbus dev=ATAPI
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?Schilling
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.7'
scsibus0:
        0,0,0     0) '_NEC    ' 'DV-5700A        ' '1.51' Removable CD-ROM
        0,1,0     1) 'IDE-CD  ' 'R/RW 8x4x32     ' ' 1.5' 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) *


I don't exactly know what all of this means, however, I'm assuming that it's a problem that my CDR drive doesn't show up on the first 'cdrecord -scanbus'. Also, I attempted a "ls /dev/hda" and nothing shows up for me either. Any help would be appreciated. Thanks.

~Bear
Back to top
View user's profile Send private message
jth
n00b
n00b


Joined: 10 Mar 2003
Posts: 8

PostPosted: Sun Mar 16, 2003 6:55 am    Post subject: Reply with quote

If you want to do it easy way, let K3b CD Kreator configure your CD drives, fstab and user permissions. :roll:
Back to top
View user's profile Send private message
Regor
Guru
Guru


Joined: 06 Aug 2002
Posts: 545
Location: 39° 2' 48" N, 120° 59' 2" W

PostPosted: Sun Mar 16, 2003 9:51 am    Post subject: Reply with quote

The simplest way to deal with this IMNSHO, is to treat all CD drives as SCSI. Compile in (or as modules) support for SCSI emulation, SCSI CD, and SCSI generic devices. Leave out support for ATAPI cd drives. If modularized, make sure all appropriate modules are loaded. (Why would you modularize this, do you ever not want CD support? Just wondering.)

Don't bother with any kernel arguments, such as "hdx=ide-scsi" (feh).

System should boot with all CD drives seen as SCSI devices, where they can now be used normally for any purpose, reading writing, burning coasters and christmas ornaments, whatever.

HTH.
Back to top
View user's profile Send private message
t0nik
n00b
n00b


Joined: 11 Oct 2002
Posts: 55
Location: Moscow, Russia

PostPosted: Sun Mar 16, 2003 1:29 pm    Post subject: Reply with quote

i have similar problem with kernel-2.4.20(gentoo-sources-r1) & no problem with gentoo-2.4.19-r10.
Code:
~> # cdrecord -scanbus
Cdrecord 2.0 (i686-pc-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.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
from my grub.conf -2.4.19
Code:
kernel (hd0,3)/boot/bzImage root=/dev/hda4 vga=0x315 hdd=ide-scsi
& 2.4.20
Code:
kernel (hd0,3)/boot/bzImage.2420 root=/dev/hda4 vga=0x315 hdd=ide-scsi
scsi emulation into kernel or modules - no difference... While another solution not exist, I USE linux-2.4.19
_________________
sorry my bad english :(
t0nik
Back to top
View user's profile Send private message
jeffs
n00b
n00b


Joined: 16 Mar 2003
Posts: 10

PostPosted: Sun Mar 16, 2003 4:53 pm    Post subject: Reply with quote

Here is what I did to get things working in 2.4.20 (gentoo-sources).

I have a DVD reader on /dev/hdc and a CDRW on /dev/hdd

Compiled cdrom, ide-scsi and scsi cdrom as modules.

Added the append="hdd=ide-scsi"

Added the following to to modules.autoload
cdrom
ide-cd
ide-scsi
sr_mod


Added the following lines to /etc/modules.d/aliases
alias sr0 sr_mod
alias scsi_hostadapter ide-scsi
options ide-cd ignore hdd

run modules-update

Everything seems to work OK.

jeffs
Back to top
View user's profile Send private message
zeky
Guru
Guru


Joined: 24 Feb 2003
Posts: 470
Location: Vukojebina, Europe

PostPosted: Mon Mar 17, 2003 1:15 am    Post subject: Reply with quote

okay, i finnaly got my IDE CD-RW up and running, and i want to share this with all of you.

My IDE cd is Sony CD-RW on hdb (the only CD in the box). I recompiled kernel where i include SCSI support, SCSI emulation, generic scsi and scsi cdrom in the kernel (not like modules), and i didn't include support for IDE ATAPI cdroms.

later on I...

Added the following lines to /etc/modules.d/aliases
alias sr0 sr_mod
alias scsi_hostadapter ide-scsi
options ide-cd ignore hdd

and run...

modules-update

rebooted into the new kernel and voila... everything works great.

Btw, for easy setup your CD-RW drive use k3b, it's the best. 8)

--zeky
Back to top
View user's profile Send private message
oscrmyer
n00b
n00b


Joined: 21 Sep 2003
Posts: 31
Location: Seattle

PostPosted: Fri Oct 10, 2003 9:30 pm    Post subject: Reply with quote

I had the same problems with my system and read this whole string and got everything to work :oops:
_________________
I could be outside but its sunny
Back to top
View user's profile Send private message
Retriever II
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2003
Posts: 93
Location: Northampton, MA, USA

PostPosted: Fri Oct 10, 2003 10:39 pm    Post subject: Reply with quote

ever consider burning with cdrecord's ATAPI support?

#cdrecord -dev=ATAPI:0,1,0 -scanbus

Had ATAPI enabled in the kernel, didn't have to lay a finger on scsi, and burning worked beautifully.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum