LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   My scsi drives have disappeared (https://www.linuxquestions.org/questions/linux-newbie-8/my-scsi-drives-have-disappeared-300775/)

Joe Soap 03-12-2005 11:08 AM

My scsi drives have disappeared
 
I recently installed Kanotix on my pc. Before that I had Debian Sarge installed.

I have 4 ide devices (3 harddrives, 1 dvd) and 2 scsi devices (1 harddrive, 1 cd) in the pc. When I boot, it appears that the bios does recognise the scsi drives but once logged in, I cannot see them or access them. I've changed my fstab to look like it did under Sarge, but that hasn't helped.

Can anybody point me in the right direction? What other info can I post to help solve this?

Thanks
Joe

ksgill 03-12-2005 11:27 AM

what is the output of df and cfdisk (use as root).

Joe Soap 03-12-2005 12:37 PM

df:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 6000004 3857056 2142948 65% /
tmpfs 257388 0 257388 0% /dev/shm
/dev/hda5 10000116 4366796 5633320 44% /mnt/hda5
/dev/hda6 10000072 1284972 8715100 13% /mnt/hda6
/dev/hda7 10000072 1670240 8329832 17% /mnt/hda7
/dev/hda8 81214092 63785300 17428792 79% /mnt/hda8
/dev/hdd1 58611324 44722900 13888424 77% /mnt/hdd1
/dev/hdd2 58603324 47341276 11262048 81% /mnt/hdd2
/dev/hdc1 78137704 50712644 27425060 65% /mnt/hdc1
/dev/hdc2 78145768 31481284 46664484 41% /mnt/hdc2


cfdisk (without any parameters):

Name Flags Part Type FS Type [Label] Size (MB)
-----------------------------------------------------------------------------------------------------------------
hda1 Boot Primary Linux ReiserFS 6144.29
hda5 Logical Linux ReiserFS 10240.48
hda6 Logical Linux ReiserFS 10240.48
hda7 Logical Linux ReiserFS 10240.48
hda8 Logical Linux ReiserFS 83165.81

Hope that helps.

michaelk 03-12-2005 03:16 PM

What is the make / model of SCSI adapter installed in this PC?
Check the output of dmesg command to see if Kanotix is recognizing the SCSI controller.
What is the ouput of command lspci with respect to the SCSI controller?

Joe Soap 03-13-2005 05:45 AM

The SCSI adapter is Adaptec AHA-2940U2W

dmesg:

salt@andelain:~$ dmesg | grep scsi
ide-cd: passing drive hdb to ide-scsi emulation.
ide-scsi is deprecated for cd burning! Use ide-cd and give dev=/dev/hdX as device
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
scsi1 : SCSI emulation for USB Mass Storage devices
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 5
Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0, type 0
scsi2 : SCSI emulation for USB Mass Storage devices
Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
Attached scsi generic sg1 at scsi2, channel 0, id 0, lun 0, type 0

lspci:

salt@andelain:~$ lspci
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host Bridge
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge
0000:00:0d.0 Multimedia audio controller: Yamaha Corporation YMF-754 [DS-1E Audio Controller]
0000:00:0f.0 SCSI storage controller: Adaptec AHA-2940U2/U2W
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 440 AGP 8x] (rev a4)

michaelk 03-13-2005 09:31 AM

It does not look like the SCSI controller module is being loaded.
Look at the output of the command lsmod for the module aic7xxx.

If not present try loading it using the command:
modprobe aic7xxx

Joe Soap 03-13-2005 02:12 PM

Thanks michaelk. I used modconf to load aic7xxx_old and can now access my scsi cdrom.

However, I still can't access my scsi harddrive. I've got the following line in my fstab (copied from my previous installation's fstab):

/dev/sda2 /xtra1 reiserfs defaults 0 0

When I try to mount it, it says: mount: No medium found

The output from dmesg now looks like this:

ide-cd: passing drive hdb to ide-scsi emulation.
ide-scsi is deprecated for cd burning! Use ide-cd and give dev=/dev/hdX as device
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
scsi1 : SCSI emulation for USB Mass Storage devices
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 5
Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0, type 0
(scsi2) <Adaptec AHA-294X Ultra2 SCSI host adapter> found at PCI 0/15/0
(scsi2) Wide Channel, SCSI ID=7, 32/255 SCBs
(scsi2) Downloading sequencer code...<6>usb 1-1: new full speed USB device using address 3
scsi3 : SCSI emulation for USB Mass Storage devices
Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0
Attached scsi generic sg1 at scsi3, channel 0, id 0, lun 0, type 0
scsi2 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.2.6/5.2.0
(scsi2:0:5:0) Synchronous at 20.0 Mbyte/sec, offset 16.
sr1: scsi3-mmc drive: 17x/40x cd/rw xa/form2 cdda tray
Attached scsi CD-ROM sr1 at scsi2, channel 0, id 5, lun 0
Attached scsi generic sg2 at scsi2, channel 0, id 5, lun 0, type 5


When I try fdisk /dev/sda, it says: Unable to open /dev/sda

Same story for sdb, sdc, etc.

michaelk 03-13-2005 04:33 PM

Check the output of lsmod for the module sd_mod. If not use modprobe to install.

Joe Soap 03-14-2005 10:34 AM

Ok, lsmod shows that sd_mod is not installed. However, when I try modprobe, it says that it can't find the module. I've tried modconf & sd_mod ain't there either.

How & where can I get this module?

Thanks
Joe

Joe Soap 03-22-2005 03:05 PM

Unsatisfactory solution: I reinstalled Knoppix with a 2.4 kernel, instead of a 2.6 kernel.

Thanks to all who gave advice.


All times are GMT -5. The time now is 07:26 AM.