LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   SCSI Card + Tape Backup (https://www.linuxquestions.org/questions/linux-hardware-18/scsi-card-tape-backup-354257/)

Rembrant 08-17-2005 12:54 PM

SCSI Card + Tape Backup
 
I looked over the old posts and didn't find anything to my aid, so here goes. Ultimately I want to backup my system onto the tapedrive.

Equipment:
Running Fedora Core 2 (2.6.5-1.358)
SCSI: Kouwell Ultra Wide (KW-910UW)
Tapedrive: Sony STD-9000/BM

I dont know whether or not the SCSI is actually loading, if there is a driver issue, or if there is a problem with Linux and my tapedrive. Right now though I think the SCSI is being recognized but not loaded.

On boot in BIOS, my SCSI recognizes my tapedrive.

Quote:

INI-9100UW Bios Ver 1.12

SCSI ID 06 Sony STD-9000/BM
cat /proc/scsi/scsi produces:
Quote:

Attached devices:
cat /etc/fstab shows nothing about the SCSI:
Quote:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
Output of dmesg|grep scsi:
Quote:

SCSI subsystem initialized
Output of /sbin/lsmod:
Quote:

Module Size Used by
snd_mixer_oss 13824 0
snd 38372 1 snd_mixer_oss
soundcore 6112 1 snd
parport_pc 19392 1
lp 8236 0
parport 29640 2 parport_pc,lp
autofs4 10624 0
sunrpc 101064 1
3c59x 30376 0
ipt_REJECT 4736 1
ipt_state 1536 3
ip_conntrack 24968 1 ipt_state
iptable_filter 2048 1
ip_tables 13440 3 ipt_REJECT,ipt_state,iptable_filter
floppy 47440 0
sg 27552 0
scsi_mod 91344 1 sg
microcode 4768 0
dm_mod 33184 0
uhci_hcd 23708 0
r128 72368 2
ipv6 184288 8
ext3 102376 2
jbd 40216 1 ext3
Output of /sbin/lspci:
Quote:

00:00.0 Host bridge: Intel Corp. 82815 815 Chipset Host Bridge and Memory Contro ller Hub (rev 02)
00:01.0 PCI bridge: Intel Corp. 82815 815 Chipset AGP Bridge (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface to PCI Bridge (rev 01)
00:1f.0 ISA bridge: Intel Corp. 82801BA ISA Bridge (LPC) (rev 01)
00:1f.1 IDE interface: Intel Corp. 82801BA IDE U100 (rev 01)
00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 01)
00:1f.3 SMBus: Intel Corp. 82801BA/BAM SMBus (rev 01)
01:09.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
01:0a.0 SCSI storage controller: Initio Corporation 360P (rev 02)
02:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 PF/PRO AGP 4x T MDS
Any help is appreciated, thanks in advance.

michaelk 08-17-2005 01:08 PM

I do not see the SCSI controller module nor the tape module loading. Try the following commands:

modprobe initio
modprobe st

No fstab entry is required for the tape drive.

You should also install the tape drive utilities mt. The tape drive should have a device id of /dev/st0. To check its status:

mt -f /dev/st0 status

Rembrant 08-17-2005 01:27 PM

Running /sbin/modprobe initio results in: "FATAL: Module initio not found."
Running /sbin/modprobe st gives no information.

mt -f /dev/st0 status results in: "/dev/st0: No such device or address" and so does sg0.

What should I do from here? Thanks.

michaelk 08-18-2005 06:56 AM

Maybe others can confirm if the initio module is still supported in the 2.6 kernels. Has anyone else been sucessfull with getting this controller to work with a 2.6 kernel?

imitheos 08-18-2005 08:16 AM

Quote:

Originally posted by michaelk
Maybe others can confirm if the initio module is still supported in the 2.6 kernels. Has anyone else been sucessfull with getting this controller to work with a 2.6 kernel?
Yes the module has the same name. It is called initio.ko

Rembrant, do you use the fedora shipped kernel or did you compile your own ?
If you use the fedora shipped it should include the module. If you have compiled your own, perhaps you didn't
include support for the controller.

/etc/fstab ofcourse it doesn't mention the tape drive. It is not a bad thing.

Can you post the "dmesg" output in order for us to see what drivers are loaded ?

Rembrant 08-18-2005 11:21 AM

I installed Fedora 2 from the ISO images downloaded at the Fedora Project website.

Output of dmesg:

Linux version 2.6.5-1.358 (bhcompile@bugs.build.redhat.com) (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 Sat May 8 09:04:50 EDT 2004
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000ffc0000 (usable)
BIOS-e820: 000000000ffc0000 - 000000000fff8000 (ACPI data)
BIOS-e820: 000000000fff8000 - 0000000010000000 (ACPI NVS)
BIOS-e820: 00000000ffb80000 - 00000000ffc00000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
255MB LOWMEM available.
zapping low mappings.
On node 0 totalpages: 65472
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 61376 pages, LIFO batch:14
HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI disabled because your bios is from 2000 and too old
You can enable it with acpi=force
Built 1 zonelists
Kernel command line: ro root=LABEL=/ rhgb quiet
mapped 4G/4G trampoline to ffff3000.
Initializing CPU#0
CPU 0 irqstacks, hard=02345000 soft=02344000
PID hash table entries: 1024 (order 10: 8192 bytes)
Detected 731.056 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Memory: 256276k/261888k available (1540k kernel code, 4912k reserved, 599k data, 144k init, 0k highmem)
Calibrating delay loop... 1441.79 BogoMIPS
Security Scaffold v1.0.0 initialized
SELinux: Initializing.
SELinux: Starting in permissive mode
There is already a security framework initialized, register_security failed.
Failure registering capabilities with the kernel
selinux_register_security: Registering secondary module capability
Capability LSM initialized
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0383f9ff 00000000 00000000 00000000
CPU: After vendor identify, caps: 0383f9ff 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After all inits, caps: 0383f1ff 00000000 00000000 00000040
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: Intel Pentium III (Coppermine) stepping 03
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfda95, last bus=2
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040326
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
usbcore: registered new driver usbfs
usbcore: registered new driver hub
ACPI: ACPI tables contain no PCI IRQ routing entries
PCI: Invalid ACPI-PCI IRQ routing table
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Transparent bridge - 0000:00:1e.0
PCI: Using IRQ router PIIX/ICH [8086/2440] at 0000:00:1f.0
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
audit: initializing netlink socket (disabled)
audit(1124363593.4294966606:0): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux: Registering netfilter hooks
Initializing Cryptographic API
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Real Time Clock Driver v1.12
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected an Intel i815 Chipset, but could not find the secondary device.
agpgart: Detected an Intel i815 Chipset.
agpgart: Maximum main memory to use for agp memory: 203M
agpgart: AGP aperture is 64M @ 0xf8000000
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
divert: not allocating divert_blk for non-ethernet device lo
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH2: IDE controller at PCI slot 0000:00:1f.1
ICH2: chipset revision 1
ICH2: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:pio
hda: Maxtor 6E040L0, ATA DISK drive
hdb: Maxtor 90648D3, ATA DISK drive
Using cfq io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: SAMSUNG CD-R/RW SW-252S, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 80293248 sectors (41110 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
hda: hda1 hda2 hda3
hdb: max request size: 128KiB
hdb: 12656448 sectors (6480 MB) w/512KiB Cache, CHS=12556/16/63, UDMA(33)
hdb:
hdc: ATAPI 52X CD-ROM CD-R/RW CD-MRW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 184k freed
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 144k freed
SELinux: Disabled at runtime.
SELinux: Unregistering netfilter hooks
NET: Registered protocol family 10
Disabled Privacy Extensions on device 022db720(lo)
IPv6 over IPv4 tunneling driver
divert: not allocating divert_blk for non-ethernet device sit0
[drm] Initialized r128 2.5.0 20030725 on minor 0
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:02:00.0 into 1x mode
USB Universal Host Controller Interface driver v2.2
PCI: Found IRQ 3 for device 0000:00:1f.2
uhci_hcd 0000:00:1f.2: UHCI Host Controller
PCI: Setting latency timer of device 0000:00:1f.2 to 64
uhci_hcd 0000:00:1f.2: irq 3, io base 0000ef80
uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
EXT3 FS on hda2, internal journal
device-mapper: 4.1.0-ioctl (2003-12-10) initialised: dm@uk.sistina.com
Adding 524152k swap on /dev/hda3. Priority:-1 extents:1
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
IA-32 Microcode Update Driver: v1.13 <tigran@veritas.com>
microcode: CPU0 updated from revision 0x10 to 0x14, date = 02062001
parport0: PC-style at 0x378 [PCSPP,TRISTATE,EPP]
SCSI subsystem initialized
inserting floppy driver for 2.6.5-1.358
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
PCI: Found IRQ 11 for device 0000:01:09.0
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
0000:01:09.0: 3Com PCI 3c905C Tornado at 0xcc00. Vers LK1.1.19
divert: allocating divert_blk for eth0
divert: freeing divert_blk for eth0
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (2046 buckets, 16368 max) - 296 bytes per conntrack
PCI: Found IRQ 11 for device 0000:01:09.0
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
0000:01:09.0: 3Com PCI 3c905C Tornado at 0xcc00. Vers LK1.1.19
divert: allocating divert_blk for eth0
parport0: PC-style at 0x378 [PCSPP,TRISTATE,EPP]
lp0: using parport0 (polling).
lp0: console ready
eth0: no IPv6 routers present
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:02:00.0 into 1x mode

imitheos 08-18-2005 03:53 PM

As michaelk mentioned you need two modules.
"initio" for the scsi controller (after which it will "see" the tape drive)
and "st" for scsi tape support.

At first, i didn't understand why "modprobe initio" doesn't work.
So, i downloaded "kernel-2.6.5-1.358.i586.rpm" from fedora core 2 ftp repository and there is no initio module.
You are right.

I don't know why this happens.
The only reason i can think of (since i haven't used fedora/redhat) is that they compile their kernel with "only code that compiles
cleanly". the driver for initio is marked dirty, so it doesn't get compiled.

It may have nothing to do with what i am saying. I don't know anything about fedora, but i just mention it because this is the first
i can think of.


All times are GMT -5. The time now is 02:32 AM.