polar
1
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:
cpio: 0511-037 Cannot read from the specified input.
Enter the device or file name when ready to continue.
At the same time the Tape ejected automatically and show Tape Drive / Media Error on the LTO2 tape drive.
There is no problem with LTO2 Tape drive as i tried on another Tape Media, it's work.
Anyone here faced this problem before?
Thanks for replying. Appreciate.
Hi Polar,
Try to use the B option.
# cpio -itvcB </dev/rmt1
By the way...
If there are more tape markers on this tape:
# mt -f /dev/rmt1.1 fsf 1 ; cpio -itvcB -I /dev/rmt1.1
(.1 is the no-rewind device)
Skips one block, if there are any markers.
Another way to test the tape
dd if=/dev/rmt1 of=/dir-with-enough-space/1.dd -noerror
cpio -itv -I /dir-with-enough-space/1.dd
Good luck,
Ren�
polar
3
Hi rene, i have tried
# cpio -itvcB </dev/rmt1
The output able t0 list more directories, but result is still the same. It's thrown out
cpio: 0511-037 Cannot read from the specified input.
Enter the device or file name when ready to continue.
For
# mt -f /dev/rmt1.1 fsf 1 ; cpio -itvcB -I /dev/rmt1.1
erm.. Nothing happened. i do not know how to identify the different.
For
dd if=/dev/rmt1 of=/dir-with-enough-space/1.dd -noerror
cpio -itv -I /dir-with-enough-space/1.dd
Unable to run this command successfully.
I will try to make a backup copy with a new LTO2 tape media. Thanks rene.