*BSD News Article 12155


Return to BSD News archive

Xref: sserve comp.unix.admin:9489 comp.unix.bsd:11589 comp.unix.questions:31783
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!spool.mu.edu!uwm.edu!ogicse!usenet.ee.pdx.edu!pdxgate!steele!hillm
From: hillm@ohsu.edu (Milton Hill)
Newsgroups: comp.unix.admin,comp.unix.bsd,comp.unix.questions
Subject: help!! tar misuse ate my harddisc??
Message-ID: <1993Mar2.225448.143@ohsu.edu>
Date: 2 Mar 93 22:54:48 GMT
Article-I.D.: ohsu.1993Mar2.225448.143
Organization: Oregon Health Sciences University
Lines: 36

Well, I did it this time...
I need help-

WHAT I DID-
I wanted to backup my directory onto another local drive (/dev/sd3c).
I issued the command - rainbow# tar -cvf /dev/sd3c /home/rainbow/milt.
I remembered that I had a linked directory from dev/sd3c back to 
/home/rainbow/milt. (@$%@$#%!!!)

WHAT HAPPENED-
It appeared that tar did its thing, but when it finished there was no
tar
file on dev/sd3c. I did still have the linked directory back to /home
/rainbow/Y.

I exited to multiuser mode and tried to fsck -p /dev/sd3c.
I got the same error as above.
Now I can change to the directory that is the mount point for the disc
and an ls gives the following - 
rainbow :hillm:9 : ls -l /data
total 2
drwxr-xr-x  2 root          512 Aug  7  1992 ./
drwxr-xr-x 20 root         1024 Mar  2 13:56 ../

WHAT I WOULD LIKE TO KNOW-
1. Can I salvage the data on the disc?
2. What did I do wrong?

This is a SUn IPX with Open Windows 3.0 and SUN OS 4.1.1

Any help would be greatly appreciated.

Milt Hill
ODFW
hillm@ohsu.edu
5032296967x472