tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Universidade de Pelotas - Radar Meteorologico <ufpelrm () eu ! ansp ! br>
To: tru64-unix-managers
Subject: SUMARY: Recover of data on partition after disklabel
Date: Mon, 04 Mar 1996 20:54:04 +0000	[thread overview]
Message-ID: <96076330121125.tru64-unix-managers.marc@archive.invalid> (raw)

As ever, the answers came almost before the questions. Tanks!
My question was:

Is it possible to recover the data on  a disk partition that had advfs 
after a partition table cleaning (disklabel -w)?

I received wo answers.
 
From: "Craig I. Hagan" <hagan@ttgi.com>

> yes, ou will need to restore the partition table to waht it
> was before you ran disklabel -w. 

From: alan@nabeth.cxo.dec.com

>	The disklabel should only affect the first sector of the
>	disk, the one where the label is.  If you restore the
>	partition table to the one that was in affect when the
>	AdvFS was created, then it should be able to find all
>	the data.

I used disklabel -e rz3 to edit the partition table, setting it exactly 
as is was before. I changed from

  a:   131072        0    unused     1024  8192         # (Cyl.    0 - 82*)
  b:   401408   131072    unused     1024  8192         # (Cyl.   82*- 336*)
  c:  4110480        0     ADVfs                        # (Cyl.    0 - 2594)
  d:  1191936   532480    unused     1024  8192         # (Cyl.  336*- 1088*)
  e:  1191936  1724416    unused     1024  8192         # (Cyl. 1088*- 1841*)
  f:  1194128  2916352    unused     1024  8192         # (Cyl. 1841*- 2594*)
  g:  1787904   532480    unused     1024  8192         # (Cyl.  336*- 1464*)
  h:  1790096  2320384    unused     1024  8192         # (Cyl. 1464*- 2594*)

to

  a:   131072        0    unused     1024  8192         # (Cyl.    0 - 82*)
  b:   401408   131072    unused     1024  8192         # (Cyl.   82*- 336*)
  c:  4110480        0     ADVfs                        # (Cyl.    0 - 2594)
  d:  1191936   532480    unused     1024  8192         # (Cyl.  336*- 1088*)
  e:  1191936  1724416    unused     1024  8192         # (Cyl. 1088*- 1841*)
  f:  1194128  2916352    unused     1024  8192         # (Cyl. 1841*- 2594*)
  g:  1787904   532480     ADVfs                        # (Cyl.  336*- 1464*)
  h:  1790096  2320384     ADVfs     1024  8192         # (Cyl. 1464*- 2594*)

Then I made the file domains by hand:

# cd /etc/fdmns
# mkdir tmp1 tmp2
# ln -s /dev/rz3g tmp1/rz3g
# ln -s /dev/rz3h tmp2/rz3h

Thanks to all. I think this should be added to the FAQ.

====================================================================
Carlos A M dos Santos
Universidade Federal de Pelotas - Centro de Pesquisas Meteorologicas
Pelotas, RS, Brasil - Phone +55 0532 23.4788 - Fax +55 0532 23.4814
e-mail: ufpelrm@eu.ansp.br
====================================================================

                 reply	other threads:[~1996-03-04 20:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox