LinuxQuestions.org
Help answer threads with 0 replies.
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 12-29-2004, 09:02 AM   #1
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Rep: Reputation: 30
cdrecord not working after compiling new kernel 2.6.7


I installed kernel-2.6.7 package from slackware-10.0/testing/packages
(btw, I have Slackware 10.0, incase you didn't know :P)

Anyway, after running this kernel (all works fine) except when I do:
cdrecord -scanbus

I don't get any CD-RW's listed anymore
Code:
root@AliTriX:~# cdrecord -scanbus
Cdrecord 2.00.3 (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'.

Is the /dev of my CD-RW changed? If yes, what is the new one
I tryed to find it in /dev , but couldn't see anything that can help me
 
Old 12-29-2004, 09:05 AM   #2
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Original Poster
Rep: Reputation: 30
Btw, has this to do something with this?
(this is a mail sended to root with the subject 'Welcome to Linux (Slackware 10.0)!')

Code:
   Do you have an IDE based CD-RW drive?  If so, you'll need to use
the SCSI emulation kernel module, which will allow your drive to look
like a SCSI CD burner to cdrdao, cdrecord, and other Linux CD
burning applications.  (Unless you use a 2.6 kernel, which no longer
requires the ide-scsi driver and can use IDE devices like /dev/hdc
directly)
  The ide-scsi module is loaded by default for Linux 2.4, but you'll
also need to pass an option to the kernel telling it to use SCSI
emulation for a specific device, otherwise the ATAPI driver will be
used.  Let's say your CD-RW drive is /dev/hdc, then you'd want to pass
the "hdc=ide-scsi" option to the kernel.  You can do this with an
append command in /etc/lilo.conf:
   append="hdc=ide-scsi"
After editing lilo.conf, you must run lilo to reinstall it.
You can also pass the hdc=ide-scsi option on a bootdisk command line.
Once you do this, your CD-RW device will appear as a SCSI device
(/dev/scd0) rather than an IDE device (/dev/hdc).  If this is the only
CD-ROM type device in the machine (there's no DVD drive, for instance),
then you'll probably also want to change your /dev/cdrom symbolic link
to point to the new SCSI device instead of the old IDE device:

  cd /dev
  rm cdrom
  ln -sf scd0 cdrom
 
Old 12-29-2004, 09:08 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
you can try this:
cdrecord dev=ATAPI -scanbus

you may have something different compiled as a module instead of in the kernel like sg and such. You can check your loaded modules with lsmod.
 
Old 12-29-2004, 09:10 AM   #4
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Original Poster
Rep: Reputation: 30
I found this in my grub/menu.list

hdd=ide-scsi

I removed this and restarting now, maybe this will help (cause as you can read in the mail (Unless you use a 2.6 kernel, which no longer
requires the ide-scsi driver and can use IDE devices like /dev/hdc
directly)
)

Hope this will help me
If not, I will try your way
 
Old 12-29-2004, 03:53 PM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
the command i gave you will show the ide devices cdrecord can use whether or not there is ide-scsi. you can directly use atapi or use the ide-scsi with the 2.6.x kernels. you just have to reference the burner differently with the burning software.
whatever device
cdrecord dev=ATAPI -scanbus
shows you you use the device
cdrecord dev=ATAPI:0,1,0 or appropriate in the burning command.
 
Old 12-30-2004, 01:45 AM   #6
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Original Poster
Rep: Reputation: 30
Yes, but it isn't working

Code:
root@AliTriX:~# cdrecord dev=ATAPI -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg 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) 'JLMS    ' 'DVD-ROM LTD-165H' 'CH0U' Removable CD-ROM
        0,1,0     1) 'SONY    ' 'CD-RW  CRX210E1 ' '2YS1' 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) *
root@AliTriX:~#

Code:
root@AliTriX:~# cdrecord -dummy -v dev=ATAPI:0,1,0 fs=8m speed=4 /home/dbzgt/flu
xbox.iso
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: 'ATAPI:0,1,0'
devname: 'ATAPI'
scsibus: 0 target: 1 lun: 0
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'
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'SONY    '
Identifikation : 'CD-RW  CRX210E1 '
Revision       : '2YS1'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE FORCESPEED
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1895168 = 1850 KB
FIFO size      : 8388608 = 8192 KB
Track 01: data     1 MB
Total size:        1 MB (00:07.49) = 562 sectors
Lout start:        1 MB (00:09/37) = 562 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 0
  Reference speed: 0
  Is not unrestricted
  Is erasable
  Disk sub type: Ultra High speed Rewritable media (2)
  ATIP start of lead in:  -11613 (97:27/12)
  ATIP start of lead out: 335925 (74:41/00)
  1T speed low: 16 1T speed high: 16
  2T speed low:  8 2T speed high: 24
  power mult factor: 4 5
  recommended erase/write power: 5
  A1 values: 66 4A D9
  A2 values: 38 80 00
  A3 values: 04 C5 A8
Disk type:    Phase change
Manuf. index: 18
Manufacturer: Plasmon Data systems Ltd.
Blocks total: 335925 Blocks current: 335925 Blocks remaining: 335363
Forcespeed is OFF.
cdrecord: Trying to use ultra high speed medium on improper writer.
cdrecord: fifo had 8 puts and 0 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 0%.
root@AliTriX:~#
Damn man, this sony CD-RW is making me sick!!
I tryed so many things, still cdrecord CAN'T write anything to it
 
Old 12-30-2004, 11:44 AM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
i think you're doing it right. it looks like you're using a 24x cdrw disc in a drive that doesn't support it. try a regular cdr and use the -dummy option for a test.
 
Old 12-30-2004, 03:49 PM   #8
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Original Poster
Rep: Reputation: 30
Correct dude!!
Tnx

I was just using a bad CD-RW

But now another problem, since I installed kernel 2.6.7, k3b isn't finding any write devices
Can I fix this?
 
Old 12-30-2004, 04:06 PM   #9
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Original Poster
Rep: Reputation: 30
AH forget it, fixed that myself!!

Incase you want to know how.
The problem is, kernel 2.6.x is bit different from 2.4.x, so all the access rights are changed
I did:

Code:
dbzgt@AliTriX:~$ ls -al /dev/ | grep hdc
lrwxrwxrwx   1 root root           3 2004-12-30 12:14 dvd -> hdc
brw-rw----   1 root cdrom  22,   0 2004-12-30 12:14 hdc
dbzgt@AliTriX:~$ ls -al /dev/ | grep hdd
lrwxrwxrwx   1 root root           3 2004-12-30 12:14 cdrom -> hdd
brw-rw----   1 root cdrom  22,  64 2004-12-30 12:14 hdd
As you see, only root & cdrom (group) is allowed to read&write to these two devices (btw, only hdd is the RW, hdc is the ROM)
Simple, just add yourself ot the group cdrom

(Incase you used the option in K3B to allow the group burning use your CD-RW, then it's possible to change the permissions of /dev as well, see below)
Code:
dbzgt@AliTriX:~$ ls -al /dev/ | grep hdc
lrwxrwxrwx   1 root root           3 2004-12-30 12:14 dvd -> hdc
brw-rw----   1 root burning  22,   0 2004-12-30 12:14 hdc
dbzgt@AliTriX:~$ ls -al /dev/ | grep hdd
lrwxrwxrwx   1 root root           3 2004-12-30 12:14 cdrom -> hdd
brw-rw----   1 root burning  22,  64 2004-12-30 12:14 hdd
Just use chown root:burning /dev/hdX



Good luck with it!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FC3:Sound stopped working in all installed kernels after compiling 2.6.13-ck2 kernel whencat Linux - Software 1 09-09-2005 03:22 AM
cdrecord not working anindyanuri Linux - Software 2 07-31-2005 11:56 AM
Kernel compiling = mouse not working the_sLiDe Slackware 5 10-30-2004 10:28 PM
CD-ROM not working after compiling a kernel Zvi Linux - Hardware 5 01-30-2004 01:44 PM
Compiling cdrecord priyesh Linux - Software 2 09-05-2003 07:14 AM

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

All times are GMT -5. The time now is 10:06 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