Return to BSD News archive
Xref: sserve comp.unix.admin:16852 comp.unix.bsd:13345 comp.unix.questions:45056 Path: sserve!newshost.anu.edu.au!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!latcs1!wongm Newsgroups: comp.unix.admin,comp.unix.bsd,comp.unix.questions,comp.os.386bsd,questions Subject: HELP : How to restore files from lost+foudn directory ? [URGENT] Message-ID: <CKDA5B.3vp@latcs1.lat.oz.au> From: wongm@latcs1.lat.oz.au (M.C. Wong) Date: Sat, 29 Jan 1994 01:15:10 GMT Organization: Comp Sci, La Trobe Uni, Australia Lines: 65 Hi, I am running FreeBSD-1.0.2, and I got a problem when trying to mount and restore a backup filesystem, I knew I did the wrong thing! This was what happened (silly me) : I used to have FreeBSD-1.0 running on 486DX/33 with 2 disk drives : 1) Conner CP3544 (IDE 540MB) as wd0 2) Micropolis MC2112 (SCSI-2 1050MB) as sd0 This is my /etc/fstab : /dev/sd0a / ufs rw 1 1 /dev/sd0e /usr ufs rw 1 2 /dev/sd0f /home ufs rw 1 3 /dev/sd0b / swap sw 0 0 /dev/wd0a /mnt ufs rw 1 4 /dev/wd0e /usr/distrib ufs rw 1 5 /dev/wd0f /usr/distrib/backup/usr/local/src ufs rw 1 6 /dev/wd0h /dos pcfs rw 0 0 /dev/wd0b / swap sw 0 0 What happened was that, I backup some very important stuff, tar'ed and gzip'e d to save space, and back it up in /usr/distrib/backup/usr/local/src, ie on partition f of wd0! When I got back a new drive (exactlly the same one from my vendor), I attempt to restore the stuff, by simply mounting /dev/wd0f onto /mnt3, and the WORST thing was that I accidentally run fsck -y and leave it while I was away, and sure it screwed up all the things on that partition and create a lost+found directory on that partition, and these are the only files I got within the lost+found directory : total 3 crwx-----x 1 8643 8644 33, 213 Dec 21 1987 #00135* crwx-----x 1 8643 8644 33, 213 Dec 21 1987 #00687* br-srwS-wT 1 29810 8313 78, 32 Dec 23 06:22 #01531* d--s--S-w- 1 17217 11845 542001664 Dec 31 1969 #01548/ p-wS-wxrwt 1 159 40778 -2138988708 Jan 1 1970 #03611| b--sr--rw- 1 19583 20046 14, 18 Aug 6 08:25 #04367* b--sr--rw- 1 19583 20046 14, 18 Aug 6 08:25 #04799* drwxrwxr-x 2 root wheel 512 Jan 23 01:54 #07680/ drwxrwxr-x 3 root wheel 512 Jan 23 01:28 #09600/ drwxrwxr-x 2 root wheel 512 Jan 23 12:06 #13440/ By looking at the filenames and their attributes, I have got no idea how am I to possibly restore my backup tar'ed gzip'ed files. It was too late when I realized that I should create a full path of /usr/distrib/backup/usr/local/src/ and mount /dev/wd0f (the backup partition) there! Also, I tried to view the content of some of the above files, but there is nothing in them, and when try cd to some of those directories, it always brings me back to /! Can someone who has got experience with similar problems, or any gurus, hackers, experts, wizards, please (x10000..) shed some light on my tragedy ? Many many thanks nin advance! - wongm@latcs1.lat.oz.au (M.C Wong) -- - wongm@latcs1.lat.oz.au