Mailinglist Archive: opensuse (3959 mails)

< Previous Next >
Re: [SLE] Need help getting CD RW Working
  • From: Ralph De Witt <ralphdewitt@xxxxxxxxxxx>
  • Date: Sat, 4 Jan 2003 05:40:18 -0800
  • Message-id: <200301040540.23779.ralphdewitt@xxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 04 January 2003 04:21, Carlos E. R. wrote:
> The 03.01.03 at 02:48, Ralph De Witt wrote:
> > Carlos:
> > I have done some more looking and have found that I can not play cd's
> > with the DVD, and cannot get to the cdrw. In Grub on the kernnel line I
> > have only hdd=ide-scsi listed. My dvd, and cdrw are both ide drives. In
> > the hardware info area of yast2, the DVD is listed as /dev/sr0, and the
> > CDRW is listed as /dev/sr1 this in the CDROM section. The above is
> > repeated in the SCSI section. My Desktop DVD icon is pointed to
> > /dev/cdreacorder, and the Desktop CD-R icon is pointed to /dev/cdrom. In
> > my /dev directory I see links for cdrom, cdrom1, cdrecorder, and dvd
> > devices, but lack the skill to find out what they point to. In the media
> > directory I have cdrom, cdrom1,cdrecorder, and dvd subdirectories. Can
> > you help me sort this all out. Hopefully if we can get the links to the
> > right devices and any extra removed then it will all work. Looks like the
> > install went worst then the multiple repeats of the devices we fixed.
> > This is possible the cause of the other errors I was seeing.
>
> Ok, I don't know about the automatics, but I do know about the "manual"
> way. First, browse your boot file ("less /var/log/boot.msg"). Note the
> line "Kernel command line", something like this:
>
> <4>Kernel command line: root=/dev/hdb6 hdc=ide-scsi hdd=ide-scsi vga=791
> <4>ide_setup: hdc=ide-scsi
> <4>ide_setup: hdd=ide-scsi
>
<4>Kernel command line: root=/dev/hda1 hdd=ide-scsi max_scsi_luns=1 vga=791
<4>ide_setup: hdd=ide-scsi
<6>Initializing CPU#0

> This will confirm what parameters we actually pass to the kernel. Later,
> comes the HD detection, something like this:
>
> <4>ide: Assuming 33MHz system bus speed for PIO modes; override with
> idebus=xx
> <4>ICH2: IDE controller on PCI bus 00 dev f9
> <4>ICH2: chipset revision 18
> <4>ICH2: not 100%% native mode: will probe irqs later
> <4> ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
> <4> ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
> <4>hda: ST360020A, ATA DISK drive
> <4>hdb: ST340810A, ATA DISK drive
> <4>hdc: IDE DVD-ROM 16X, ATAPI CD/DVD-ROM drive
> <4>hdd: CR-48X8TE, ATAPI CD/DVD-ROM drive
>
>
<6>Uniform Multi-Platform E-IDE driver Revision: 6.31
<4>ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
<4>VP_IDE: IDE controller on PCI bus 00 dev 89
<6>PCI: Hardcoded IRQ 14 for device 00:11.1
<4>VP_IDE: chipset revision 6
<4>VP_IDE: not 100%% native mode: will probe irqs later
<4>VP_IDE: Unknown VIA SouthBridge, contact Vojtech Pavlik <vojtech@xxxxxx>
<4>hda: MAXTOR 4K080H4, ATA DISK drive
<4>hdc: TOSHIBA DVD-ROM SD-M1612, ATAPI CD/DVD-ROM drive
<4>hdd: LITE-ON LTR-16101B, ATAPI CD/DVD-ROM drive


> So, in my case, this confirms that my DVD is phisically hdc, and the
> cdwriter is hdd. But, as I configured ide-scsi for both (as confirmed by
> the kernel parameter lines above), I find the scsi emulation further down
> on that log file:
>
> <4>hdc: no flushcache support
> <4>hdd: no flushcache support
> <6>scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> <4> Vendor: IDE Model: DVD-ROM 16X Rev: 1.06
> <4> Type: CD-ROM ANSI SCSI revision: 02
> <4> Vendor: MITSUMI Model: CR-48X8TE Rev: 1.1E
> <4> Type: CD-ROM ANSI SCSI revision: 02
> <7>sd_attach()
> <7>sd_attach()
>
>
<4>hdc: no flushcache support
<4>hdd: no flushcache support
<6>scsi0 : SCSI host adapter emulation for IDE ATAPI devices
<4> Vendor: TOSHIBA Model: DVD-ROM SD-M1612 Rev: 1004
<4> Type: CD-ROM ANSI SCSI revision: 02
<4> Vendor: LITE-ON Model: LTR-16101B Rev: TS0N
<4> Type: CD-ROM ANSI SCSI revision: 02
<7>sd_attach()
<7>sd_attach()


> So, I have confirmation that both drives are using ide-scsi emulation. In
> fact, the only one that needs it is the recorder; but if you want to make
> cd - cd copies, the reader has to use ide-scsi as well. At least, xcdroast
> complained. However, you could set the dvd as a normal ide device instead.
> I'll assume ide-scsi for both.
>
> Now, try to run "scan_scsi.linux" (package "cdda2wav"):
>
> nimrodel:~ # scan_scsi.linux
> Host: scsi0 Channel: 00 Id: 00 Lun: 00 CD-ROM -> /dev/sg0
> Host: scsi0 Channel: 00 Id: 01 Lun: 00 CD-ROM -> /dev/sg1
>
> /dev/sg0 is the hdc (DVD)
> /dev/sg1 is hdd (cdwriter)
>
linux:/home/ralph # scan_scsi.linux
Host: scsi0 Channel: 00 Id: 00 Lun: 00 CD-ROM -> /dev/sg0
Host: scsi0 Channel: 00 Id: 01 Lun: 00 CD-ROM -> /dev/sg1
linux:/home/ralph #


> So... what links should we make? I have these:
>
> cdrecorder -> scd1
> cdrom -> scd1
> dvd -> scd0
>
Ok so far. I am going to stop the process here for now. If I am correct in
reading the stuff from my system the only parameter I have passed to the
kernel is hdd=ide_scsi (this is my cd-rw), yet it is telling me that both hdc
(which is my dvd) and hdd (which is my cd-rw) are being scsi emulated. Is
this correct?

Now when I look in /dev is see links for cdrom, cdrom1, cdrecorder, and dvd.
But I do not have sufficent knowledge to know what they are pointing. Should
these links be deleted?

I also have 4 directories in /media. cdrom, cdrom1, cdrecorder, and dvd. I
feel/think that cdrom1 was some how created in error. Should that one be
deleted?

Now when we create the links is dvd and cdrom linked to the dvd hdc, and
cdrecorder linked only to sr0?

Before we do any linking how do we get hdc to be just ide, and not scsi
emulated. (I have no need to do cd to cd-rw copying at this time.

> (use the command "ls -l /dev/cdr*" and "ls -l /dev/dvd*"). If you don't
> feel confortable with the comand line, use mc (Midnight Comander) on a
> text console or terminal: it is similar to the old Norton Comander for
> MsDos and quite powerfull. Under the "File" menu you can create or edit
> symlinks (don't use hardlinks, ie, plain links, they are more difficult to
> keep track off).
>
> Note: scd0 is equivalent to sr0, which is to be deprecated, the docs say.
> I have a doubt about the recorder, I'll have to test something.
>
> Now, permissions... in order to write CDs, you will need write
> permissions. But, desktops like gnome or kde change these everytime you
> log in.
>
> Cd sound. Well... the gnome player insists on using the cdrom, even if I
> change it to dvd. Too bad. Neither does kscd, complains of permissions.
>
> :-? Ok, I have:
>
> nimrodel:/dev # l scd0
> brw-r----- 1 root disk 11, 0 Sep 9 22:24 scd0
>
> Mmm... my normal user doesn't belong to group disk, so for a quick change
> I'll change it to:
>
> brw-rw---- 1 root audio 11, 0 Sep 9 22:24 scd0
>
> Now, the gnome app keeps complaining, but not kscd. Good! I have J.S. Bach
> "Chromatische Fantasie & Fuge" playing from the DVD set as ide-scsi :-)
>
>
> Just an idea: there has to be an internal audio cable conected from the
> dvd to the sound device for play back; some installers neglect to put it.
>
Audio cable is hooked up.

>
> I hope the above is not too confusing, I feel a bit sleepy today :-)

I am getting tired and yes I have gotten somewhat confused, but things are
also a little clearer, I made comments in the middle of things along with all
the questions I could think of. Hope I do not confuse you too much.

- --
Yours,
Ralph.
It said Use Windows XP or better, so I installed SuSE-Linux 8.1
Register Linux User 168814 ICQ #49993234 AIM ralphdewitt jabber.org
ralphdewitt
GPG Public Key available at http://www.keyserver.net
Key id = 3097 3BC4
Kernel version 2.4.19-4GB
Current Linux uptime: 1 days 3 hours 12 minutes.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+FuRCmmsm1DCXO8QRAuO6AJ43HaxGHBW1W9mHf/mjoXinTY7rBQCfZ/mJ
QFpKRlx9BHAf/j+QLjExjIs=
=GoUh
-----END PGP SIGNATURE-----


< Previous Next >
References