>>>>> On Tue, 9 Oct 2007 08:08:30 +0200 (CEST), Paul Muster said:
> 
> Hello everybody,
> 
> 
> for some reason - maybe I did something that caused it, but I don't
> remember - one of my tapes has no label any more. Hence during restore
> bacula does not recognize the tape:
> 
> 07-Okt 23:59 server: RestoreFiles.2007-10-07_23.57.27 Error: block.c:263
> Volume data error at 0:0! Wanted ID: "BB02", got "". Buffer discarded.
> 07-Okt 23:59 server: RestoreFiles.2007-10-07_23.57.27 Warning:
> acquire.c:146 Requested Volume "L20002" on "LTO-2-Laufwerk" (/dev/nst0) is
> not a Bacula labeled Volume, because: ERR=block.c:263 Volume data error at
> 0:0! Wanted ID: "BB02", got "". Buffer discarded.
> 
> We discussed a similar problem in [1] but the last idea (relabeling option
> in btape) was not commented any more.
> 
> How can I write a label to the tape without an EOF after the label? I know
> the length of the label (see above), so following data would not be
> destroyed, I think.

I don't think it is possible.  The label is part of the first tape file and
tapes don't support rewriting in the middle or at the start (only appending).


> How can I make a dump of the tape to disk, so that I have more than one
> try on this? I tried dd, but this needs a block device as source.

What error did it give?  dd if=/dev/nst0 of=/tmp/file should work.

Note however, that you probably won't be able to read anything useful from
this tape, only the zero length file at that was written over the label.

__Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to