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
The following reply was made to PR install/38841; it has been noted by GNATS.
From: David Holland <dholland-bugs%netbsd.org@localhost>
To: matsunaw%ja2.so-net.ne.jp@localhost
Cc: gnats-bugs%NetBSD.org@localhost, install-manager%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: install/38841: installer blow up FreeBSD's disklabel on other
DOS partitions
Date: Sun, 22 Jun 2008 22:27:08 +0000
On Thu, Jun 12, 2008 at 09:39:43AM +0900, matsunaw%ja2.so-net.ne.jp@localhost
wrote:
> > The chief cause of problems like this is accidentally mistyping
> > partition sizes or offsets. Then you get overlapping partitions and
> > things get overwritten.
> >
> > Can you post the fdisk table and the other disklabels?
>
> [...]
> Disk /dev/ad4: 250.0 GB, 250059350016 bytes
> 255 heads, 63 sectors/track, 30401 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/ad4s1 1 6080 48837568+ 5 Extended
> /dev/ad4s2 6081 12160 48837600 a6 OpenBSD
> /dev/ad4s3 * 12161 18240 48837600 a5 FreeBSD
> /dev/ad4s4 18241 30401 97683232+ a5 FreeBSD
> /dev/ad4s5 1 33 265009+ 83 Linux
> /dev/ad4s6 34 3925 31262458+ 83 Linux
> /dev/ad4s7 3926 6014 16779861 83 Linux
> /dev/ad4s8 6015 6080 530113+ 82 Linux swap
Unless you tell this to print in sectors it's impossible to tell if
the partition boundaries are correct. (And since the partition tables
aren't the same as they were when things failed, looking at them now
won't necessarily prove anything anyway.)
Also, I don't think you've explained why ad4s2 has been changed to
OpenBSD.
> % disklabel -r /dev/ad4s2
> # /dev/ad4s2:
> 8 partitions:
> # size offset fstype [fsize bsize bps/cpg]
> a: 16778160 97675200 4.2BSD 0 0 1
> b: 2097270 114453360 swap
> c: 488397168 0 unused 0 0 # "raw" part,
don't edit
> e: 16778160 116550630 4.2BSD 0 0 1
> partition a: partition extends past end of unit
> partition b: offset past end of unit
> partition b: partition extends past end of unit
> partition c: partition extends past end of unit
> disklabel: partition c doesn't cover the whole unit!
> disklabel: An incorrect partition c may cause problems for standard system
utilities
> partition e: offset past end of unit
> partition e: partition extends past end of unit
If this is really a NetBSD disklabel, printing it with NetBSD's
disklabel utility will be much more likely to produce useful results.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index