Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2017 18:44:15 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Jov <amutu@amutu.com>
Cc:        alphachi <alphachi@mediaspirit.org>, freebsd-questions@freebsd.org
Subject:   Re: All data in home directory lost after kernel panic
Message-ID:  <20170614184415.3384fa67.freebsd@edvax.de>
In-Reply-To: <CADyrUxOA1sbuUicPUYLQZqHSnFK0hZPcVnSDwHtWGH-cjq9BYw@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> <CAJN5%2BGv1bOWdcW4DB1ahTE0wTUBp=KZeKsQmh3BfcspdhFG=eQ@mail.gmail.com> <CADyrUxOA1sbuUicPUYLQZqHSnFK0hZPcVnSDwHtWGH-cjq9BYw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 14 Jun 2017 23:48:54 +0800, Jov wrote:
> Hi, I have similar problem last year and get back my data at last.try the
> following steps:
> 
> Step 1:
> backup your disk using dd.
> 
> Step 2:
> run newfs -N /dev/your_partition,get all the super block numbers.chose one
> in the middle,for example 123456.
> 
> Step 3:
> run fsck_ffs -f -b 123456 /dev/your_partition.(here replace 123456 to your
> num get from step 2)
> 
> Step 4: mount the fs,check the root of the fs,there may be a lost+found
> dir,your data may be in there with some random number as dir name.


This will only work if the alternate superblock has the correct
and intact inode information, which might still be the case after
a background fsck went "too far". Then fsck should be able to
correct the inconsistencies, and a lost+found/ directory will
be created at the top of the file system's hierarchy which
will usually contain all files in their original directory
structure, but with the top level names replaced by inode
numbers; from the content, you can often recreate those names.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170614184415.3384fa67.freebsd>