NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install/38841: installer blow up FreeBSD's disklabel on other DOS partitions



>  Could you (or anyone else following) please provide a vnd image of a
>  disk with a similar setup as you describe, with freebsd partition?

sorry, i can't.

I describe more in detail, hope this might help.


DOS (primary) partition #2 is where i tried to install NetBSD-4.0. DOS
(primary) partition #3/#4 have "FreeBSD 7.0-STABLE i386"/"FreeBSD 7.0-STABLE
amd64" installed respectively. Boot manager is Grub came with linux
system.

After NetBSD-4.0 installed, linux said::

-- linux's /var/log/messages --
Jun  1 12:40:16 myname kernel:  sda: sda1 < sda5 sda6 sda7 sda8 > sda2 sda3 sda4
Jun  1 12:40:16 myname kernel:  sda2: <netbsd: sda9 sda10 >
Jun  1 12:40:16 myname kernel:  sda3: <bsd:bad subpartition - ignored
Jun  1 12:40:16 myname kernel: bad subpartition - ignored
Jun  1 12:40:16 myname kernel:  >
Jun  1 12:40:16 myname kernel:  sda4: <bsd:bad subpartition - ignored
Jun  1 12:40:16 myname kernel: bad subpartition - ignored
Jun  1 12:40:16 myname kernel:  >
-- --

At this point, Grub cannot boot from neither DOS partition #3/#4.

If I remember correctly, the corrupted disklabel had 'c' and 'd'
elements were existed correctly (in means of NetBSD), other 'a', 'b',
'e' and 'f' elements were erased (not 100% sure, sorry).

After recovered label (by hands)::

-- linux's /var/log/messages --
Jun  2 21:12:13 myname kernel: Linux version 2.6.22.5-76.fc7 
(kojibuilder%xenbuilder4.fedora.phx.redhat.com@localhost) (gcc version 4.1.2 
20070502 (Red Hat 4.1.2-12)) #1 SMP Thu Aug 30 13:47:21 EDT 2007
Jun  2 21:12:14 myname kernel:  sda: sda1 < sda5 sda6 sda7 sda8 > sda2 sda3 sda4
Jun  2 21:12:14 myname kernel:  sda2: <openbsd: sda9 >
Jun  2 21:12:14 myname kernel:  sda3: <bsd: sda10 sda11 >
Jun  2 21:12:14 myname kernel:  sda4: <bsd: sda12 sda13 sda14 >
-- --

And disklabels of freebsd on DOS partition #3 (it might be same as
originally installed because of hand repair)::

---
% uname -srm
FreeBSD 7.0-STABLE i386
% disklabel -r /dev/ad4s3
# /dev/ad4s3:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a: 16777216        0    4.2BSD        0     0     0 
  c: 97675200        0    unused        0     0         # "raw" part, don't edit
  e:  8388608 16777216    4.2BSD        0     0     0 
% df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s3a    7.7G    1.3G    5.8G    18%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad4s3e    3.9G     57M    3.5G     2%    /var/data
/dev/ad4s4e     19G    1.8G     16G    10%    /usr/users
/dev/ad4s4f     62G     17G     41G    29%    /usr/local/src
---

swap is from /dev/ad4s3b..., but i forgot to recover.


regards,
matsunaw


Home | Main Index | Thread Index | Old Index