Subject: Re: MBR games
To: Christopher A. Kantarjiev <cak@dimebank.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-amd64
Date: 10/18/2005 21:18:53
On Tue, Oct 18, 2005 at 09:21:53AM -0700, Christopher A. Kantarjiev wrote:
> when I set up one of my netbsd x64 machines, I used some tool to partition
> the
> disk via the MBR into two halves, thinking I'd also load openbsd.
>
> Now I want to use that disk space for netbsd, but I can't figure out what
> tool
> to use to get me the rest of the disk. mbrlabel seems willing to add a new
> 'i'
> partition for the unused space - is that enough to do the trick? That would
> be
> OK with me, though the 'right' thing would be to combine h and i. Not very
> important, though.
>
[...]
> c: 163846872 63 unused 0 0 # (Cyl. 0*-
> 162546*)
> d: 321672960 0 unused 0 0 # (Cyl. 0 -
> 319119)
> e: 16778160 4260879 4.2BSD 1024 8192 46608 # (Cyl. 4227*-
> 20872*)
> f: 66528 21039039 4.2BSD 1024 8192 8320 # (Cyl. 20872*-
> 20938*)
> g: 2097648 21105567 4.2BSD 1024 8192 45608 # (Cyl. 20938*-
> 23019*)
> h: 140643720 23203215 4.2BSD 1024 8192 46640 # (Cyl. 23019*-
> 162546*)
> i: 157812106 163846935 unknown # (Cyl. 162546*-
> 319106*)
>
> Not updating disk label.
You could just do 'fdisk -u wd0', remove the second partition and extent
the first one to the end of the disk. Then use 'disklabel -i wd0' to
correct the entry for c, and extend h.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--