Subject: Re: How to restore disk from NetBSD (i386)
To: Wojciech Puchar <wojtek@chylonia.3miasto.net>
From: Franck MAHE <Franck.MAHE@civis.net>
List: netbsd-users
Date: 08/07/2002 22:22:24
Hello,

I made the first step. Here is the last daily report for the FS:
/dev/sd1a     1994641  1365918   528990    72%    /home

Now, the result of dumpfs /dev/sd1a

[root@azrael root]$ dumpfs /dev/sd1a | more
endian  big-endian
magic   11954   time    Wed Jul 31 10:19:33 2002
cylgrp  dynamic inodes  4.4BSD  fslevel 3       softdep disabled
nbfree  156159  ndir    2334    nifree  475699  nffree  4068
ncg     403     ncyl    6445    size    2062368 blocks  1994641
bsize   4096    shift   12      mask    0xfffff000
fsize   1024    shift   10      mask    0xfffffc00
frag    4       shift   2       fsbtodb 1
cpg     16      bpg     1280    fpg     5120    ipg     1248
minfree 5%      optim   time    maxcontig 16    maxbpg  1024
rotdelay 0ms    headswitch 0us  trackseek 0us   rps     60
ntrak   20      nsect   32      npsect  32      spc     640
symlinklen 60   trackskew 0     interleave 1    contigsumsize 16
maxfilesize 0x000004010040bfff
nindir  1024    inopb   32      nspf    2
sblkno  16      cblkno  24      iblkno  28      dblkno  184
sbsize  2048    cgsize  2048    offset  16      mask    0xffffffe0
csaddr  184     cssize  7168    shift   8       mask    0xffffff00
cgrotor -385875968      fmod    0       ronly   0       clean   0x02
blocks available in each of 1 rotational positions
cylinder number 0:
   position 0:      0    1    2    3    4    5    6    7    8    9   10  =
 11
                   12   13   14   15   16   17   18   19   20   21   22  =
 23
                   24   25   26   27   28   29   30   31   32   33   34  =
 35
                   36   37   38   39   40   41   42   43   44   45   46  =
 47
                   48   49   50   51   52   53   54   55   56   57   58  =
 59
                   60   61   62   63   64   65   66   67   68   69   70  =
 71
                   72   73   74   75   76   77   78   79
cs[].cs_(nbfree,ndir,nifree,nffree):
        (1068,7,1189,18) (978,7,1181,3) (1179,7,1215,6) (996,7,1224,5)=20
        (1166,7,1233,4) (0,7,1213,2) (833,6,1216,6) (1183,6,1229,7)=20
        (1223,6,1228,8) (1103,1,1161,3) (493,7,1214,2) (978,7,1206,4)=20
        (1225,6,1217,2) (1072,6,1218,5) (941,6,1217,9) (1222,6,1231,4)=20
        (1209,6,1194,5) (1085,7,1176,6) (1227,7,1217,5) (1235,1,1010,0)=20
        (1199,6,1176,6) (1202,7,1188,2) (1196,7,1226,5) (1034,5,1179,2)=20
        (861,2,69,5) (0,2,100,0) (954,7,1226,3) (79,2,706,38)=20
        (195,4,1178,27) (583,7,1185,8) (5,7,1227,40) (0,6,801,208)=20
        (0,7,1228,8) (993,7,1218,5) (144,7,1223,53) (1022,6,1221,9)=20
        (999,6,1235,7) (1025,2,1100,0) (1019,6,1209,8) (1023,3,1169,1)=20
line 1=20

Could U help me more?

Thanks

Franck
----- Original Message -----=20
From: "Wojciech Puchar" <wojtek@chylonia.3miasto.net>
To: "Franck MAHE" <Franck.MAHE@civis.net>
Cc: <netbsd-users@netbsd.org>
Sent: Wednesday, August 07, 2002 9:19 PM
Subject: Re: How to restore disk from NetBSD (i386)


> >
> > One of my SCSI Disk (DATA) was installed on NetBSD 1.5.2 (i386) but =
my system crash (System Disk Failure).
> >
> > I tried to attach data disk on my Apollo 400, and mount it, but the =
system told me that the disk has no label. Do U have a clue. I have no =
backup of the disklabel for this disk.
> >
>=20
> is apollo 400 non-i386 arch? possibly disklabel are in different =
format.
> try attaching to x86 machine
>=20
> or
>=20
> dd if=3D/dev/rsd<something>d of=3Dsave bs=3D4k count=3D1 (to save =
header)
>=20
> disklabel -I -i sd<something>
>=20
> create first partition a beginning from 0 to end of disk.
>=20
> then use dumpfs to check size of filesystem
>=20
> then reedit disklabel (disklabel -i sd<something>)
> reeding a partition to match size, make e partition just after a to =
the
> end of disk, save and repeat dumpfs step, then (if it's still ffs) =
reedit
> disklabel etc....
>=20
>=20
> should work if partitions were made without any tricks