TAPE drive


 
Thread Tools Search this Thread
Operating Systems HP-UX TAPE drive
# 1  
Old 07-31-2014
TAPE drive

I have used ioscan -fnC tape and the system identified the tape drive. what is the command to show a listing of what is on the tape? I have used ls /dev/rmt/rmt0 to no avail. can anyone help?

Thanks in advance
# 2  
Old 07-31-2014
Welcome Randydog,

What are you expecting to be on the tape? It rather depends what it was written with.

You could try some of the following:-
Code:
tar -tvf tape_addr
dd if=tape_addr of=/large_filesystem/filename
restore -ivf tape_addr
cpio (not sure on the options)

I would have expected the first tape drive on your server to be at address /dev/rmt/0m or similar. Does that match what you have?



Regards,
Robin
# 3  
Old 07-31-2014
thanks for the quick responce. yes /dev/rmt/0m is the first in the directory. I am trying to install software from the tape drive. I first want to see what is on the tape to verify it has on it what I need. I was on wondering if it could be as easy as ls /cdrom. I have to mount and umount the cdrom and I don't know if I have to do something similar for the tape drive with is external.
# 4  
Old 07-31-2014
You can consider a tape as a single giant file of fixed size and unknown type, which can only be read beginning-to-end. You can't mount it, and how to use its contents depends on what it actually holds.

"tar" is a good guess -- that's short for "tape archive", a standard UNIX utility which gets used for a lot more than tapes but is still relevant here. If the tape holds a tar, then rbatte1's first instruction should help you, as "tar -tvf /path/to/device" is about as close as you can get to "ls" for a tarball.

It will have to read the entire tape to list all the contents, though! tar is not a filesystem, and a tape drive can't seek in the middle.

Last edited by Corona688; 07-31-2014 at 02:58 PM..
# 5  
Old 07-31-2014
I'll give that a try, thanks!

---------- Post updated at 04:54 PM ---------- Previous update was at 03:23 PM ----------

So, I did the tar -tvf /dev/rmt/0m and I received a tape drive error. Any suggestions to correct the error. I know the drive exists because when I ioscan tape it shows up.
# 6  
Old 07-31-2014
Received what tape drive error? Be specific. Please show us exactly what you did and exactly what happened.
# 7  
Old 07-31-2014
I entered: tar -tvm /dev/rmt/0m the system returned: Tar: tape read error

Thanks in advance for you help

Last edited by rbatte1; 08-01-2014 at 05:33 AM.. Reason: Added ICODE tags
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Quantum tape drive

Hi, Using Redhat 5.7. I have Quantum tape drive connected to the server. I am trying to install the Netbackup software. Just wondering how can I see the Quantum is connected to the server. is any command I run to see the tape drive is connected? I used to work on Solaris, I used to do... (1 Reply)
Discussion started by: samnyc
1 Replies

2. SCO

Tape Drive Logs?

I've recently been tasked with "refurbishing" an HP Proliant ML370 running SCO 5.0...something. This is primarily used for legacy support and is kept on a shelf for safe keeping. The scope of work includes hardware diagnostics and blowing the dust out. I have run HP diagnostics on the array,... (1 Reply)
Discussion started by: v1corp
1 Replies

3. Solaris

Help with tape drive

Hey folks, Linux admin here, forced to use Opensolaris to try to use ufsdump/ufsrestore to get some data of some old tapes. I've got Opensolaris 2009.06 on x86 and a Sony SDX-700V. As a "control" experiment, I booted the system with a Linux live CD and the tape drive worked perfectly. ... (2 Replies)
Discussion started by: eddy_sysad
2 Replies

4. SCO

Tape Drive Configuration

Dear All, I have a tape drive which has worked for offer 3yrs properly on SCO Openserver Release = 3.2v5.0.5. I tried to clean it all invain. I did a fresh installation of unix of the same OS and did the configuration still didn't bear fruits. The tape is a scsi and the configuration is as... (4 Replies)
Discussion started by: njoroge
4 Replies

5. AIX

Tape Drive

I have tape drive in one Lpar. when i saw that time tape is in defined state. After that i deleted the tape drive using the rmdev -R command. Then fired the cfgmgr -v command. But I am not getting the tape drive. Now the drive is even not in defined state also. It is not shown the tape drive. How... (1 Reply)
Discussion started by: pernasivam
1 Replies

6. UNIX for Dummies Questions & Answers

tape drive

Hi, I need to restore my tape backup, when I type "tape status" it gives; status : ready beginning-of-tape write-protected soft errors : 0 hard errors : 0 underruns : 3 but... (4 Replies)
Discussion started by: alisevA3
4 Replies

7. Linux

Installing tape drive?

Hello. I have Redhat 8.0 on a laptop. Working good. I wanted to install the tape drive that is physically attached to it. The tape drive worked fine under Windows98SE. It's one of those parallel QIC-80 drives and I confirmed that it is supported by FTape. It appears that FTape might already... (0 Replies)
Discussion started by: RuralTurtle
0 Replies

8. UNIX for Dummies Questions & Answers

Tape drive install

I'm trying to install a tape drive on a compaq SCO OS 505. well I have gone through the mkdev tape comands and what have you yet no luck. when I reboot and do a simple tape rewind it gives me an error no such device etc.etc. IS there a diference in the xct0 and rct0 a the default? help.. (2 Replies)
Discussion started by: kikkin
2 Replies
Login or Register to Ask a Question