LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-12-2003, 10:17 PM   #1
pib
LQ Newbie
 
Registered: Sep 2003
Posts: 14

Rep: Reputation: 0
Unhappy HELP! cdrecord -scanbus freezes!!!


Okay, I've got an Acer 6x4x6 USB CD-RW drive that I'm trying to get set up in linux. I had no problems getting it detected or mounted. The problem comes when I run cdrecord -scanbus.
It gets to the "scsibus0:" line and then nothing else happens, it just sits there. So I kill it with CTRL-C, then try again. This time, it only gets to "Linux sg driver version: 3.1.24", and it won't let me kill it with CTRL-C, nor will it let me kill it with the kill command or the killall command. After cdrecord freezes up, when I try to reboot, it stops at the "Stopping USB and PCI hotplugging:" line.

cdrecord also freezes up when I manually tell it what device to use.

Anybody got any suggestions? If you need any more info, I'll give it.
I just can't figure out why it is doing this and it's annoying the heck out of me. I'd like to be able to burn CDs from linux

oh, and it might also help to point out that if I try to mount the drive after cdrecord freezes up, mount freezes and becomes unkillable as well.


Some more info:

some of the output from dmesg:

SCSI subsystem driver Revision: 1.00
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
...
scsi: <fdomain> Detection failed (no card)
...
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
uhci.c: USB UHCI at I/O 0xd400, IRQ 3
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
uhci.c: USB UHCI at I/O 0xd800, IRQ 3
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
hub.c: new USB device 00:07.2-1, assigned address 2
hub.c: USB hub found
hub.c: 4 ports detected
...
hub.c: new USB device 00:07.2-1.1, assigned address 3
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: USB Model: CD-R/RW 6X4X6 Rev: E.BZ
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 6x/6x writer cd/rw xa/form2 cdda tray
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3

I threw those scsi lines in there because I figured it might have something to do with the problem, but I'm not sure. Anyway, there don't seem to be any errors in there, which is why I'm still confused about what's going wrong.
 
Old 09-14-2003, 09:04 AM   #2
dowmun
Member
 
Registered: Feb 2003
Posts: 119

Rep: Reputation: 15
cdrecord freeses

Hi,
I believe that some scsi module is not being loaded. Since this is a USB device, and I do not have any such devices, that makes it a little more difficult. Would you mind posting that portion of your kernel configuration file that pertains to SCSI Devices? My configuration file is /boot/config-2.4.21 - yours may be different. If you have recently recompiled your kernel, then /usr/src/linux/.config may be the file we are interested in. I ask this because it is the easist way for me to tell what is built as a module, and what you have built into the kernel. I am sure there is a better way to approach this, but I do not know enough to tell you what it is.
 
Old 09-14-2003, 05:50 PM   #3
pib
LQ Newbie
 
Registered: Sep 2003
Posts: 14

Original Poster
Rep: Reputation: 0
The Scsi support section of .config:

# SCSI support
#
CONFIG_SCSI=y
# CONFIG_BLK_DEV_SD is not set
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=y
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_SR_EXTRA_DEVS=2
# CONFIG_CHR_DEV_SCH is not set
CONFIG_CHR_DEV_SG=y
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set


and the output of grep SCSI .config:

# CONFIG_CISS_SCSI_TAPE is not set
CONFIG_BLK_DEV_IDESCSI=m
# SCSI support
CONFIG_SCSI=y
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set
# SCSI low-level drivers
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AHA152X is not set
# CONFIG_SCSI_AHA1542 is not set
# CONFIG_SCSI_AHA1740 is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_IN2000 is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_MEGARAID is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_CPQFCTS is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_DTC3280 is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_EATA_DMA is not set
# CONFIG_SCSI_EATA_PIO is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_GENERIC_NCR5380 is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM is not set
# CONFIG_SCSI_NCR53C406A is not set
# CONFIG_SCSI_NCR53C7xx is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_NCR53C8XX is not set
# CONFIG_SCSI_SYM53C8XX is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PCI2000 is not set
# CONFIG_SCSI_PCI2220I is not set
# CONFIG_SCSI_PSI240I is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_ISP is not set
# CONFIG_SCSI_QLOGIC_FC is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_SEAGATE is not set
# CONFIG_SCSI_SIM710 is not set
# CONFIG_SCSI_SYM53C416 is not set
# CONFIG_SCSI_DC395x_TRMS1040 is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_T128 is not set
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_I2O_SCSI is not set
# Old CD-ROM drivers (not SCSI, not IDE)
# CONFIG_CD_NO_IDESCSI is not set
# CONFIG_USB_HPUSBSCSI is not set


I'm running Gentoo and I've been looking at the different Kernel sources they provide. If I can't find a solution I think I'll try using different kernel sources and see if that might help.

Last edited by pib; 09-14-2003 at 05:57 PM.
 
Old 09-14-2003, 06:10 PM   #4
pib
LQ Newbie
 
Registered: Sep 2003
Posts: 14

Original Poster
Rep: Reputation: 0
The most annoying thing here is that I don't know whether this is a SCSI (emulation) problem or a USB problem, or both, or something else completely.
 
Old 09-14-2003, 07:17 PM   #5
dowmun
Member
 
Registered: Feb 2003
Posts: 119

Rep: Reputation: 15
I have made an honest effort to find an answer with little luck. I can see nothing wrong with what you have. This is what I notice, and think might be important..

you have a line that says
CONFIG_BLK_DEV_SR_VENDOR=y
I am pretty sure that this should be set to no, but I am not at all sure that it is your problem. If you do get another kernel, you might look closely at this.

you have CONFIG_BLK_DEV_IDESCSI=m
There is nothing wrong with building this as a module (that I am aware of), but you want to make sure that it gets loaded.
You might run the command <lsmod> and make sure that the ide-scsi module is loaded. If it is not, you might try <insmod ide-scsi> , and then run <lsmodi> again to see if that loads it.

This is probably not your problem, but I want to mention it. In your config file, look under IDE, ATA,and ATAPI BLOCK devices. You want to find a line that says "CONFIG_BLK_DEV_IDECD is not set". It should have a "commented out" (#) sign in front of it.

I am sorry that I could not find your problem. Maybe someone else will see it.
 
Old 09-14-2003, 08:01 PM   #6
pib
LQ Newbie
 
Registered: Sep 2003
Posts: 14

Original Poster
Rep: Reputation: 0
the CONFIG_BLK_DEV_IDECD line is set to y. I'll try changing that and seeing if it does anything for me.
 
Old 09-14-2003, 08:26 PM   #7
dowmun
Member
 
Registered: Feb 2003
Posts: 119

Rep: Reputation: 15
To the best of my knowledge, the CONFIG_BLK_DEV_IDECD=y line means that you are setting your CDROM up as an IDE device. Since you want your device to emulate a SCSI device, this can cause trouble. The help information in the kernel does not make this clear (at least to me), and when I first recompiled a kernel, it caused me no end of trouble. I knew that I had an ATAPI cdrom, and I wanted support for it. But I really didn't.

This may not be your problem, but I am pretty sure it is not helping you. I am afraid it will be something in the USB part, and I know nothing about that.
 
Old 09-15-2003, 02:15 PM   #8
pib
LQ Newbie
 
Registered: Sep 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Well, I do have a regular IDE drive as well, though I may want to have it set up using SCSI emulation as well, so that I can use paranoia to rip CDs and such.

All USB mass storage devices are automatically set up with SCSI emulation, which, as far as I can tell, is independent of the IDE_SCSI module, which I suppose adds to the possiblilities of the origin of the problem.

I am currently re-building my Kernel and Initial Root disk, after which I will try some things to get it to work, and I'll post here with my results.
 
Old 09-15-2003, 06:25 PM   #9
pib
LQ Newbie
 
Registered: Sep 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Well, nothing different after the kernel recompile (other than some other stuff that I messed up being fixed)

Well, I'm running out of ideas to try, I guess I'll try the other kernel sources next time...
It's either that or give up and boot into windows whenever I want to burn a CD...bleah...
 
Old 09-15-2003, 06:30 PM   #10
pib
LQ Newbie
 
Registered: Sep 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Hmm, here's the output of grep USB /usr/src/linux/.config, in case something helpful might be in there:

CONFIG_USB_IRDA=m
# CONFIG_INPUT_IFORCE_USB is not set
# USB support
CONFIG_USB=m
# CONFIG_USB_DEBUG is not set
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_LONG_TIMEOUT is not set
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_UHCI=m
CONFIG_USB_UHCI_ALT=m
CONFIG_USB_OHCI=m
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_MIDI is not set
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_DPCM=y
CONFIG_USB_STORAGE_HP8200e=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_ACM=m
# CONFIG_USB_PRINTER is not set
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
# CONFIG_USB_HIDDEV is not set
# CONFIG_USB_KBD is not set
# CONFIG_USB_MOUSE is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_DC2XX is not set
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_SCANNER is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_HPUSBSCSI is not set
CONFIG_USB_PEGASUS=m
CONFIG_USB_RTL8150=m
CONFIG_USB_KAWETH=m
CONFIG_USB_CATC=m
CONFIG_USB_CDCETHER=m
CONFIG_USB_USBNET=m
# CONFIG_USB_USBDNET is not set
CONFIG_USB_USS720=m
# USB Serial Converter support
# CONFIG_USB_SERIAL is not set
# CONFIG_USB_RIO500 is not set
CONFIG_USB_AUERSWALD=m
CONFIG_USB_TIGL=m
CONFIG_USB_BRLVGER=m
CONFIG_USB_LCD=m
CONFIG_BLUEZ_HCIUSB=m
# CONFIG_BLUEZ_USB_SCO is not set
# CONFIG_BLUEZ_USB_ZERO_PACKET is not set
 
  


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
cdrecord -scanbus error djgerbavore Linux - Software 1 08-20-2004 09:59 AM
CDrecord -scanbus Gerardoj Linux - Software 4 05-02-2004 09:27 PM
cdrecord -scanbus james.farrow Fedora 2 01-18-2004 10:01 PM
cdrecord -scanbus Cybers19 Linux - General 4 05-22-2003 02:22 PM
CDRW and cdrecord -scanbus dai Linux - Hardware 19 08-27-2002 03:43 AM

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

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