From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] Corrupted file entry on QEMU - how to recover? From: "Russ Cox" Date: Thu, 27 Dec 2007 11:23:26 -0500 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20071227212323.DDA581E8C1C@holo.morphisms.net> Topicbox-Message-UUID: 22eaf85a-ead3-11e9-9d60-3106f5b1d025 > Can someone PLEASE give me some information so I can get my files > back? Otherwise, there goes my 3D library, my hoc implementation, etc. I'm afraid you're probably out of luck, without a lot of work. The disk data structures are all described in /sys/doc/fossil.ps. If you were using snapshots, then you might be able to use the information in /sys/doc/fossil.ps to write a program to find all the fossil snapshot roots, and then you could rewrite the super block to point at an older, hopefully not corrupt, root. However, it looks like in plain fossil mode (not fossil+venti), the installer does not configure any snapshots, so you'd have had to turn them on yourself. Without snapshots, you'd have to poke around on the disk looking for a VtSource that looked like the root directory and then fix up the root block to be valid and point at it. If you're not used to poking at file system data structures, this might well be more work than just recreating your hoc and 3D code. Russ