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_at_ttgi.com>
> yes, ou will need to restore the partition table to waht it
> was before you ran disklabel -w.
From: alan_at_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_at_eu.ansp.br
====================================================================
Received on Mon Mar 04 1996 - 21:25:31 NZDT