Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2017 23:03:51 +0800
From:      alphachi <alphachi@mediaspirit.org>
To:        "list: freebsd" <freebsd-questions@freebsd.org>
Subject:   All data in home directory lost after kernel panic
Message-ID:  <CAJN5%2BGv1bOWdcW4DB1ahTE0wTUBp=KZeKsQmh3BfcspdhFG=eQ@mail.gmail.com>
In-Reply-To: <CAJN5%2BGvgORgqvr3WSekANZeK9JFDAsJK2Jh9EGG%2B3HA9WyqiNA@mail.gmail.com>
References:  <CAJN5%2BGtkVXOWPZqEnOrJOCD=TsDNUVx8EakqWC9JsmCXnq8%2BWw@mail.gmail.com> <CAJN5%2BGtVdXkMKVmjSxu96F%2BLUrcWAgAwsVWE5h=Q27N5ZBfwaw@mail.gmail.com> <CAJN5%2BGs%2BpuXR12Thfzm4ws73ZK5mgx0wvZo2Ybf_ytZpaKZKkA@mail.gmail.com> <CAJN5%2BGtyHFPCN2XH-SP4kfBypT%2Bs9BMyvRz0nMy5h6icKhtuvQ@mail.gmail.com> <CAJN5%2BGtLwaAfLXR%2B4SKUWqrqabqWOTsDY4qB%2BMVpG2AbgC31qQ@mail.gmail.com> <CAJN5%2BGukW_y9Oa3zyy=PKqd1ZxS8-jwdMjMusE13QqbmxPjuOA@mail.gmail.com> <CAJN5%2BGsQdx=Qevf0yPH65j5dgJ46Pf0GZcv8dgR6D5Cj4OqKyA@mail.gmail.com> <CAJN5%2BGvgORgqvr3WSekANZeK9JFDAsJK2Jh9EGG%2B3HA9WyqiNA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <src_dir> <des_dir>". Should I try to use
something like "recoverdisk /dev/<geli_node> <usbmnt_dir>" firstly?

Any idea about this? Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJN5%2BGv1bOWdcW4DB1ahTE0wTUBp=KZeKsQmh3BfcspdhFG=eQ>