From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 4 01:59:45 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7810837B401 for ; Fri, 4 Jul 2003 01:59:45 -0700 (PDT) Received: from mail.econolodgetulsa.com (mail.econolodgetulsa.com [198.78.66.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 027C544003 for ; Fri, 4 Jul 2003 01:59:45 -0700 (PDT) (envelope-from user@mail.econolodgetulsa.com) Received: from mail (mail [198.78.66.163])h648xonW033167 for ; Fri, 4 Jul 2003 01:59:50 -0700 (PDT) (envelope-from user@mail.econolodgetulsa.com) Date: Fri, 4 Jul 2003 01:59:50 -0700 (PDT) From: Josh Brooks To: freebsd-hackers@freebsd.org Message-ID: <20030704015704.Y57224-100000@mail.econolodgetulsa.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: recovering data from a truncated vn-file possible? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2003 08:59:45 -0000 Long story short, I have a 4gig vn-backed filesystem. The file backing it is now missing the last 750megs ... I can vnconfig it, but when I fsck it I see: # fsck -y /dev/vn1 ** /dev/vn1 CANNOT READ: BLK 44109856 CONTINUE? yes THE FOLLOWING DISK SECTORS COULD NOT BE READ: 44109856, 44109857, 44109858, 44109859, ioctl (GCINFO): Inappropriate ioctl for device fsck: /dev/vn1: can't read disk label Is there anything at all I can do to get data out of this ? I know some of it (750 megs worth) is gone for good - but can I get any of the rest of it ? Presumably, when mounted, this was only 50% full ... thaks.