LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-04-2004, 12:27 PM   #1
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Rep: Reputation: 40
Question Making SCSI work


Just built Slack 9.1 on my "new" hardware. OK, not new, but I'm reusing an old Win machine for my server.

The PC has a Adaptec 2940 controller that has an HP DAT drive connected (nothing else - drives are IDE). I used the scsi.b kernel but don't see the tape drive (maybe I don't know how to look!). The only thing I see logged regarding scsi is this error:

kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2

So my questions are two fold:

- How can I tell whether linux sees my tape drive

- How do I resolve the error (if indeed it is germane)?


(Note; googling the error msg return several conversations regarding raid drives - nothing related enough for me to draw inferences.

Thanks

\\Greg

gmartin@spam_me_not_@gmartin.org
 
Old 01-04-2004, 03:03 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Hi Greg,

can you post the output of dmesg please?

Also, if you didn't rebuild the kernel from
scratch, check your lsmod. Btw, if you're
not using scsi-hdd's you should keep using
the bare.i kernel, since your machine doesn't
require SCSI to boot.


Cheers,
Tink
 
Old 01-04-2004, 08:10 PM   #3
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Question Making SCSI work

Just built Slack 9.1 on my "new" hardware. OK, not new, but I'm reusing an old Win machine for my server.

The PC has a Adaptec 2940 controller that has an HP DAT drive connected (nothing else - drives are IDE). I used the scsi.b kernel but don't see the tape drive (maybe I don't know how to look!). The only thing I see logged regarding scsi is this error:

kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2

So my questions are two fold:

- How can I tell whether linux sees my tape drive

- How do I resolve the error (if indeed it is germane)?


(Note; googling the error msg return several conversations regarding raid drives - nothing related enough for me to draw inferences.

Thanks

\\Greg

gmartin@spam_me_not_@gmartin.org
 
Old 01-04-2004, 08:31 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Why did you post the same question again in the same forum when your other one already got replies? Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

Respond to the other thread here: http://www.linuxquestions.org/questi...hreadid=131443

This one has been reported and will be closed.
 
Old 01-04-2004, 09:04 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,469
Blog Entries: 54

Rep: Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900
Eye close to the glass,
Horrified he sees the fly:
Merger Successful.
 
Old 01-05-2004, 07:21 AM   #6
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Quote:
Originally posted by trickykid
Why did you post the same question again in the same forum when your other one already got replies?

Because sometime we mortals make mistakes. Sorry.

\\Greg

Last edited by gmartin; 01-05-2004 at 07:27 AM.
 
Old 01-05-2004, 07:25 AM   #7
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Quote:
Originally posted by Tinkster
Hi Greg,

can you post the output of dmesg please?

Also, if you didn't rebuild the kernel from
scratch, check your lsmod.
Cheers,
Tink
-------------------------------
Here's demsg output. I'm looking for lsmod info now (and no, I didn't custom build the kernel. One small step at a time...

\\Greg


bash-2.05b# dmesg
Linux version 2.4.22 (root@midas) (gcc version 3.2.3) #18 Mon Sep 15 12:45:12 PD T 2003
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e7000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 00000000040fd800 (usable)
BIOS-e820: 00000000040fd800 - 00000000040ff800 (ACPI data)
BIOS-e820: 00000000040ff800 - 00000000040ffc00 (ACPI NVS)
BIOS-e820: 00000000040ffc00 - 0000000010000000 (usable)
BIOS-e820: 00000000fffe7000 - 0000000100000000 (reserved)
256MB LOWMEM available.
On node 0 totalpages: 65536
zone(0): 4096 pages.
zone(1): 61440 pages.
zone(2): 0 pages.
Kernel command line: BOOT_IMAGE=Linux ro root=301
Initializing CPU#0
Detected 399.084 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 796.26 BogoMIPS
Memory: 255740k/262144k available (1984k kernel code, 6004k reserved, 768k data, 136k init, 0k highmem)
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU: After generic, caps: 0183f9ff 00000000 00000000 00000000
CPU: Common caps: 0183f9ff 00000000 00000000 00000000
CPU: Intel Pentium II (Deschutes) stepping 02
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfd9a3, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router PIIX [8086/7110] at 00:07.0
Limiting direct PCI/PCI transfers.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
vesafb: framebuffer at 0xfc000000, mapped to 0xd080d000, size 1536k
vesafb: mode is 1024x768x8, linelength=1024, pages=20
vesafb: protected mode interface info at c000:043c
vesafb: scrolling: redraw
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
pty: 512 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_I RQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10e
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 7777K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x14a0-0x14a7, BIOS settings: hdaio, hdbMA
ide1: BM-DMA at 0x14a8-0x14af, BIOS settings: hdcMA, hddio
hda: ST38420A, ATA DISK drive
hdb: WDC WD400BB-32CAA0, ATA DISK drive
blk: queue c0400d80, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c0400ebc, I/O limit 4095Mb (mask 0xffffffff)
hdc: Pioneer DVD-ROM ATAPIModel DVD-113 0108, ATAPI CD/DVD-ROM drive
hdd: IOMEGA ZIP 100 ATAPI, ATAPI FLOPPY drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: 16841664 sectors (8623 MB) w/512KiB Cache, CHS=1048/255/63, UDMA(33)
hdb: attached ide-disk driver.
hdb: host protected area => 1
hdb: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=4865/255/63, UDMA(33)
hdc: attached ide-cdrom driver.
hdc: ATAPI DVD-ROM drive, 512kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
hdd: attached ide-floppy driver.
hdd: No disk in drive
hdd: 98304kB, 96/64/32 CHS, 4096 kBps, 512 sector size, 2941 rpm
Partition check:
hda: hda1 hda2
hdb: hdb1 hdb2 hdb3
SCSI subsystem driver Revision: 1.00
PCI: Found IRQ 11 for device 00:10.0
PCI: Sharing IRQ 11 with 00:07.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
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
8regs : 660.400 MB/sec
32regs : 396.400 MB/sec
pII_mmx : 895.600 MB/sec
p5_mmx : 922.000 MB/sec
raid5: using function: p5_mmx (922.000 MB/sec)
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
LVM version 1.0.5+(22/07/2002)
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 136k freed
Adding Swap: 506036k swap-space (priority -1)
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,65)) ...
for (ide0(3,65))
ide0(3,65):Using r5 hash to sort names
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,66), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
PCI: Found IRQ 9 for device 00:0d.0
PCI: Sharing IRQ 9 with 01:00.0
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
See Documentation/networking/vortex.txt
00:0d.0: 3Com PCI 3c905B Cyclone 100baseTx at 0x1400. Vers LK1.1.18-ac
00:50:04:21:0d:b1, IRQ 9
product code 5451 rev 00.12 date 01-20-99
Internal config register is 1800000, transceivers 0xa.
8K byte-wide RAM 5:3 Rx:Tx split, autoselect/Autonegotiate interface.
MII transceiver found at address 24, status 786d.
Enabling bus-master transmits and whole-frame receives.
00:0d.0: scatter/gather enabled. h/w checksums enabled
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
PCI: Found IRQ 10 for device 00:0c.0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
PCI: Found IRQ 11 for device 00:07.2
PCI: Sharing IRQ 11 with 00:10.0
uhci.c: USB UHCI at I/O 0x1480, IRQ 11
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
cdrom: This disc doesn't have any tracks I recognize!


\\Greg

Last edited by gmartin; 01-05-2004 at 07:27 AM.
 
Old 01-05-2004, 08:15 AM   #8
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Quote:
Originally posted by Tinkster
Hi Greg,

Also, if you didn't rebuild the kernel from
scratch, check your lsmod.

Cheers,
Tink
Here's lsmod. Can you help me interptret these? As I see nothing related to scsi (except the scsi-ide ) can I suspect there isn't a scsi module in this kernel?

Code:
bash-2.05b# lsmod
Module                  Size  Used by    Not tainted
uhci                   24496   0  (unused)
usbcore                58400   1  [uhci]
snd-ymfpci             42816   0
gameport                1452   0  [snd-ymfpci]
snd-pcm                55904   0  [snd-ymfpci]
snd-page-alloc          6004   0  [snd-ymfpci snd-pcm]
snd-opl3-lib            5764   0  [snd-ymfpci]
snd-hwdep               4672   0  [snd-opl3-lib]
snd-timer              13252   0  [snd-pcm snd-opl3-lib]
snd-mpu401-uart         3136   0  [snd-ymfpci]
snd-rawmidi            12512   0  [snd-mpu401-uart]
snd-seq-device          3920   0  [snd-opl3-lib snd-rawmidi]
snd-ac97-codec         37240   0  [snd-ymfpci]
snd                    27460   0  [snd-ymfpci snd-pcm snd-opl3-lib snd-hwdep snd-timer snd-mpu401-uart snd-ra wmidi snd-seq-device snd-ac97-codec]
soundcore               3332   0  [snd]
ide-scsi                9424   0
3c59x                  26832   1
 
Old 01-05-2004, 12:42 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Ok. So your hostadapter doesn't show up in dmesg
or in the loaded modules.... try
modprobe aic7xxx
manually ... if this works (if it loads without errors)
have a look at
less /proc/scsi/scsi
and see if your tape drive is listed.

If it is, edit your /etc/rc.d/rc.modules and uncomment
the controller.

If it's NOT showing up or you're getting an error, come
back and post the message :}


Cheers,
Tink
 
Old 01-05-2004, 01:01 PM   #10
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Thanks

modprobe aic7xxx returns nothing. no message, no errors

less /proc/scsi/scsi returns: no attached devices


also reran lsmod (results below)

So - can I assume I now need to modify rc.modules (I admit I'm new to these parts) ?

\\Greg

Code:
bash-2.05b# lsmod
Module                  Size  Used by    Not tainted
aic7xxx               142864   0  (unused)
uhci                   24496   0  (unused)
usbcore                58400   1  [uhci]
snd-ymfpci             42816   0
gameport                1452   0  [snd-ymfpci]
snd-pcm                55904   0  [snd-ymfpci]
snd-page-alloc          6004   0  [snd-ymfpci snd-pcm]
snd-opl3-lib            5764   0  [snd-ymfpci]
snd-hwdep               4672   0  [snd-opl3-lib]
snd-timer              13252   0  [snd-pcm snd-opl3-lib]
snd-mpu401-uart         3136   0  [snd-ymfpci]
snd-rawmidi            12512   0  [snd-mpu401-uart]
snd-seq-device          3920   0  [snd-opl3-lib snd-rawmidi]
snd-ac97-codec         37240   0  [snd-ymfpci]
snd                    27460   0  [snd-ymfpci snd-pcm snd-opl3-lib snd-hwdep snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device snd-ac97-codec]
soundcore               3332   0  [snd]
ide-scsi                9424   0
3c59x                  26832   1
 
Old 01-05-2004, 01:09 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Does the drive show up when you go into
the AHA's BIOS utility? Maybe you have
a termination problem ....


Cheers,
Tink
 
Old 01-05-2004, 09:38 PM   #12
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Tink, thanks. The drive was indeed not functioning properly and is now.

Your direction got me in looking at rc.modules to load the aic7xxx driver and while there I solved a problem with the APM mode for this PC..

I have a follow-on question. You mention the lack of need to use the scsi.b kernel. Can you refer me somewhere to swap out the kernel? I guess I can get away with bare.i.

Thanks again.
 
Old 01-06-2004, 01:00 PM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Quote:
Your direction got me in looking at rc.modules to load the aic7xxx driver and while there I solved a problem with the APM mode for this PC..
Sweet ... glad I could be of some help ;)

Quote:
I have a follow-on question. You mention the lack of need to use the scsi.b kernel. Can you refer me somewhere to swap out the kernel? I guess I can get away with bare.i.
That's correct ... just install bare.i and you'll be fine,
the aic-module still comes along with it.

If you feel that I helped you please don't hesitate to affero me ;)



Cheers,
Tink
 
  


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
Making wireless work piva.francesco Ubuntu 3 10-02-2005 03:34 PM
Making Apache work Ab3n Linux - Newbie 3 04-03-2005 05:41 PM
making it work Cap'n Skyler Linux - Newbie 8 11-16-2004 02:07 AM
making FTP work explorer Fedora 9 08-12-2004 10:24 AM
making CD-RW and CD-Rom ide-scsi ? GloVe Linux - Hardware 2 11-03-2003 02:24 PM


All times are GMT -5. The time now is 08:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration