Sponsored Content
Special Forums Hardware Filesystems, Disks and Memory "mt erase" command does not work Post 67604 by Kelam_Magnus on Thursday 24th of March 2005 11:46:11 AM
Old 03-24-2005
Krishan,

there are many ways to clear a tape... one method involves writing /dev/null or /dev/zero to the tape...

tar -cvf zero.TAR /dev/zero

tar -cvf /dev/rmt/0mn

or

mediainit -v /dev/rmt/0m ## works on HPUX not sure if it is available on your platform.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

"man date" command does not work

Hi there I'm logged in as root on a UNIX Spark 10 using a SSH client. I notice that the time on the machine is wrong and I type "man date" in order to receive the options how to change this. When typing "man date" and hitting Enter I get the message "No manual entry for date" Why? Am I... (1 Reply)
Discussion started by: aptit
1 Replies

2. Shell Programming and Scripting

How to get Find command work with a variable passing "*" value?

Hi guy, I have a problem to pass a variable containing '*' value to FIND command. below is the script. It doesn't work by submit below command: rmf.sh name '*.txt' or rmf.sh name *.txt I've tried either optn="-name '$2'" or optn="-name $2"., and there is no luck. ### (script... (5 Replies)
Discussion started by: unxuser
5 Replies

3. Shell Programming and Scripting

Silly question - how does the "mv" command work?

I know this may sound really elemental, but I'm trying to figure out if I'm correct. I have a script that moves a file from a temp directory to (what I am calling) a pickup directory. On another machine, I have this "other program" that scans the contents of the pickup directory for a... (5 Replies)
Discussion started by: gseyforth
5 Replies

4. AIX

"/" doesn't work on command prompt for searching commands last typed

When I use "/" to look for a particular command that I typed in the current session it says D02:-/home/user1/temp> /job ksh: /job: not found. D02:-/home/user1/temp> previously it used to fetch all the commands which had job in it.. for example subjob, endjob, joblist etc... may I... (7 Replies)
Discussion started by: meetzap
7 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

7. Red Hat

"/usr/sbin/hpacucli ctrl all show" command does not work

Dear Concern, We have observed that following command stuck/does not work in some RedHat nodes. Please advise us to troubleshoot the issue. /usr/sbin/hpacucli ctrl all show Note: HP Array Configuration Utility CLI for Linux 64-bit With Best Regards, Md. Abdullah-Al Kauser (3 Replies)
Discussion started by: makauser
3 Replies

8. UNIX for Beginners Questions & Answers

"Mv" command does not work in loop, but works manually

Hi there, this may be a beginner's error, but I've been unable to find a solution on my own and by googling, and now I am really stuck on it. I am simply trying to move directories called for example CAT_Run01.ica to a directory with the corresponding number, Run01, in the same directory. For... (2 Replies)
Discussion started by: andrevol
2 Replies
AMRMTAPE(8)						  System Administration Commands					       AMRMTAPE(8)

NAME
amrmtape - remove a tape from the Amanda database SYNOPSIS
amrmtape [--changer changer-name] [--cleanup] [--dryrun] [-n] [--erase] [--keep-label] [--quiet] [-q] [--verbose] [-v] config label DESCRIPTION
Amrmtape invalidates the contents of an existing backup tape in the configuration database. This is meant as a recovery mechanism when a good backup is damaged either by faulty hardware or user error, e.g. the tape is eaten by the drive or is overwritten. See the amanda(8) man page for more details about Amanda. OPTIONS
--changer changer-name Specify which changer to use when erasing label --cleanup Remove logs and indexes associated with label. Otherwise, they'll remain until the next run of amdump. --dryrun, -n Generate new tapelist(5) and database files with label removed, but leave them in /tmp and do not update the original copies. --erase Attempt to erase the data contained on the volume with the given label. This requires that Amanda be able to find that volume using the tape changer. Erasure is not supported by all Amanda devices, and the erasure is not "secure" in the sense that the data can most likely be recovered by someone with the right tools. --keep-label Do not remove label from the tapelist. --verbose, -v List backups of hosts and disks that are being discarded. Enabled by default. --quiet, -q Opposite of -v. EXAMPLE
Remove tape labeled DAILY034 from the DailySet1 configuration. # amrmtape DailySet1 DAILY034 SEE ALSO
amanda(8), amadmin(8) The Amanda Wiki: : http://wiki.zmanda.com/ AUTHORS
Adrian T. Filipi-Martin <atf3r@cs.virginia.edu> Stefan G. Weichinger <sgw@amanda.org> Amanda 3.3.3 01/10/2013 AMRMTAPE(8)
All times are GMT -4. The time now is 04:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy