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 04-21-2003, 10:33 AM   #1
Laplace
LQ Newbie
 
Registered: Feb 2003
Posts: 9

Rep: Reputation: 0
tape problem and can't save


HP sure store 6000 ( 4 G dds) failure
dev/nst0: Input/output error
tar: /dev/nst0: Wrote only 0 of 10240 bytes
tar: Error is not recoverable: exiting now
/home/auser/newtape: line 17: syntax error: unexpected end of file


here is my script from searching.

#!
mt -t /dev/nst0 comp 0 # turn off hardware compression
mt -t /dev/nst0 rewind # rewind tape
mt -t /dev/nst0 fsf 1 # skip 1st file (used by KDat)
#tar cfPW /dev/nst0 /home /home2 /baseline # tar the data onto tape
tar cfPW /dev/nst0 /var/www/html/redhat7.3/8051

mt -t /dev/st0 offline # rewind and eject the tape
set fsize=`ls -l /var/log/backup_error |awk '{print $5}'`
if ($fsize > 4 ) then
mail waded</var/log/backup_error
else mail waded</var/log/backup_success
endif
rm -f /var/log/backup_error



in cronab

32 22 * * * /home/user/newtape 1 > /dev/null 2 > /var/log/backup_error




can you help to spot my mistake?



Report this post to a
 
Old 04-21-2003, 04:42 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,467

Rep: Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218
1. mt -t /dev/nst0 ... should be mt -f /dev/nst0 (Unless it has changed with a later version)

2. Have you tested the tape drive before using the script? And are you sure you have a /dev/nst0?

See man pages for mt.
 
  


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
Wierd tape problem. HELP! nlinecomputers Linux - Hardware 4 08-24-2005 10:53 PM
Tape backup problem pneumatix Linux - Enterprise 6 10-23-2004 10:36 PM
Problem with dd and tar to tape hastur Linux - Software 0 10-22-2004 08:38 AM
backup tape problem lammike Linux - Enterprise 10 10-07-2004 12:10 AM
Tape drive problem ahmedmekawy Solaris / OpenSolaris 0 05-12-2004 07:58 AM

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

All times are GMT -5. The time now is 01:35 PM.

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
Open Source Consulting | Domain Registration