From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: vikram sachdeva Newsgroups: gmane.os.tru64.managers Subject: Summary: How to find format in which data is stored Date: Sat, 13 Jul 2002 12:12:04 +0530 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <000001c22a38$6b344cc0$1270c8cb@guessk42gdl1si> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1026542721 26632 127.0.0.1 (13 Jul 2002 06:45:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 13 Jul 2002 06:45:21 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17TGef-0006vR-00 for ; Sat, 13 Jul 2002 08:45:21 +0200 Original-Received: (qmail 30586 invoked by uid 5); 13 Jul 2002 06:46:02 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 30578 invoked from network); 13 Jul 2002 06:46:02 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 13 Jul 2002 06:46:02 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GZ60043CDGMS2@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sat, 13 Jul 2002 02:46:01 -0400 (EDT) Original-Received: from jive.SoftHome.net (jive.SoftHome.net [66.54.152.27]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with SMTP id <0GZ6001FSDGG63@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sat, 13 Jul 2002 02:45:53 -0400 (EDT) Original-Received: (qmail 22142 invoked by uid 417); Sat, 13 Jul 2002 06:45:41 +0000 Original-Received: from shunt-smtp-out-0 (HELO softhome.net) (172.16.3.12) by shunt-smtp-out-0 with SMTP; Sat, 13 Jul 2002 06:45:41 +0000 Original-Received: from guessk42gdl1si ([203.200.112.18]) (AUTH: LOGIN vikram_dude@softhome.net) by softhome.net with esmtp; Sat, 13 Jul 2002 00:45:37 -0600 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:960 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:960 Hello I got tons of responses from so many people. Thanks to Gavin Kreuiter, Alan Nabeth, Robert M Lang, Selden E Ball, Steve Herber , James ,Bob , Lucio,Joerg, and Oisin . Most of them suggested to take a dump of tape to HDD and then use file command to see the what info it gives.Some even suggested to use VMS dump utility to find the format in which backup is taken. Some even suggested that backup might be taken by fbackup (HP-UX ) I am including some of the reply which I consider very good. ====================== Joerg wrote As you copied the contents to disk, I propose a "od -xc | head" of that disk file. Typically, some header information of "tar" or "cpio" might show up there; you might then read about the "file" command and its way of determining formats (it uses a list "/etc/magic"). When doing that check manually, consider the byte swap difference. If that fails, I propose you ask on some HP mailing list, and provide the "od -xc | head" output there - they might discover some format specific to HP. ====================== Alan Nabeth wrote I have read of programs that know about a large number of tape formats and will guess at the format by reading the first few tape blocks. If you can find one that runs on Tru64 UNIX that would be one way to guess at the format. Whether you have what you need to restore is another matter. One thing you should do is not to make any assumptions about the original block size. That's information about the format. Most Tru64 UNIX need to know the block size used to write the tape if is different than their default (tar, cpio probably use 10 KB, vdump uses 60 KB, etc). You may be able to use vdump to guess at the block size. Have it read only one record using a very large block size (multiple megabytes). Don't use the "conv=sync" option. The size of the resulting file should be block size (*). Once you know the transfer size, you can try the usual commands with their options to accept non-default block sizes to see if it is one of the common formats. Beyond that use od(1) to look at the first block and see if that provides a hint. (*) I verified this with a 10 KB block size tar tape on V4.0G, using a bs=1024k dd(1) transfer size option. ====================== Regards Vikram Sachdeva