LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-12-2004, 01:25 PM   #1
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
2.4.27 and hdd emulated as scsi?


Okay, I got the system working before, but that's when I was running the 2.4.26 kernel and before I reformatted. My problem is that I can't get my cdrw to function properly, although my DVD-rom functions fine. Here's all of the information I think is important to know:

The error:
Code:
root@4300:/proc/scsi# mount /mnt/cdrom2
mount: /dev/scd0 is not a valid block device
grep -i scsi
Code:
root@4300:/home/Rob# dmesg | grep -i scsi
Kernel command line: BOOT_IMAGE=Linux ro root=2103 hdd=scsi
ide_setup: hdd=scsi
ide-cd: passing drive hdd to ide-scsi emulation.
hdd: attached ide-scsi driver.
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Type:   CD-ROM                             ANSI SCSI revision: 02
scsi1 : SCSI emulation for USB Mass Storage devices
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 125952 512-byte hdwr sectors (64 MB)
/proc/devices
Code:
root@4300:/home/Rob# cat /proc/devices 
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 ttyS
  5 cua
  7 vcs
 10 misc
 13 input
 14 sound
 21 sg
 29 fb
128 ptm
136 pts
162 raw
180 usb
226 drm

Block devices:
  2 fd
  3 ide0
  8 sd
 22 ide1
 33 ide2
 65 sd
 66 sd
/dev/scsi/scsi
Code:
root@4300:/proc/scsi# cat scsi 
Attached devices: 
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: LITE-ON  Model: LTR-16102B       Rev: OS09
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: LEXAR    Model: JUMPDRIVE        Rev: 1.10
  Type:   Direct-Access                    ANSI SCSI revision: 02
lilo excerpt
Code:
root@4300:/proc/scsi# cat /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
append="hdd=scsi"
fstab entry
Code:
root@4300:/proc/scsi# cat /etc/fstab 
/dev/hde1        swap             swap        defaults         0   0
/dev/hde3        /                reiserfs    defaults         1   1
/dev/hde2        /var             reiserfs    defaults         1   2
/dev/hde5        /home            reiserfs    defaults         1   2
/dev/hda2        /mnt/win-c       ntfs        user,umask=000,ro          1   0
/dev/hda7        /mnt/win-d       ntfs        user,umask=000,ro          1   0
/dev/hda5        /mnt/win-e       ntfs        user,umask=000,ro          1   0
/dev/hda6        /mnt/win-f       ntfs        user,umask=000,ro          1   0
/dev/cdrom       /mnt/cdrom       iso9660     noauto,user,ro   0   0
/dev/scd0        /mnt/cdrom2      iso9660     noauto,user,ro   0   0
/dev/sda1        /mnt/usb1        vfat        noauto,user,rw   0   0
/dev/fd0         /mnt/floppy      auto        noauto,user      0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0

from /usr/src/linux/.config, with commented lines taken out to save space:
Code:
#
# IDE, ATA and ATAPI Block devices
#
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDESCSI=y
CONFIG_BLK_DEV_CMD640=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y          
CONFIG_BLK_DEV_IDEDMA_PCI=y

#
# SCSI support
#

CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_SD_EXTRA_DEVS=40
CONFIG_CHR_DEV_SG=y
CONFIG_SCSI_DEBUG_QUEUES=y
CONFIG_SCSI_MULTI_LUN=y
Now, I have append="hdd=scsi" in my lilo entry because that's what it said in the kernel's make menu, but I've also tried "hdd=ide-scsi"

Do I need to have my scsi-emulation driver as a module, and not built into the kernel? I'm at a loss of ideas right now, and this is making me pretty upset....
 
Old 08-13-2004, 03:19 AM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
hrmmm, its just not /dev/scd0 any longer? If you compiled in scsi generic support then it probably ended up as /dev/sg0

Cheers,

Finegan
 
Old 08-13-2004, 07:29 PM   #3
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by finegan
hrmmm, its just not /dev/scd0 any longer? If you compiled in scsi generic support then it probably ended up as /dev/sg0

Cheers,

Finegan
I just got bored and fed up with recompiling the kernel so many times. I ended up just taking Slack's default 2.4.26 config, copied it over to the 2.4.27 kernel's folder, and then removed a bunch of stuff I know I won't ever need, leaving everything else how it was for the settings. It also helps out with modprobing. Anywho, now the CD-RW works, and here's my lsmod output:
Code:
Module                  Size  Used by    Tainted: P
snd-seq-midi            3296   0 (autoclean) (unused)
snd-seq-midi-event      3264   0 (autoclean) [snd-seq-midi]
snd-seq                35216   0 (autoclean) [snd-seq-midi snd-seq-midi-event]
snd-pcm-oss            37224   0
snd-mixer-oss          12248   1 [snd-pcm-oss]
keybdev                 1860   0 (unused)
mousedev                4020   1
hid                    20836   0 (unused)
usbmouse                1880   0 (unused)
input                   3200   0 [keybdev mousedev hid usbmouse]
uhci                   24284   0 (unused)
snd-emu10k1            62152   1
snd-pcm                55944   0 [snd-pcm-oss snd-emu10k1]
snd-timer              13412   0 [snd-seq snd-pcm]
snd-hwdep               4260   0 [snd-emu10k1]
snd-page-alloc          5912   0 [snd-emu10k1 snd-pcm]
snd-util-mem            1136   0 [snd-emu10k1]
snd-ac97-codec         48828   0 [snd-emu10k1]
snd-rawmidi            12260   0 [snd-seq-midi snd-emu10k1]
snd-seq-device          3680   0 [snd-seq-midi snd-seq snd-emu10k1 snd-rawmidi]
snd                    29508   0 [snd-seq-midi snd-seq-midi-event snd-seq snd-pcm-oss snd-mixer-oss snd-emu10k1 snd-pcm snd-timer snd-hwdep snd-util-mem snd-ac97-codec snd-rawmidi snd-seq-device]
tulip                  39200   1
crc32                   2880   0 [tulip]
fglrx                 178280   8
ide-scsi                9104   0
emu10k1-gp              1192   0 (unused)
gameport                1404   0 [emu10k1-gp]
usb-storage            62272   0 (unused)
printer                 7648   0
usbcore                58700   1 [hid usbmouse uhci usb-storage printer]
agpgart                29732   0 (unused)
 
  


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
can't mount scsi emulated cdrom zombi3 Linux - Hardware 1 01-03-2004 07:36 PM
disable dma on scsi emulated ide secondry-slave qwijibow Linux - Software 7 11-04-2003 09:55 PM
scsi emulated cd drive cuases system lockups :( qwijibow Linux - Newbie 0 08-21-2003 09:19 AM
Playing CDs with SCSI emulated Burner PiMoGo Linux - General 3 11-11-2002 02:00 AM
Unable to play audio CDs in a scsi emulated CDRW David Incoll Linux - Newbie 6 04-14-2002 07:46 AM

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

All times are GMT -5. The time now is 09:30 PM.

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