LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-11-2009, 07:43 AM   #1
h@foorsa.biz
Member
 
Registered: Sep 2008
Posts: 30

Rep: Reputation: 17
viewing contents of tape


Hi all,
i would like to view the contents of Tape on Solaris 10
i issued the following command
Code:
tar -tvf /dev/rmt/0m
i'm getting the following error
Code:
bash-3.00# tar -tvf /dev/rmt/1m
tar: tape read error
by the way the reference to the command is on sun's wiki
any alternatives
Thanks in advance
 
Old 07-11-2009, 07:50 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You could try using the dd utility to extract the file from the tape and put it on a disk.
Code:
dd if=/dev/rmt/0m of=tapefile.tar bs=32768 conv=notrunc,noerror
Then you can use the tar utility on the file that you extracted.
Code:
tar -tf tarfile.tar
BTW using t and v in the same tar command doesn't make any sense because they both do the same thing but are used under different circumstances.

BBTW you did a generally good job writing your post. I would only recommend that you remove any command prompts that are displayed in a terminal window. In particular the "bash-3.00#" prompt should be removed when you type a post. This is because removing the prompt makes reading your post a lot easier. Thanks in advance.

Last edited by stress_junkie; 07-11-2009 at 07:59 AM.
 
Old 07-11-2009, 11:34 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by stress_junkie View Post
BTW using t and v in the same tar command doesn't make any sense because they both do the same thing but are used under different circumstances.
They actually do different things.
t = list the content of the archive
v = provide verbose information (might be used with c, r, t, u or x)
 
Old 07-11-2009, 11:38 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by h@foorsa.biz View Post
Hi all,
i would like to view the contents of Tape on Solaris 10
How was the tape written, if at all ?
Tar isn't the only way to write a tape.
 
Old 07-11-2009, 03:08 PM   #5
h@foorsa.biz
Member
 
Registered: Sep 2008
Posts: 30

Original Poster
Rep: Reputation: 17
first of all thanks both of you jlliagre and stress_junkie for your helpful repiles
it was wrriten with
Code:
tar
as follows

Code:
tar cf /dev/rmt/0hc /usr/local/vmail/scu/*.* &
and

Code:
tar cvf /dev/rmt/0 usr/local/vmail/*.*
 
  


Reply



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
problem viewing drive contents digity Linux - Newbie 1 12-06-2008 07:20 PM
tape contents view Ammad Linux - General 1 09-23-2008 07:57 AM
verify tape contents helpmhost Linux - Hardware 5 01-02-2008 01:18 PM
Viewing networked file contents with ftp linuxhippy Slackware 1 05-08-2005 08:11 AM
viewing contents of CD drive aymbpc Linux - Newbie 2 08-31-2003 05:55 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:45 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