LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-30-2002, 12:14 PM   #1
Kostko
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 57

Rep: Reputation: 15
CD-Writing problem in linux


i have a problem with setting up my cd writer (TEAC W516EB). i am using kernel 2.4.19, and i have support for ide scsi emulation in the kernel. kernel boot parameters include "hdc=scsi" and kernel detects my writer just fine.

contents of /proc/scsi/scsi:
Quote:
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: TEAC Model: CD-W516EB Rev: 1.0B
Type: CD-ROM ANSI SCSI revision: 02
if i try to use "cdrecord -scanbus", i get the folowing error message:
Quote:
Read-only file system. Cannot open '/dev/sg0'. Cannot open SCSI driver.
so what is wrong
 
Old 08-30-2002, 12:42 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You may have missed 1 or 2 things when configuring your kernel. You need SCSI cdrom support, SCSI Generic support, and possible the vendor specific thingie. I also enable "debugging" or whatever that line is (it says it adds like 12k to my kernel, whoopdy do!). I actually got that line a few weeks ago when I too upgraded to .19 and that's what I missed. The things I mentioned above.

Good luck.
 
Old 08-30-2002, 01:25 PM   #3
Kostko
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 15
MasterC: i have enabled EVERYTHING you said, but i still get the same error message when using cdrecord.
 
Old 08-30-2002, 01:35 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
What does dmesg say about your burner?
 
Old 08-30-2002, 01:36 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Oh, and do you use Lilo to boot, or Grub, and what distro?

If lilo, does your line really just say:
hdc=scsi?

And are you sure it's on the Secondary Master ide channel?

Cool
 
Old 08-30-2002, 01:37 PM   #6
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Just a thought - if you're using an IDE which is emulating a SCSI shouldn't the device be scd[n] ?

I think you can specify the device with a -d switch in cdrecord -scanbus.

Bert
 
Old 08-30-2002, 02:29 PM   #7
Kostko
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 15
1. i use grub (lilo doesn't work on my raid install)
2. i use debian 3.0
3. dmesg:
hdc: CD-W516EB, ATAPI CD/DVD-ROM drive
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: TEAC Model: CD-W516EB Rev: 1.0B
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
 
Old 08-30-2002, 02:30 PM   #8
Kostko
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 15
oh, and i am sure that it is hdc.

Last edited by Kostko; 08-31-2002 at 04:05 AM.
 
Old 08-30-2002, 06:43 PM   #9
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
If you use ide-scsi emulation it is no longer hdc - system with scsi emulation configured properly doesn't recognize your /dev/hdc as a valid block device anymore. In the output of /sbin/lsmod do you see ide-scsi, sr_mod, scsi_mod???
 
Old 08-31-2002, 04:04 AM   #10
Kostko
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 15
neo77777: as i said before, i didn't compiled ide-scsi emulation as modules, but i compiled them in the kernel.

about hdc, sorry my mistake.... it is /dev/scd0

Last edited by Kostko; 08-31-2002 at 04:06 AM.
 
Old 08-31-2002, 04:13 AM   #11
Kostko
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Bert
Just a thought - if you're using an IDE which is emulating a SCSI shouldn't the device be scd[n] ?

I think you can specify the device with a -d switch in cdrecord -scanbus.

Bert
well, because /dev/sg0 links to /dev/scd0 this doesn't make a difference, but i tryed it anyway and it doesn't work
 
Old 08-31-2002, 04:44 AM   #12
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
You need to make a link to get it to work.There is a thread I can't find anymore somwhere here with all about it.It is something like ln -s /dev/scd0 /dev/hdc
Now this is probably wrong - I am not a great linker.But it's something around that.
That 'should' make it work if your kernel and bootparameters are ok.At least with cdrecord.Cdparanoia is another story.I am working on that.

Last edited by crashmeister; 08-31-2002 at 04:47 AM.
 
Old 08-31-2002, 05:04 AM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Would this be the thread you were looking for:
http://www.linuxquestions.org/questi...threadid=28580
?

If you haven't read that thread through yet Kostko, you might want to, just to make sure you have done the things to get cdburning enabled.

Oh and crashmeister, once the CDROM becomes a SCSI emulating device, /dev/hdc is no longer valid, and is not necessary.

Cool

Last edited by MasterC; 08-31-2002 at 05:07 AM.
 
Old 08-31-2002, 05:16 AM   #14
Kostko
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 15
MasterC: yes i have done every thing that is asked there.

my conf files:
/boot/grub/menu.lst:
title Linux - 2.4.19
root (hd1,0)
kernel /boot/linux-2.4.19 root=/dev/hdg1 ro hdc=ide-scsi

dmesg:
hdb: SAMSUNG CD-ROM SC-148F, ATAPI CD/DVD-ROM drive
hdc: CD-W516EB, ATAPI CD/DVD-ROM drive
hde: IC35L040AVER07-0, ATA DISK drive
hdg: WDC WD800JB-00CRA1, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
ide2 at 0xdc00-0xdc07,0xe002 on irq 5
ide3 at 0xe400-0xe407,0xe802 on irq 5
hde: 80418240 sectors (41174 MB) w/1916KiB Cache, CHS=79780/16/63, UDMA(44)
hdg: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=155061/16/63, UDMA(100)
hdb: ATAPI 48X CD-ROM drive, 128kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
ide-cd: passing drive hdc to ide-scsi emulation.
...
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: TEAC Model: CD-W516EB Rev: 1.0B
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
...

/proc/scsi/scsi:
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: TEAC Model: CD-W516EB Rev: 1.0B
Type: CD-ROM ANSI SCSI revision: 02

do you need any more conf files? just ask
 
Old 08-31-2002, 05:36 AM   #15
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Naah,it,s there http://www.linuxquestions.org/questi...ighlight=chaos
That links there got me going with debian.Thanks a lot by the way.
 
  


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
cd writing problem thundershtorm Linux - Software 1 03-26-2005 10:34 AM
the writing problem lfx4linux Ubuntu 2 03-20-2005 12:21 PM
Problem in reading/writing binary data in Linux esi-eric Linux - Hardware 3 07-20-2004 04:21 PM
problem writing a script john8msu Linux - General 2 04-15-2004 03:59 PM
cd writing software which supports multisession writing jayakrishnan Linux - General 3 03-24-2003 05:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:40 AM.

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