05-29-2012
Quote:
but ran command once, did not work, but after retrying it worked?
You never said what tape drive or brand, but some DAT drives have a header partition that you have to bypass. So the first attempt reads the header without rewinding, then the second attempt gets the data.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi i am using HPUX
and i want to know wht is the command to see the listing from the tape device..
i have taken the backup
using cpio -ocvB>/dev/rmt/0m
while seeing the listing using
cpio -itvB</dev/rmt/0m
it is not showing the listing giving message -c option sd be there if i put -c... (1 Reply)
Discussion started by: Prafulla
1 Replies
2. HP-UX
HI All
I have created the bootable recovery tape using the ignite command make_tape_recovery, I need help for the command to list the content recorded in that tape.
Regards,
Gege:confused: (1 Reply)
Discussion started by: cgege
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I use following command to restore data from my cpio tape archive:
$cpio -icvd < /dev/rct0
But this'll restore all tape contents to the current path, what if I want only selected files from the tape, suppose I want
/home/compdir/home2/Rev83/data/PL/01/*.*
files to be restored... (8 Replies)
Discussion started by: tayyabq8
8 Replies
4. UNIX and Linux Applications
I apologize in advance if someone else has posted a similar question and I overlooked the answer in the forums, so here goes.
i'm using cpio to retrieve data from a tape and the switches i'm using are
cpio -AvicdumkB -I/dev/rct0
now the data i'm trying to restore is a specific couple of... (5 Replies)
Discussion started by: HNelson
5 Replies
5. Red Hat
Thanks for any insights you might have...
I have a RH8 system setup with a DAT drive.
I have a AIX tape that was made using cpio.
Bottom line is I need to read the AIX tape into the RH box.
I was able to do cpio -itv --no-absolute-filenames < /dev/st0 and read the table of contents.
... (0 Replies)
Discussion started by: mike114327
0 Replies
6. UNIX for Advanced & Expert Users
Hi,
I was wondering, If I take a backup using cpio to tape from UNIX, can I extract data on windows box using cpio for windows? Anybody ever do this?
Thanks. (1 Reply)
Discussion started by: yonez
1 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I've got two HP machines running HP-UX 11.31 and would like to remotely backup one server onto another server's tape unit using the cpio command.
The two servers use a secured communication channel, i.e ssh.
Kindly help,
Koketso (1 Reply)
Discussion started by: Koketso
1 Replies
8. AIX
Hi, AIXers :)
Recently i'm playing around with cpio command, when i try to list out content from LTO2 Tape media using
command:
#cpio -itvc < /dev/rmt1
it's stopped at particular path
100777 root 1042591 Mar 24 10:09:05 2012 /home/uv/bin/usd
and there was an error thrown out:
... (2 Replies)
Discussion started by: polar
2 Replies
9. AIX
Hi,
We are taking our filesystem backup having size of 1.3 TB on LTO5 catridges using the following command
find * -print|backup -ivf '/dev/rmt0' '-U'
i.e backup byname and it took about 6.5 Hours to complete When we are listing same tape contents using the following command
restore... (1 Reply)
Discussion started by: m_raheelahmed
1 Replies
10. AIX
Hi,
We have backup on LTO-3 tape it was taken from windows via windows backup utility,
now the issue is that we want to list the content of tape in aix 6.1. Kindly help.
Regards
Salman (3 Replies)
Discussion started by: salmanraza
3 Replies
MT(1) General Commands Manual MT(1)
NAME
mt - magnetic tape control
SYNOPSIS
mt [-f device] [count]
DESCRIPTION
Mt is a user interface to the magnetic tape commands described in mtio(4). It allows one to space a tape forwards or backwards, write end
of file markers, etc.
With the -f option a tape device can be named, otherwise the environment variable TAPE is used if set, otherwise the default device
/dev/nrst4 is assumed. Standard input is used if the tape name is a dash (-). The count argument is used to tell how many blocks or files
to space or how many file markers to write. It may be a C-style decimal, octal or hexadecimal constant, by default "1".
Command is the action to perform, it may be one of the following, or any unambiguous prefix (like st for status):
eof, weof Write count end-of-file markers.
fsf Forward space count file markers.
fsr Forward space count records. (The size of a record depends on the tape, and may even be variable, depending on the size of
the writes.)
bsf Backwards space count files. The count may be zero to backspace to the start of the current file. (A tape device need not
support backwards movement, or may be very slow doing it. Rewinding and forward spacing may be better.)
bsr Backwards space count records. The tape is positioned after the last block of the previous file if you hit a filemark when
spacing backwards. The block count is set to -1 to indicate that the driver has no idea where it is on the previous file.
eom Forward space to the end of media.
rewind Rewind the tape.
offline, rewoffl
Rewind and take offline. This may cause some drives to eject the tape.
status Shows the status of the drive, the sense key of the last SCSI error, current file number, current record number, residual
count if the last command that encountered end-of-file, and the current block size.
retension Removes tape tension by winding and rewinding the tape completely.
erase Erases the tape completely and rewinds it.
density Sets the density code to read or write the tape to count. Density codes supported depend on the drive. This command need
not be used if the drive senses the proper density on read and can only write one density.
blksize, blocksize
Sets the block size used to read or write the tape to count. This command may be used to select a fixed block size for a
variable block size tape. This will speed up I/O for small block sizes. Use a zero count to use variable sized blocks
again.
ENVIRONMENT
TAPE Tape drive to use if set.
FILES
/dev/nrst4 Default tape device.
SEE ALSO
mtio(4), st(4).
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
MT(1)