Date: Thu, 5 Apr 2018 16:33:23 +0800 From: Erich Dollansky <freebsd.ed.lists@sumeritec.com> To: "Jean M. Vandette" <jmvandette@securenet.net> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: gpart recovery FreeBSD 7.4 Message-ID: <20180405163323.6d609aac.freebsd.ed.lists@sumeritec.com> In-Reply-To: <b6a6d431f75e4e44982b6335ce40ff8c@securenet.net> 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> <3856200b233947ca939e1c5ffa152661@securenet.net> <20180402115102.08679f26.freebsd.ed.lists@sumeritec.com> <b6a6d431f75e4e44982b6335ce40ff8c@securenet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Tue, 3 Apr 2018 04:14:01 +0000 "Jean M. Vandette" <jmvandette@securenet.net> wrote: > Erich > > Found an old post on partition repair > > https://forums.freebsd.org/threads/partition-repair.5869/ > > Got the scan_ffs an here are the results: > > root@central:~ # scan_ffs -l /dev/mfid0 > X: 2097152 9786530 4.2BSD 2048 16384 0 # / > X: 2097152 9787042 4.2BSD 2048 16384 0 # / > X: 4194304 12232866 4.2BSD 2048 16384 0 # /tmp > X: 41943040 17126306 4.2BSD 2048 16384 0 # /usr > X: 42068388 17126818 4.2BSD 2048 13350 0 # /usr > X: 62914560 66061474 4.2BSD 2048 16384 0 # /usr/local > X: 83886080 139462050 4.2BSD 2048 16384 0 # /var > X: 1258291200 237328290 4.2BSD 2048 16384 0 # /usr/local/system > X: 21973958460 1705333922 4.2BSD 2048 16384 0 # /usr/local/storage > X: 21973958460 1705334434 4.2BSD 2048 16384 0 # /usr/local/storage > > The gpart show is > > => 40 27341619120 mfid0 GPT (13T) > 40 128 1 freebsd-boot (64K) > 168 8388602 2 freebsd-swap (4.0G) > 8388770 2097152 3 freebsd-ufs (1.0G) > 10485922 4194304 4 freebsd-ufs (2.0G) > 14680226 41943040 5 freebsd-ufs (20G) > 56623266 62914560 6 freebsd-ufs (30G) > 119537826 83886080 7 freebsd-ufs (40G) > 203423906 1258291200 8 freebsd-ufs (600G) > 1461715106 25879904054 9 freebsd-ufs (12T) > > It seems to differ from the scan of the file system > > Your thoughts? it is more your thoughts. Does this sound reasonable for you? This program did actually what I suggested to be done manually. It all is a dangerous thing if you are not able to save at least the crucial sectors via dd. Gpart actually shows you at the least the starting sectors (blocks) of each partition. If you would save at least always some MB starting there, you will have a chance later to fix things in case of. Erich
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180405163323.6d609aac.freebsd.ed.lists>