home | list info | list archive | date index | thread index

[OCLUG-Tech] Partition renumbering ??

Hi;

I want to renumber my partitions with fdisk -- I think -- but I would
like to double check with someone before I blow everything up.

I use Fedora which has a fresh install about every six months.  I am
getting things cleaned up ready for installing Fedora 9.  A couple of
versions ago Fedora wanted to install LVM.  I fought it off valiantly,
but ended up with  
]# fdisk /dev/sdb

Command (m for help): p

Disk /dev/sdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3bd704c9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               2        4998    40138402+   f  W95 Ext'd (LBA)
/dev/sdb5   *           2          11       80293+  83  Linux
/dev/sdb6              12         164     1228941   82  Linux swap /
Solaris
/dev/sdb7             165        1184     8193118+  83  Linux
/dev/sdb8            1185        3723    20394486   83  Linux
/dev/sdb9            3724        4998    10241406    b  W95 FAT32

You will notice sdb1 jumps to sdb5.  This has worked fine for two or
three subsequent versions.  But the time has now come to correct the
partition number (for neatness if nothing else) before installing Fedora
9.

fdisk, x, p prints the following:
Disk /dev/sdb: 255 heads, 63 sectors, 4998 cylinders

Nr AF  Hd Sec  Cyl  Hd Sec  Cyl     Start      Size ID
 1 00   0   1    1 254  63 1023      16065   80276805 0f
 2 00   0   0    0   0   0    0          0          0 00
 3 00   0   0    0   0   0    0          0          0 00
 4 00   0   0    0   0   0    0          0          0 00
 5 80   1   1    1 254  63   10         63     160587 83
 6 00   1   1   11 254  63  163         63    2457882 82
 7 00   1   1  164 254  63 1023         63   16386237 83
 8 00 254  63 1023 254  63 1023         63   40788972 83
 9 00   1   1 1023 254  63 1023         63   20482812 0b

I would like to remove partitions 2,3 and 4 and renumber using fdisk x,
f.

I would do it from a rescue disk.

Is this the proper way to go about doing this; and if so, how would I
delete partitions 2,3 and 4?


-- 
Regards Bill