From owner-freebsd-questions@freebsd.org Wed Jun 14 15:03:53 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73325D8FE8A for ; Wed, 14 Jun 2017 15:03:53 +0000 (UTC) (envelope-from alphachi@mediaspirit.org) Received: from mail-ot0-x22b.google.com (mail-ot0-x22b.google.com [IPv6:2607:f8b0:4003:c0f::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A7E3673AD for ; Wed, 14 Jun 2017 15:03:53 +0000 (UTC) (envelope-from alphachi@mediaspirit.org) Received: by mail-ot0-x22b.google.com with SMTP id r67so2560974ota.1 for ; Wed, 14 Jun 2017 08:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mediaspirit-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Nq0pRm57zfQ4gOLdUxItz4FCwHALlTRluXZKTQ4PHkg=; b=Wv4r1acxZQv9n8cbAOtkIaFhc7KBSqo1n9AYjTt+WEP73qDzqv+FCTmcttsB+JgoDC VWwXFkItBhNMynn0g6M1JIufsFvr535i/rjG4bcF+NEoMWomdoWP4wgxaRzbZcSnTt0o 3JLU8vCl7O00AdOI92KHnxUICgfF5HThiwJbeapMnbTgv/FfzpKY23TX6i9Z09ybCW/u BWY/xrPJVhz4N4yyqq7KzqOTQfChPq2ihhGxT0aXJpwOqVYN8e9TllBqfg04SQ0cOzbV fb372fOxERrMtul2JDJQdANjIc6SnjKMI4qVy3fh3DBKHytPPR8XuF5dBZrelqCePj+B Ia4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Nq0pRm57zfQ4gOLdUxItz4FCwHALlTRluXZKTQ4PHkg=; b=I+5PAnzdsLpeDsUaTJU1sq3kzDscgo5YWOcEBmmceReHgoRcp6HBCkZREyIEfPJxx9 70vouulh4cf1qgSEqaICaP5MdMT8iBHFoWppWQGJvOz7QFRVcB0d4LjsZ2sIM5WJ0JPP uqcpM8MfuelBzKereydukQmNKXYW95Oyhw+QcWBulHGHjpk7M3nnoAipA0xMK7dMErSa XrQOpl5VZ/8QVg3ZFmVu67Wftp4/ooPzWII6InfSfQV2w/2lKyU4hPZ/VRD7p/chZ6cm Pc+AdQ82yvvOpa8sn2n0XvW+DUYAqBKBlPM766VuyTkjXajHvZd9F0rNx605/tQhBa0F 1uHw== X-Gm-Message-State: AKS2vOxzVL/ZR0CtEY61wgTXv5xfcYdJEeEMAqYg86sAx746wu/N4hGs bY1Ip0YrQpuMoVD7qWftHzINObYv1mXz X-Received: by 10.157.9.208 with SMTP id 16mr477207otz.245.1497452632104; Wed, 14 Jun 2017 08:03:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.130.84 with HTTP; Wed, 14 Jun 2017 08:03:51 -0700 (PDT) Received: by 10.74.130.84 with HTTP; Wed, 14 Jun 2017 08:03:51 -0700 (PDT) In-Reply-To: References: From: alphachi Date: Wed, 14 Jun 2017 23:03:51 +0800 Message-ID: Subject: All data in home directory lost after kernel panic To: "list: freebsd" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2017 15:03:53 -0000 Today I upgraded my system to 10.3-STABLE r319937 successfully. It's installed on UFS with GELI. When I double-click a VM in virtualbox, the system reboots because of a kernel panic. After autofsck, the login prompt shows, but the system reboots again while I input my login imformation and press Enter. I have to boot single user mode and run fsck manually, then login as root. Everything is fine, however I suddenly find all data in my home directory disappeared; that is to say, my home directory is empty. I think my data still exists on the disk and this is just the problem about filesystem, because: 1. The total size of my home directory is about 132GB before. When I check the output of "df -h" now, the value of "Used" is still about 132GB. 2. The operation of user login shouldn't cause a kernel panic, even though the home directory is empty. 3. "ls -a /home/fbsd" hasn't any output, but normally it should output . and .. at least. I try to use recoverdisk(1) to recover a file that I can remember its name. For example: # recoverdisk /home/fbsd/.zshrc .zshrc Bigsize = 1048576, medsize = 32768, minsize = 512 start size block-len state done remaining % done 0 4220 4220 0 4220 0 100.00000 Completed Although I checked this file and confirmed the recovery is successful, I can't recover all data by this way since it's impossible to remember all filenames. As far as I know, recoverdisk(1) doesn't support directory recovery like "recoverdisk ". Should I try to use something like "recoverdisk /dev/ " firstly? Any idea about this? Thanks!