Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2018 18:43:06 +0000
From:      "Jean M. Vandette" <jmvandette@securenet.net>
To:        Erich Dollansky <freebsd.ed.lists@sumeritec.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   RE: gpart recovery FreeBSD 7.4
Message-ID:  <3856200b233947ca939e1c5ffa152661@securenet.net>
In-Reply-To: <20180331204056.619965d1.freebsd.ed.lists@sumeritec.com>
References:  <6b89534c97b14e51b67581e34efac71c@securenet.net> <20180330221523.0b5f8fdd.freebsd.ed.lists@sumeritec.com> <a1ad4c0f59e240e4a87d5feb0dcc9344@securenet.net> <20180331070140.00a1b6fa.freebsd.ed.lists@sumeritec.com> <aab034b9617b42dcb4cf74dc6811dec3@securenet.net> <20180331204056.619965d1.freebsd.ed.lists@sumeritec.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Erich

I used the recoverdisk
root@central:/ # recoverdisk /dev/gpt/root /mnt2/root.img
Bigsize =3D 1048576, medsize =3D 32768, minsize =3D 512
   start               size            block-len state          done     re=
maining    % done
   1072693248 1048576       1048576     0    1073741824             0 100.0=
0000
Completed
root@central:/ # recoverdisk /dev/gpt/var /mnt2/var.img
Bigsize =3D 1048576, medsize =3D 32768, minsize =3D 512
        start    size     block-len                state          done     =
remaining    % done
  42948624384 1048576       1048576     0   42949672960             0 100.0=
0000
Completed

I did newfs on the boot then it mounted seems it does not recognize the
formatting of the partitions, I don't know if there is a way of making  the
machine think they are formatted without actually doing it. This disk used
ufs1 not ufs2 I also tried fsdump but it barked about not finding the super=
blocks
either.  When I did newfs -N -O1 on the root partition the results for supe=
rblocks
are very different
192, 524544, 1048896, 1573248 ufs2

64, 520256, 1040448, 1560640, 2080832 ufs1

also did dd  of one file system to a file but
I don't have other mount points ie disks to make copy.
the recoverydisk with state 0 says it encountered no errors so it is seeing
the data (I presume) just it is a binary file it seems.  Now is the data us=
able is another
question.  Using more or less I see a lot of binary gibberish so far.

I don't know if there is a way to write the superblock information without =
losing all the data
if you or anyone knows I would appreciate the procedure.
Did it once before or should say my mentor did it back on 3.1 and then was =
able to fsck and mount the
data.


Regards

Jean M. Vandette


SecureNet Information Services
Net-Vu Television Distribution
Divisions 159272 Canada Inc.
283-100 Alexis Nihon Blvd
St Laurent, Quebec H4M 2N7
514-744-4242
800-469-7774
514-744-1552 Fax

IMPORTANT:
Les informations contenues au pr=E9sent courriel ainsi que dans tout docume=
nt annex=E9 sont de nature privil=E9gi=E9e et confidentielle et ne peuvent =
=EAtre utilis=E9es que par la ou les personnes ou entit=E9s dont le nom par=
a=EEt ci-dessus. Si le lecteur du pr=E9sent message n'est pas le destinatai=
re pr=E9vu ou n'a pas =E9t=E9 mis en copie, il est par les pr=E9sentes pri=
=E9 de noter qu'il est strictement interdit de divulguer, de distribuer de =
copier ou d'utiliser de quelconque fa=E7on ce message ou ses annexes. Si ce=
ux-ci vous ont =E9t=E9 transmis par m=E9garde, veuillez les effacer et nous=
 en aviser imm=E9diatement.

This E-mail along with its attachments, if any, contain privileged and conf=
idential information intended only for the use of the individuals or entiti=
es named above. Any dissemination, distribution, copying or use of the same=
 by anyone other than the intended recipients is strictly prohibited. If yo=
u have received this communication in error, please delete both E-mail and =
attachments and notify us immediately.


-----Original Message-----
From: Erich Dollansky [mailto:freebsd.ed.lists@sumeritec.com]
Sent: Saturday, March 31, 2018 8:41 AM
To: Jean M. Vandette <jmvandette@securenet.net>
Cc: freebsd-questions@freebsd.org
Subject: Re: gpart recovery FreeBSD 7.4

Hi,

On Fri, 30 Mar 2018 23:34:08 +0000
"Jean M. Vandette" <jmvandette@securenet.net> wrote:

> Well I booted on 11.1 and the entire disk disappeared
> Since I had the layout I was able to add the partitions
> back but still cannot fsck or mount anything.  I did not
> newfs the partitions.  So data should be still there... just need to
> get to it.

did you make a copy of the crucial parts of the media with dd or one of
its friends?

I tried the recoverdisk utility

>
> The layout seems to have changed however see below:

Could it be that either GPT entries are faulty or the disk is dying and
reports now a smaller size? Ok, a smaller size will result in a
different behaviour.

If you know the original layout, you should be able to read the GPT
tables and compare them with what they should be. If you have the copy,
just edit them with the values you want. When the values match, the
partitions suddenly appear.

I know, this is real hard core.

Erich
?
-------------------------------

Checked by AVG. Version: 16.0.8039 / Virus Database: 4793/15529 - Release D=
ate: Sat Mar 31 09:04:00 2018.
The message does not contain any threats.
-------------------------------



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