Subject: Re: an fdisk that supports extended partitions
To: Pavel Cahyna <pavel.cahyna@st.mff.cuni.cz>
From: Quentin Garnier <netbsd-port-i386@quatriemek.com>
List: port-i386
Date: 01/30/2003 19:51:39
Le Thu, 30 Jan 2003 19:25:39 +0100
Pavel Cahyna a écrit :
> > ?       print this menu
> > C       make partitions contiguous
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> that doesn't do what I expect:
> 
> partition> P
> 16 partitions:
> #        size    offset     fstype  [fsize bsize cpg/sgs]
>  a:   1804768        32     4.2BSD   1024  8192   114   # (Cyl.    0*-
[...]
> partition> b
> Filesystem type [?] [unused]: swap
> Start offset [0c, 0s, 0M]: 
> Partition size ('$' for all remaining) [0c, 0s, 0M]: $
>  b:   2074880   1804800       swap                      # (Cyl. 2400 -
>  5159*)
> 
> 
> I want the newly created parition (b) to begin where the previous
> partition (a) ends. Fdisk does that, at least David's improved version.
> 
> BTW, I don't understand what the "C" command is supposed to do.

Well, offset for b is correct here : 32 + sizeof(a). Size, OTOH, is not.
Maybe a bug when expanding the '$' value, since the offset entered was 0 ?

-- 
Quentin Garnier - cube@cubidou.net
"Feels like I'm fiddling while Rome is burning down.
Should I lay my fiddle down and take a rifle from the ground ?"
Leigh Nash/Sixpence None The Richer, Paralyzed, Divine Discontents, 2002.