Unix Technical Forum

write and read files to/from tape

This is a discussion on write and read files to/from tape within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> In article <MPG.19c9b283a02f17a198ca36@news.free.fr>, Emmanuel Florac <eflorac@imaginet.fr> wrote: >Dans article <bjo2sk$3cg$1@news.cs.tu-berlin.de>, js@cs.tu-berlin.de >disait... >> Cpio may create tar archives and ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 01-12-2008, 05:30 AM
Joerg Schilling
 
Posts: n/a
Default Re: write and read files to/from tape

In article <MPG.19c9b283a02f17a198ca36@news.free.fr>,
Emmanuel Florac <eflorac@imaginet.fr> wrote:
>Dans article <bjo2sk$3cg$1@news.cs.tu-berlin.de>, js@cs.tu-berlin.de
>disait...
>> Cpio may create tar archives and star may also be told to reset the
>> access time.

>
>Sure, and GNU tar too. However stock solaris tar can't.


GNU tar can't really, it always at least clears the nanoseconds.....

>> Star may even do this without setting ctime if you are a super user on
>> Solaris.
>>

>
>star is a fine tool. Last time I checked it didn't support files bigger
>than 4GB, though.


There never has been a 4 GB limit.

So you did either check a really long time ago and don't remember correctly
or you just did a mistake.

--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni) If you don't have iso-8859-1
schilling@fokus.fraunhofer.de (work) chars I am J"org Schilling
URL: http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 01-12-2008, 05:30 AM
TCMa
 
Posts: n/a
Default Re: write and read files to/from tape

I want to write a small text file (about 200 bytes) to the
beginning of a tape. Then I write several partitions of the disk to
the same tape. Some time later, I want to read back the text file and
the partitions on the tape.
The command to write is (ignoring error checking):
e.g.
mt -f /dev/rmt/0cn rewind
tar cvf /dev/rmt/0cn file1
ufsdump 0uf /dev/rmt/0cn /
ufsdump 0uf /dev/rmt/0cn /usr
....

Some time later, to read back the data:
mt -f /dev/rmt/0cn rewind
tar xvf /dev/rmt/0cn file1
ufsrestore rf /dev/rmt/0cn
ufsrestore rf /dev/rmt/0cn
....

Darren Dunham <ddunham@redwood.taos.com> wrote in message news:<2GK7b.3002$M87.1180@newssvr25.news.prodigy.c om>...
> In comp.unix.solaris TCMa <ma77777777772000@yahoo.ca> wrote:
>
> It's not entirely clear to me what you intend from your posting, but I
> wanted to verify that you're not wanting to "write" to the beginning of
> the tape and then "read" anything after that, correct?
>
> Writing to the beginning of the tape will effectively erase the tape.
> You may already understand that, but I wanted to be certain.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 01-12-2008, 05:30 AM
Joerg Schilling
 
Posts: n/a
Default Re: write and read files to/from tape

In article <MPG.19ca48a04d0f4c3398ca37@news.free.fr>,
Emmanuel Florac <eflorac@imaginet.fr> wrote:
>Dans article <bjob0l$ce1$1@news.cs.tu-berlin.de>, js@cs.tu-berlin.de
>disait...
>> >
>> >Sure, and GNU tar too. However stock solaris tar can't.

>>
>> GNU tar can't really, it always at least clears the nanoseconds.....
>>

>
>Yes, and it change ctime.


Star keeps the nanoseconds and if you are super user, it does not touch ctime.


>> >star is a fine tool. Last time I checked it didn't support files bigger
>> >than 4GB, though.

>>
>> There never has been a 4 GB limit.
>>
>> So you did either check a really long time ago and don't remember correctly
>> or you just did a mistake.

>
>I checked 2 years ago on Linux (32 bits). That may be a 32 bits
>limitation.


2 years ago, star already was large file aware.....

This has nothing to do with 32 vs 64 bits. Although a compilation in 64 bit mode
would have lifted the 2 GB file limit but there is more.....

--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni) If you don't have iso-8859-1
schilling@fokus.fraunhofer.de (work) chars I am J"org Schilling
URL: http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 01-12-2008, 05:30 AM
Darren Dunham
 
Posts: n/a
Default Re: write and read files to/from tape

In comp.unix.solaris TCMa <ma77777777772000@yahoo.ca> wrote:
> I want to write a small text file (about 200 bytes) to the
> beginning of a tape. Then I write several partitions of the disk to
> the same tape. Some time later, I want to read back the text file and
> the partitions on the tape.


Okay. That'll work.

Just checking.

--
Darren Dunham ddunham@taos.com
Unix System Administrator Taos - The SysAdmin Company
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 01-12-2008, 05:30 AM
Emmanuel Florac
 
Posts: n/a
Default Re: write and read files to/from tape

Dans article <bjpfrk$mpk$1@news.cs.tu-berlin.de>, js@cs.tu-berlin.de
disait...
> >
> >Yes, and it change ctime.

>
> Star keeps the nanoseconds and if you are super user, it does not touch ctime.
>


Hey Joerg, nothing personal, I know star rocks

> This has nothing to do with 32 vs 64 bits. Although a compilation in 64 bit mode
> would have lifted the 2 GB file limit but there is more.....
>


Actually at that time I tested with 9GB files. So may the limit have been
4GB, or 8GB?

--
Quis, quid, ubi, quibus auxiliis, cur, quomodo, quando?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:52 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com