<P>
  <BR>
<BR>
<BR>
On Mon, 18 Jul 2005 Bob McClure Jr wrote :<BR>
>On Mon, Jul 18, 2005 at 07:00:55AM -0000, ajay wrote:<BR>
> ><BR>
> > On Fri, 15 Jul 2005 Rick Stevens wrote :<BR>
> > >ajay wrote:<BR>
> > >>  hi gurus<BR>
> > >><BR>
> > >>i try to list my tape hp 40gb (under compression)<BR>
> > >><BR>
> > >>------------------------------------------------------<BR>
> > >>[root@tivimtech ajay]# tar vft /dev/st0<BR>
> > >>tar: This does not look like a tar archive<BR>
> > >>tar: Skipping to next header<BR>
> > >>tar: Archive contains obsolescent base-64 headers<BR>
> > >><BR>
> > >>-------------------------------------------------------<BR>
> > >><BR>
> > >>it do not list anything and gives this error and comes out.<BR>
> > >>is there any way i can mount it, if yes what is mount type ?<BR>
> > >><BR>
> > >>i use this command to backup:<BR>
> > >>i am very sure it does backup as i checked date against backup.log<BR>
> > >>it changes everyday and shows latest date time as supposed.<BR>
> > >><BR>
> > >># Daily Backup on the Dat<BR>
> > >>tar cvfz /dev/st0 /home /data /etc /var/spool/mail /var/www  >/var/log/backup.log &<BR>
> > >><BR>
> > >>It is scheduled in cron.<BR>
> > >><BR>
> > >>here is some part of this log.....<BR>
> > >><BR>
> > >>UW PICO(tm) 4.2                    File: /var/log/backup.log<BR>
> > >><BR>
> > >><BR>
> > >>home/<BR>
> > >>home/niteen/<BR>
> > >>home/niteen/.bash_history<BR>
> > >>home/niteen/.addressbook<BR>
> > >>home/niteen/.addressbook.lu<BR>
> > >>home/niteen/.bash_logout<BR>
> > >>home/niteen/.bash_profile<BR>
> > >>home/niteen/.bashrc<BR>
> > >>home/niteen/.canna<BR>
> > >>home/niteen/.emacs<BR>
> > >>home/niteen/.esd_auth<BR>
> > >>home/niteen/.fetchmailrc<BR>
> > >>home/niteen/.fonts.cache-1<BR>
> > >>home/niteen/.gtkrc<BR>
> > >>home/niteen/.gtkrc-1.2-gnome2<BR>
> > >>home/niteen/.ICEauthority<BR>
> > >>home/niteen/.mailboxlist<BR>
> > >>home/niteen/.pinerc<BR>
> > >>home/niteen/.recently-used<BR>
> > >>home/niteen/.rhn-applet.conf<BR>
> > >>home/niteen/.viminfo<BR>
> > >><BR>
> > >>..............................<BR>
> > >><BR>
> > >>I am confussed why it says "This does not look like a tar archive" ??<BR>
> > >><BR>
> > >><BR>
> > >>help me from this dilemma !!!<BR>
> > ><BR>
> > >Did you rewind the tape before trying to list its contents?<BR>
> > ><BR>
> > ># mt -f /dev/st0 rewind<BR>
> > ># tar tvf /dev/st0<BR>
><BR>
>Actually, your device, /dev/st0, rewinds after each operation.  If you<BR>
>were using the non-rewinding device, /dev/nst0, you would have to<BR>
>rewind it in a separate command.<BR>
><BR>
> > i wrote "mt -f /dev/st0 rewind" but it returns silent , no error messg , no attempt on tape to rewind it.<BR>
> ><BR>
> > i am confused why ?<BR>
> ><BR>
> > it just comes to prompt without doing anything, no activity , no message at all.<BR>
><BR>
>That means the tape is already rewound.  If in doubt, you can issue<BR>
><BR>
>   mt -f /dev/st0 reten<BR>
><BR>
>and it will retension the tape by winding it all the way to the end<BR>
>and back again.<BR>
><BR>
> > i checked "mt -f /dev/st0 offline" to confirm "mt" function though.<BR>
> > It works and tape ejects immediately .<BR>
> ><BR>
> > scratching my head why not with "rewind" option!<BR>
><BR>
>It's working.  That's not your problem.<BR>
><BR>
> > awaiting your reply<BR>
> ><BR>
> > thanks and regards<BR>
> ><BR>
> > ajay<BR>
><BR>
>Cheers,<BR>
<BR>
thanks now i got it and its working that is showing list .<BR>
i have one more query.<BR>
<BR>
what is the proper command to restore data?<BR>
i issued :<BR>
<BR>
tar xvfzp /dev/st0 /home/user<BR>
<BR>
as i want to pick up only this particular user data , not entire tape .<BR>
i know it is hardly 4MB , but after firing this currsor strucks there and tape becomes busy "doing something" for unlimited time .<BR>
<BR>
nothing comes out of tape even half and hour after.<BR>
<BR>
i will be thankful for your suggestion.<BR>
<BR>
also tell how can i also preserve ownership of data?<BR>
and can i use a file containing folder/file enteries inspite of defining individual folders name with tar command. if yes what is that file format and how to fit it in tar command ? <BR>
<BR>
regards<BR>
<BR>
ajay<BR>

</P>
<br><br>
<A target="_blank" HREF="http://clients.rediff.com/signature/track_sig.asp"><IMG SRC="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" BORDER=0 VSPACE=0 HSPACE=0></a>