You could just move the data around manually and avoid all the hassle.
There's a two byte signature at the end of the boot block the preceded by
64 bytes of partition table. Your effective offsets for partition tables
in a boot block is

partiion 0 = 0x1BE -> 0x1CD
         1 = 0x1CE -> 0x1DD
         2 = 0x1DE -> 0x1ED
         3 = 0x1EE -> 0x1FD

0x1FE -> 0x1FF is typically equal to 0x55 0xAA

You can arbitrarily move each 16 byte block around, just be sure to
reference it correctly. I've never used anything (knowingly) that required
that each partition entry be in logical order (from location on
disk) but YMMV.

You'd edit your extended partitions by locating the boot block for the
extended partition. It's formatted the same (for this datum anyway).

I've always used M$ debug or Norton's diskedit to do these sorts of
changes. On a related note *I'd* like to know of any linux disk editors...
Anyone?

Joshua Jore


___SIG___
$_='while(read+STDIN,$_,2048){$a=29;$b=73;$c=142;$t=255;@t=map{$_%16or$t^=$c^=(
$m=(11,10,116,100,11,122,20,100)[$_/16%8])&110;$t^=(72, at z=(64,72,$a^=12*($_%16
-2?0:$m&17)),$b^=$_%64?12:0, at z)[$_%8]}(16..271);if((@a=unx"C*",$_)[20]&48){$h
=5;$_=unxb24,join"", at b=map{xB8,unxb8,chr($_^$a[--$h+84])}@ARGV;s/...$/1$&/;$
d=unxV,xb25,$_;$e=256|(ord$b[4])<<9|ord$b[3];$d=$d>>8^($f=$t&($d>>12^$d>>4^
$d^$d/8))<<17,$e=$e>>8^($t&($g=($q=$e>>14&7^$e)^$q*8^$q<<6))<<9,$_=$t[$_]^
(($h>>=8)+=$f+(~$g&$t))for at a[128..$#a]}print+x"C*", at a}';s/x/pack+/g;eval

On Wed, 18 Apr 2001, Simeon Johnston wrote:

> This is really bothering me.  Anyone know how to do this?
> I tried RIP and found out it won't mount the partition because it doesn't
> have the modules for it.
> I will have to install RH 7.1 or another distro to mount it and reconfigure
> it.  That sucks.
> No I don't have a boot disk.
>
> sim
>
> Simeon Johnston wrote:
>
> > I tried installing RH7.1 and all was well until I tried to delete a few
> > partitions and combine them.
> > When I recreated the partition it numbered it last instead of in the
> > order they are on the disk.  I tried to use fdisk to renumber them but
> > it wouldn't save it to the MBR.  It would show up on screen as being in
> > order but when I looked at the partitions again after writing it to disk
> > nothing had changed.
> >
> > Is there a way to renumber partitions?
> > Is there a different version of fdisk that will do this?
> > Is all hope lost for my poor MBR?
> >
> > sim
> >
> > _______________________________________________
> > tclug-list mailing list
> > tclug-list at mn-linux.org
> > https://mailman.mn-linux.org/mailman/listinfo/tclug-list
>
> _______________________________________________
> tclug-list mailing list
> tclug-list at mn-linux.org
> https://mailman.mn-linux.org/mailman/listinfo/tclug-list
>