Help getting a tar from a sun

Help getting a tar from a sun

Post by Frank Boehm » Tue, 19 May 1998 04:00:00




> Does anyone know how I could get some images from a Sun to a linux machine.

The simplest answer is: Set up NFS.

OK, I take it, you are talking about messing with floppies..

Quote:> Not the x86 type sun but a sparc station. Can I tar to a diskette on  the sun
> and then move the diskette to a linux intel machine and read it off after
> mounting it?

Exactly. The only thing is, you don't need to mount anything as this
always involves a common filesystem. Insert a writable disk into the
Sun's drive and type:

tar cvf /dev/fd0 <file_or_dirname>

Then you'll need to type "eject" to remove the floppy. Insert it to
the Linux box and type

tar xvf /dev/fd0

Note the following: if you have already come across the "dd" command:
dd is only useful if an exact image of the file is required *on*the*floppy*,
for instance in case of bootable floppies. In any other case, tar is
much simpler to use. Also, if you have Gnu tar, then you can incorporate
(de)compression on the fly by using the "z" option.

cheers,

Frank

--

National University of Ireland, Cork | phone: +353-21-903163      
Dept of Computer Science             |   fax: +353-21-903113
Cork, Ireland                        |   WWW: http://yeats.ucc.ie/~fboehme/

 
 
 

Help getting a tar from a sun

Post by Yon Han CHON » Wed, 20 May 1998 04:00:00



> Does anyone know how I could get some images from a Sun to a linux machine.
> Not the x86 type sun but a sparc station. Can I tar to a diskette on  the sun
> and then move the diskette to a linux intel machine and read it off after
> mounting it?

Everything is correct except you don't mount it. Do something like this:

   tar cvf /dev/floppy files1 files2 directory1 directory2

on the Sun and do something like this on the Linux machine:

   tar xvf /dev/floppy

Have a look at the man page on tar in the Linux machine or gtar in the
Sun
machine.

--
----------------------------------------------------------------------
Yon Han Chong                     |
Flow Control and Prediction Group | Tel: + 44 1234 750 111 ext. 5420

Cranfield University              | Fax: + 44 1234 752 149
United Kingdom                    | Mobile: + 44 958 381 395
----------------------------------------------------------------------

 
 
 

1. tar & mt command. Getting Tar:Unexpected EOF

Hello,

Am planning to append a backup in a tape (DLT). Am using tar & mt
command and i succeed somehow.I just explain my steps here  & am
getting Tar Unexpected EOF when i read or extract from the device. I
think while reading i used the mt command in wrong way

Daily night i will take the backup (the tape is always avail in Juke
Box).

For example on the first day

#mt -f /dev/rmt/0 rewind (one time only)
#tar cvf /dev/rmt/0 /data/day1.lst

on Day 2 . Wheni again mount the tape iam using mt command before
appending to the tape
Ex.
#mt -f /dev/rmt/0 fsf or should i use mt -f /dev/rmt/0 fsf 1 or 2
Then
#tar cvf /dev/rmt/0 /data/day2.lst

so i can able to take the backup no errors.

when i download

#tar tvf /dev/rmt/0
showing day1.lst
#mt -f /dev/rmt/0 fsf 1 or should i just use fsf
then #tar tvf /dev/rmt/0
Here am getting Tar:unexpected EOF

sometimes without the using the mt command i can able to read the
day1.lst also.

Please provide ur sugesstion & recommendations
Thanks to spend your time
Regards

2. Linux on Compaq LTE, any success stories?

3. getting a tar file off a tape when you've tar cf'ed first

4. svgalib wxWindows

5. tar write sun-solaris dlt tar read winnt?

6. Where's groff? Can't be found...

7. HELP, using tar; getting device error

8. NFS availability (99.999%)

9. getting good curses box chars on sun and sun-cmd terminals

10. Help with Sun tar please, How to eXclude?

11. Help! Trouble reading SUN tar archi

12. HELP - Can't read SGI TAR tapes on Sun

13. HELP: getting COLOR text in CUrses app on SUN