LinuxQuestions.org
Review your favorite Linux distribution.
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-30-2003, 01:20 AM   #1
NUX
LQ Newbie
 
Registered: Jul 2002
Posts: 18

Rep: Reputation: 0
scsi seen by bios but not by linux


I have a old linux box (PII200MMX) Suse 7.1 ,
kernel 2.4.-xxx with a 4 gig ide drive works fine.
Now I added an adaptec 2940 scsi card
and a seagate st32430n ( yes I know 2 gigs only).
Reboot. The bios shows the card and the new drive on
scsi id 0 lun 0.
Suse boots as usual ... where is the new drive ?
How do I get the new drive to come alive.....

cat /proc/scsi/scsi says nothing attached
mount /dev/sda talks someting not entered in fstab


Nx
 
Old 08-30-2003, 11:53 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Unless you have an entry in fstab you need to include the filesystem type and mount point when using the mount command.
And if you want to mount as a user also include the user option.

The command /sbin/lsmod will show you what modules are loaded. You need to load the SCSI module for the card and I think it uses aic7xxx.

I haven't used SUSE in awhile so if yast doesn't have an option for load modules then use modprobe.

modprobe aic7xxx
 
Old 08-30-2003, 08:53 PM   #3
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
My experience is w/RH, but I have not had problems with having the system automatically seeing SCSI adapters and devices.

Try viewing /proc/scsi/scsi to see what SCSI devices your system is aware of. You should also see Linux boot messages as it detects the SCSI hardware (view dmesg, or your system log file if you want to look at them leisurely).

Once they are detected, you will need to partition the drive and create file systems on your partitions. After that you can mount them manually, or put the appropriate entries in /etc/fstab to have them mount at boot.
 
Old 08-31-2003, 12:36 AM   #4
NUX
LQ Newbie
 
Registered: Jul 2002
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the ideas, unfortunately lsmode does not see
any aicxxxx devices and dmesg shows that Linux is not aware
of the adaptec 2940 card and the drive.
I only can see it if I get into the bios , where the adapter (with id 7 and the drive (with id 0 ) is recognized correctly.
Could it be that my kernel 2.4.16-4GB needs some change ?
 
Old 08-31-2003, 09:53 AM   #5
larrystorch
Member
 
Registered: Mar 2003
Location: Reading, PA
Distribution: Slackware
Posts: 39

Rep: Reputation: 24
You need to load the aic7xxx.o module (i'm asssuming your using the stock kernel from suse install) for linux to be able to see the scsi controller. After that, you can partition the drive and enjoy. If you are going to use this as a bootable drive, you need to compile the aic7xxx driver into the kernel or use a ramdisk at boot (initrd).
 
Old 09-01-2003, 12:45 AM   #6
NUX
LQ Newbie
 
Registered: Jul 2002
Posts: 18

Original Poster
Rep: Reputation: 0
Ok, the aic7xxx.o is now loaded and cat /proc/scsi/scsi
shows something like host: scsci0 Channel: 00 Id : 00 Lun :00
now what is the next step ?

create a file system ? mkefs2 -c /dev/sda ?
partition ? ( no boot partition required)
what needs to be added to fstab ?

Thanks
Nx
 
Old 09-01-2003, 02:07 AM   #7
larrystorch
Member
 
Registered: Mar 2003
Location: Reading, PA
Distribution: Slackware
Posts: 39

Rep: Reputation: 24
You need to fdisk (cfdisk) the new drive first. I prefer cfdisk.

>cfdisk /dev/sda
>mkfs.ext2 -c /dev/sda1 (2, whatever) #you can use any other FS as well (mkfs.ext3, mkreiserfs, mkfs.jfs, etc. I use ext3, some like reiser)

/etc/fstab will look like any other parition only /dev/sd(x) not /dev/hd(x)
 
Old 09-01-2003, 02:53 AM   #8
NUX
LQ Newbie
 
Registered: Jul 2002
Posts: 18

Original Poster
Rep: Reputation: 0
cfdisk /dev/sda

Results in : Error cannot read disk drive

similar message for fdisk /dev/sda

Whats wrong ? Any lowlevel formating needed first ?

Nx
 
Old 09-01-2003, 11:31 AM   #9
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Show the ' cat /proc/scsi/scsi ' results.

Should look like mine.
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: DDYS-T36950M Rev: SC4D
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 03 Lun: 00
Vendor: PLEXTOR Model: CD-ROM PX-40TW Rev: 1.00
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 04 Lun: 00
Vendor: YAMAHA Model: CRW-F1S Rev: 1.0d
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 05 Lun: 00
Vendor: MATSHITA Model: DVD-RAM LF-D200 Rev: A120
Type: CD-ROM ANSI SCSI revision: 04


Also show what ' cdrecord -scanbus ' shows
 
Old 09-01-2003, 02:03 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Shouldn't have to low level format. Check the output of demesg for errors with the SCSI controller or the SCSI hard drive.

Make sure you have the termination on the drive set to on or a terminator on the end of the cable. Verify proper configuration with the controller manual.
 
Old 09-02-2003, 12:57 AM   #11
NUX
LQ Newbie
 
Registered: Jul 2002
Posts: 18

Original Poster
Rep: Reputation: 0
ok , here is what dmesg says : the last lines are of interest


Linux version 2.4.16-4GB (root@I386.suse.de) (gcc version 2.95.2 19991024 (relea
se)) #1 Mon Apr 15 13:33:50 GMT 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000006000000 (usable)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
On node 0 totalpages: 24576
zone(0): 4096 pages.
zone(1): 20480 pages.
zone(2): 0 pages.
Building zonelist for node : 0
Kernel command line: auto BOOT_IMAGE=linux ro root=303 BOOT_FILE=/boot/vmlinuz B
OOT_FILE=/boot/vmlinuz
Initializing CPU#0
Detected 200.456 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 399.76 BogoMIPS
Memory: 94008k/98304k available (1497k kernel code, 3908k reserved, 428k data, 1
12k init, 0k highmem)
Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
CPU: Before vendor init, caps: 008001bf 00000000 00000000, vendor = 0
Intel Pentium with F0 0F bug - workaround enabled.
CPU: After vendor init, caps: 008001bf 00000000 00000000 00000000
CPU: After generic, caps: 008001bf 00000000 00000000 00000000
CPU: Common caps: 008001bf 00000000 00000000 00000000
CPU: Intel Pentium MMX stepping 03
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: none
PCI: PCI BIOS revision 2.10 entry at 0xfb470, last bus=0
PCI: Using configuration type 1
PCI: Probing PCI hardware
Activating ISA DMA hang workarounds.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.15)
Starting kswapd
VFS: Diskquotas version dquot_6.5.0 initialized
pty: 256 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
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller on PCI bus 00 dev 39
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt82c586a (rev 25) IDE UDMA33 controller on pci00:07.1
ide0: BM-DMA at 0x6500-0x6507, BIOS settings: hdaio, hdbio
ide1: BM-DMA at 0x6508-0x650f, BIOS settings: hdcio, hddio
hda: ST34342A, ATA DISK drive
hdd: ASUS CD-S400, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 8404830 sectors (4303 MB), CHS=523/255/63, UDMA(33)
hdd: ATAPI 40X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
ide-floppy driver 0.97.sv
Partition check:
hda:hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda1 hda2 hda3
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: loaded (max 8 devices)
Cronyx Ltd, Synchronous PPP and CISCO HDLC (c) 1994
Linux port (c) 1998 Building Number Three Ltd & Jan "Yenya" Kasprzak.
ide-floppy driver 0.97.sv
SCSI subsystem driver Revision: 1.00
3ware Storage Controller device driver for Linux v1.02.00.010.
3w-xxxx: No cards with valid units found.
request_module[scsi_hostadapter]: Root fs not mounted
request_module[scsi_hostadapter]: Root fs not mounted
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 : 221.200 MB/sec
32regs : 198.000 MB/sec
pII_mmx : 308.400 MB/sec
p5_mmx : 365.200 MB/sec
raid5: using function: p5_mmx (365.200 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.1-rc4(03/10/2001)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 112k freed
Adding Swap: 136544k swap-space (priority -1)
isapnp: Scanning for PnP cards...
isapnp: Calling quirk for 01:00
isapnp: SB audio device quirk - increasing port range
isapnp: Calling quirk for 01:02
isapnp: AWE32 quirk - adding two ports
isapnp: Card 'Creative SB AWE32 PnP'
isapnp: 1 Plug & Play card detected total
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
00:0a.0: 3Com PCI 3c905B Cyclone 100baseTx at 0x6600. Vers LK1.1.16
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
eth0: no IPv6 routers present
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.4
<Adaptec 2940 Ultra SCSI adapter>
aic7880: Single Channel A, SCSI Id=7, 16/253 SCBs

blk: queue c37703d8, I/O limit 4095Mb (mask 0xffffffff)
(scsi0:A:0): 10.000MB/s transfers (10.000MHz, offset 15)
Vendor: SEAGATE Model: ST32430N Rev: 0346
Type: Direct-Access ANSI SCSI revision: 02
blk: queue c37704d8, I/O limit 4095Mb (mask 0xffffffff)
scsi0:A:0:0: Tagged Queuing enabled. Depth 253
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
__alloc_pages: 0-order allocation failed (gfp=0x21/0)
scsi::resize_dma_pool: WARNING, dma_sectors=0, wanted=1552, scaling
SCSI device sda: 4197405 512-byte hdwr sectors (2149 MB)
sda: unknown partition table


So there is something on the scsi disk , probably an old
windows partition , therefore fsck does not work and talks
about bad magic number in super-block

cat /proc/scsi/scsi says :
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: SEAGATE Model: ST32430N Rev: 0346
Type: Direct-Access ANSI SCSI revision: 02


What can be done ?
 
Old 09-02-2003, 07:24 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
[/quote]Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
__alloc_pages: 0-order allocation failed (gfp=0x21/0)
scsi::resize_dma_pool: WARNING, dma_sectors=0, wanted=1552, scaling
SCSI device sda: 4197405 512-byte hdwr sectors (2149 MB)
sda: unknown partition table [/quote]

Not being an expert here, I can't tell wether you have a hardware problem so you could try a low level format and see what happens. You should be able to format the drive from the SCSI controller BIOS. With it only be 2gb it shouldn't take to long.
 
Old 09-02-2003, 08:55 PM   #13
NUX
LQ Newbie
 
Registered: Jul 2002
Posts: 18

Original Poster
Rep: Reputation: 0
Ok, used the scsi controller bios to reformat , (took 6 hours )
Sorry to say output is the same no change to what we had before.
 
Old 09-03-2003, 07:43 AM   #14
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
Do you have any way to verify that this is a functional hard disk? The error you are seeing is indicative that the firmware on the drive is working to the point of identifying itself to the system, but that you are having problems talking to the platters.

Assuming the HDD is not broken, your problem is probably either your SCSI termination or your SCSI cables.

You need to have one, and only one SCSI terminator on your SCSI bus. The terminator needs to be at the physical end of your SCSI bus (i.e., if your SCSI cable extends beyond your HDD, the terminator has to be on the end of the cable and the HDD should not be jumpered to act as a terminator).

The best way I know to test SCSI cables is to swap them out with a known good cable.

If this is an internal ribbon cable, try to route it so that it is not wrapped around any power cables.

Try checking your syslog for entries mentioning SCSI parity errors. This would be indicative of SCSI bus and/or termination problems.
 
Old 09-03-2003, 04:20 PM   #15
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Sound like it starting to look like a hardware issue. Either a bad drive or cable issue. Could even be a bad cable.

Unplug your other harddrives try using the scsi harddrive, cable and controller only and see if you can install Linux on it. Here is where I would keep it simply floppy, scsi harddrive, scsi controller, cdrom, video card. Just let you install partition & format it automatically.

Also you can try booting your system with a Knoppix disc and see if it finds the drive and lets you mount it format it or something. You can do all the same ' cat /proc/scsi/scsi ' .

Last Resort, See if you can find somebody with scsi setup and see if they can partition and format it. Even if it is a Winblows system.

Good luck.
Brian1
 
  


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
Linux on PC with EZ bios scocha Linux - Newbie 3 11-10-2005 08:37 AM
Easy Bios? (floppy that boots and runs new bios) tearinox Linux - Hardware 5 10-12-2004 05:13 PM
need Bios driver to exec custom on board bios code wmain Linux - Software 0 09-03-2004 08:32 AM
Hotplug SCSI scanner or How to write to /proc/scsi/scsi from within a shell script. samac Linux - Hardware 1 08-30-2004 02:28 PM
old BIOS (1992) won't detect my cdrom drive; BIOS says: neither IDE prots enabled carbono Linux - Hardware 5 05-18-2004 11:07 AM

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

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