LinuxQuestions.org
Help answer threads with 0 replies.
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 07-24-2006, 09:15 AM   #1
janko33
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Rep: Reputation: 0
Unhappy Problems with tape OnStream Model: DI-30


cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: OnStream Model: DI-30 Rev: 1.09
Type: Sequential-Access ANSI SCSI revision: 02

dmesg | grep tape
osst :I: Attached OnStream DI-30 tape at scsi0, channel 0, id 0, lun 0 as osst0

osst :I: Tape driver with OnStream support version 0.9.14
osst :I: $Id: osst.c,v 1.67.2.2 2003/12/14 14:28:46 wriede Exp $
osst :I: Attached OnStream DI-30 tape at scsi0, channel 0, id 0, lun 0 as osst0

dmesg |grep hdd
ide1: BM-DMA at 0xd808-0xd80f, BIOS settings: hdcMA, hddMA
hdd: OnStream DI-30, ATAPI TAPE drive
hdd: attached ide-scsi driver.

cat /proc/ide/hdd/driver
ide-scsi version 0.94

but when I do this

mt -f /dev/osst0 status
/dev/osst0: No such file or directory

i have slackware with kernel 2.4.31

ireally don't know where to look for the tape

Has someone out there any experinces with OnStream DI-30 tape drive on slackware 10.2 maybe i have installed it wrongly, could you try to walk me through the process.

Pleaseeee help meeee.
 
Old 07-24-2006, 09:51 AM   #2
janko33
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
i would really read some good manual about it, i tried to access the tape for the whole day for now...
 
Old 07-24-2006, 11:01 AM   #3
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
here's some good manual:
http://nic.phys.ethz.ch/readme/80
http://www.bluestream.org/Networking/TapeBackups.htm
 
Old 07-25-2006, 02:21 AM   #4
janko33
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
the problem is heeeeeeeeeeeerre:

mt -f /dev/osst0 status
/dev/osst0: No such file or directory

i don't know which driver (/dev/osst0 or 1 or 2) to use

do i have to create it first? with mknode?

cheers

and thanks
 
Old 07-25-2006, 02:51 AM   #5
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by janko33
hdd: OnStream DI-30, ATAPI TAPE drive
hdd: attached ide-scsi driver.
have you tried doing
Code:
mt -f /dev/hdd status
instead?
 
Old 07-25-2006, 03:22 AM   #6
janko33
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Yes

mt -f /dev/hdd status
/dev/hdd: Invalid argument
 
Old 07-25-2006, 03:34 AM   #7
janko33
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
How do i create /dev/osst0 device with mknode can somenone help me with this?
 
Old 07-25-2006, 03:46 AM   #8
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
try to run this script. it's from the kernel's documentation.

Makedevs.sh
Code:
#!/bin/sh
# Script to create OnStream SC-x0 device nodes (major 206)
# Usage: Makedevs.sh [nos [path to dev]]
# $Id: README.osst.kernel,v 1.4 2000/12/20 14:13:15 garloff Exp $
major=206
nrs=4
dir=/dev
test -z "$1" || nrs=$1
test -z "$2" || dir=$2
declare -i nr
nr=0
test -d $dir || mkdir -p $dir
while test $nr -lt $nrs; do
  mknod $dir/osst$nr c $major $nr
  chown 0.disk $dir/osst$nr; chmod 660 $dir/osst$nr;
  mknod $dir/nosst$nr c $major $[nr+128]
  chown 0.disk $dir/nosst$nr; chmod 660 $dir/nosst$nr;
  mknod $dir/osst${nr}l c $major $[nr+32]
  chown 0.disk $dir/osst${nr}l; chmod 660 $dir/osst${nr}l;
  mknod $dir/nosst${nr}l c $major $[nr+160]
  chown 0.disk $dir/nosst${nr}l; chmod 660 $dir/nosst${nr}l;
  mknod $dir/osst${nr}m c $major $[nr+64]
  chown 0.disk $dir/osst${nr}m; chmod 660 $dir/osst${nr}m;
  mknod $dir/nosst${nr}m c $major $[nr+192]
  chown 0.disk $dir/nosst${nr}m; chmod 660 $dir/nosst${nr}m;
  mknod $dir/osst${nr}a c $major $[nr+96]
  chown 0.disk $dir/osst${nr}a; chmod 660 $dir/osst${nr}a;
  mknod $dir/nosst${nr}a c $major $[nr+224]
  chown 0.disk $dir/nosst${nr}a; chmod 660 $dir/nosst${nr}a;
  let nr+=1
done
Edit: save this text as Makedevs.sh then do
Code:
bash Makedevs.sh

Last edited by konsolebox; 07-25-2006 at 03:55 AM.
 
Old 07-25-2006, 08:08 AM   #9
janko33
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
it started to work thank you very much

mt -f /dev/osst0 status
OnStream SC-, DI-, DP-, or USB tape drive:
File number=0, block number=0.
Tape block size 512 bytes. Density code 0x40 (DLT1 40 GB, or Ultrium).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN

now i have to learn how to read from it
now comes another problem i don't know if it has something to do with that that it is a OnStream Model: DI-30 and the script was SC or not?

dd if=/dev/osst0 of=/tmp/foo5.out bs=1k count=4
dd: reading `/dev/osst0': Input/output error
0+0 records in
0+0 records out

i don't like the input output error but cpio gives me the same result
can you help me?

and dmesg output is

osst0:E: Failed to find valid ADRL header, new media?
osst0:E: Failed to find valid ADRL header, new media?
osst0:I: Device did not become Ready in open

what is ADRL header, and the media for sure isn't new it has some years

Last edited by janko33; 07-25-2006 at 09:40 AM.
 
Old 07-25-2006, 09:41 AM   #10
janko33
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
where did i go wrong?
 
Old 07-25-2006, 10:15 AM   #11
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
have you used the tape in other unix systems before?

the article here says that there are some problems using tapes from other systems to linux.

check the article. it also includes some fixing techniques.
 
Old 07-26-2006, 04:06 AM   #12
janko33
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
i think the tape was used on windows NT system. I have to see what is on the tape but everything i use
I/O error dd. tar. cpio....

~# mt -f /dev/osst0 status
OnStream SC-, DI-, DP-, or USB tape drive:
File number=0, block number=0.
Tape block size 512 bytes. Density code 0x40 (DLT1 40 GB, or Ultrium).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN

~# cpio -itv -I /dev/osst0
cpio: read error: Input/output error

has someone experience with tapes used under windows nt and reading them in linux?
or there is another problem,that causes my table not to read?

maybe here is the problem why can't i read the content

osst0:E: Failed to find valid ADRL header, new media?

or not?

what exactly is valid ADRL header can someone explain me it? why is it wrong?

Last edited by janko33; 07-26-2006 at 09:31 AM.
 
Old 07-26-2006, 10:36 PM   #13
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
your problem's too difficult. i guess you have no more choice but to read the tape on a windoze machine. that's the last option i can tell you.

good luck
 
Old 07-27-2006, 02:18 AM   #14
janko33
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
if i just want to rewirte the data via Linux. I don't really care what is on the tape.
How do i rewrite the data on the tape? (or format the tape to be usefull on Linux?)
 
Old 07-27-2006, 03:59 AM   #15
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
you can use ftformat
it's from the ftape-tools packages:
ftp://sunsite.unc.edu/pub/Linux/kernel/tapes/
 
  


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
Onstream ADR tape drive device missing conn-fused Linux - Hardware 1 01-29-2006 01:43 PM
tape back up problems tornatom Linux - Hardware 0 07-11-2005 11:11 AM
Tape drive problems czarherr Linux - Hardware 2 09-22-2004 08:29 PM
Onstream IDE Tape Drive jwatco2001 Linux - Hardware 17 08-11-2003 05:32 AM
Onstream IDE 30GB Installation jeucken Linux - Hardware 2 08-01-2002 01:53 PM

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

All times are GMT -5. The time now is 05:10 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration