LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2003, 02:00 PM   #1
AZDAVE
Member
 
Registered: Aug 2003
Posts: 82

Rep: Reputation: 15
tar problem


I am getting this error when I try to run my backup.
./testbkup
tar: Removing leading `/' from member names

boot/
boot/vmlinuz
boot/vmlinuz-secure
boot/System.map-2.4.21-0.13mdk
tar (child): /dev/st0/: Cannot open: Is a directory
tar (child): Error is not recoverable: exiting now
boot/config-2.4.21-0.13mdk
boot/vmlinuz-2.4.21-0.13mdk
./testbkup: line 2: 18564 Broken pipe tar cjvpf /dev/st0/ / /boot
/etc /home /var/www/html
eject: unable to open `/dev/st0'
[root@flagstaff /]#

my backup looks like this.
tar cjvpf /dev/st0/ / /boot /etc /home /var/www/html
eject /dev/st0
ANy ideas why I can't backup to /dev/st0
 
Old 12-03-2003, 02:11 PM   #2
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
1) you are trying to backup a device
2) What is st0?
 
Old 12-03-2003, 02:24 PM   #3
AZDAVE
Member
 
Registered: Aug 2003
Posts: 82

Original Poster
Rep: Reputation: 15
that is my tape drive.. /dev/st0 that is where I am backing my partitions to.
 
Old 12-03-2003, 02:24 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
st0 is a tape streamer device,
and from what I know about tar
his syntax is correct, the archive
comes before the stuff you want
to archive.

Is the tape formatted?

Try
/dev/st0 instead of /dev/st0/


Cheers,
Tink
 
Old 12-03-2003, 02:32 PM   #5
AZDAVE
Member
 
Registered: Aug 2003
Posts: 82

Original Poster
Rep: Reputation: 15
I think I tried that.. Do you have a better idea on how I can backup my system other mirror or raid? I want to tar it to a tarfile and put it to tape.
 
Old 12-03-2003, 02:34 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
What kind of streamer is it, is it being picked
up during boot?


Cheers,
Tink
 
Old 12-03-2003, 02:37 PM   #7
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
oh, ok.
i'd try mounting tape drive first
 
Old 12-03-2003, 02:50 PM   #8
AZDAVE
Member
 
Registered: Aug 2003
Posts: 82

Original Poster
Rep: Reputation: 15
Hay Tink,
Not sure what you mean by streamer.. It is a dds4 tape drive and I thought you didn't have to mount it.
 
Old 12-03-2003, 02:54 PM   #9
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
hmmm, try mounting it and see what will happen, if it does work, then you do have to mount it to backup
 
Old 12-03-2003, 03:03 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
You don't mount them ...

but you're trying to use the SCSI-Raw-device
rather than the tape .... try something like
/dev/rmt? or /dev/rst?


Cheers,
Tink
 
Old 12-03-2003, 04:34 PM   #11
AZDAVE
Member
 
Registered: Aug 2003
Posts: 82

Original Poster
Rep: Reputation: 15
I go into mandrake hardware and it can see st0 for tape. What is the diff between /dev/rmt rst and /dev/st0 ? So you are saying to use this tar comand? tar cjvpf /dev/rmt/ / /boot /etc /home /var/www/html
 
Old 12-03-2003, 04:38 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Almost ... the rmt/rst has a number with it that
depends on the make of the tape.

And no - I don't know which is right ofr you :)


Cheers,
Tink
 
Old 12-03-2003, 04:42 PM   #13
AZDAVE
Member
 
Registered: Aug 2003
Posts: 82

Original Poster
Rep: Reputation: 15
thanks tink
 
Old 12-03-2003, 04:45 PM   #14
AZDAVE
Member
 
Registered: Aug 2003
Posts: 82

Original Poster
Rep: Reputation: 15
One other thing Tink,
THis is the error I got when I tried the backup to st0. SOmething about a broken pipe.

tar cjvpf /dev/st0 /boot /etc /home /var/www
tar: tar (child): /dev/st0: Cannot open: No such device or address
tar (child): Error is not recoverable: exiting now
Removing leading `/' from member names
boot/
boot/vmlinuz
boot/vmlinuz-secure
boot/System.map-2.4.21-0.13mdk
boot/config-2.4.21-0.13mdk
boot/vmlinuz-2.4.21-0.13mdk
Broken pipe
 
Old 12-03-2003, 04:53 PM   #15
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by AZDAVE
THis is the error I got when I tried the backup to st0. SOmething about a broken pipe.

tar cjvpf /dev/st0 /boot /etc /home /var/www
tar: tar (child): /dev/st0: Cannot open: No such device or address
That's the REAL problem :}

The broken pipe is just a subsequent error.


But another thought ... since you appear to
be using MDK, and it's so friendly in doing
work for the admin ...

Have you tried
/dev/tape
?


Cheers,
Tink
 
  


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 02:04 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM


All times are GMT -5. The time now is 05:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration