Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-29-2005, 11:10 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Posts: 29
Rep:
|
CD Burning on 2.4.26
I am trying to get my computer to burn CDs. When I run cdrecord I get
bash-2.05b# 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'.
From this I figure that I need to enable ide-scsi emulation, so I edited lilo.conf, but now:
bash-2.05b# dmesg | grep scsi
Kernel command line: auto BOOT_IMAGE=Linux ro root=302 cdrom = ide-scsi
ide_setup: ide-scsi -- BAD OPTION
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
so I don't think that it worked. I can't figure out the BAD OPTION. Also,
bash-2.05b# cat etc/fstab
/dev/hda1 swap swap defaults 0 0
/dev/hda2 / reiserfs defaults 1 1
/dev/hdb1 /home reiserfs defaults 1 2
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro,user 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,user 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
and,
bash-2.05b# lsmod | grep scsi
ide-scsi 9328 0
After some searching I think that I need to recompile my kernel with ide-scsi emulation into it.
But, I have never done a kernel recompile before so this makes me nervous...
Is this even the right way to go? My goal is to get cdrecord working.
By the way I am using Slackware 10
|
|
|
05-29-2005, 11:23 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
i'd think that the "bad option" is the reference to "cdrom" rather than the real ide device, i.e. hdb, hdc or hdd most likely. I'd also suggest removing the spaces either of the =, not sure if it actaully matters at all though.
ide-scsi isn't something normally left out of a 2.4 kernel, but if you do end up looking at recompiling a kernel, i'd VERY VERY strongly recommend you don't. instead build a 2.6 kernel, which doesn't need ide-scsi stuff anyway, and gives vastly improved burner performance as a result.
i'm not a slack user at all, but i'm sure slack does at least include a 2.6 kernel nowadays.
|
|
|
05-29-2005, 11:30 AM
|
#3
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
You might have the ide-scsi module loaded but do you have it specifying what devices should be using it at bootup from your lilo.conf file in the correct format?
|
|
|
05-29-2005, 01:30 PM
|
#4
|
LQ Newbie
Registered: Jul 2003
Posts: 29
Original Poster
Rep:
|
Alright good, removing the spaces around "=" got rid of BAD OPTION. Now,
bash-2.05b$ dmesg | grep scsi
Kernel command line: auto BOOT_IMAGE=Linux ro root=302 cdrom=ide-scsi
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
I still have the same problem with cd record.
Maybe getting the 2.6 kernel would be an instant fix to everything. How do I go about doing that?
Also, here is what my lilo.conf looks like:
image = /boot/vmlinuz
root = /dev/hda2
append = "cdrom=ide-scsi"
label = Linux
read-only
|
|
|
05-29-2005, 02:18 PM
|
#5
|
Member
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184
Rep:
|
|
|
|
05-29-2005, 04:00 PM
|
#6
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Quote:
append = "cdrom=ide-scsi"
|
This line should go before your image section and why are you using cdrom.. should be your actual device name.. like hdc or something.
|
|
|
05-29-2005, 04:34 PM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
isbn't that what i said first time, drew??
|
|
|
05-29-2005, 11:57 PM
|
#8
|
LQ Newbie
Registered: Jul 2003
Posts: 29
Original Poster
Rep:
|
Awesome! Upgrading to the 2.6 kernel did it.
bash-2.05b# cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.7'
scsibus0:
0,0,0 0) 'SONY ' 'CD-RW CRX100E ' '1.0m' 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) *
Thanks
|
|
|
05-30-2005, 02:42 AM
|
#9
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
no, hang on, that's still using scsi emulation isn't it??? you should *NOT* be using ide-scsi on a 2.6 kernel. instead it's direct to the IDE driver via ATAPI:
Code:
kermit chris # cdrecord -scanbus -dev=ATAPI
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.10-kermit-r1
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'SAMSUNG ' 'DVD-ROM SD-616Q ' 'F401' 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) *
don't get this far and then go wrong!
|
|
|
05-30-2005, 09:40 AM
|
#10
|
LQ Newbie
Registered: Jul 2003
Posts: 29
Original Poster
Rep:
|
Yeah, lots of stuff went wrong. It turns out that I did not even have the 2.6 kernel installed so I did that part wrong. But, in the process of doing it, something happened and I can burn CDs now. Since I only want to back up some stuff before switching out my hard drive, this is good enough.
|
|
|
All times are GMT -5. The time now is 10:17 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|