On Mon, 24 Apr 2000, Gustav Schaffter wrote:

> Hi,
> 
> I have 9 partitions on my hda. Two primary and one extended. The
> extended 'contains' my six Linux partitions.
> 
> Disk /dev/hda: 255 heads, 63 sectors, 1247 cylinders
> Units = cylinders of 16065 * 512 bytes
> 
>    Device Boot Start  End  Blocks  Id  System
> /dev/hda1          2   13   96358+  6  FAT16
> /dev/hda2         14 1247 9912105   5  Extended
> /dev/hda3   *      1    1    8001   a  OS/2 Boot Manager
> /dev/hda5         14   16   24066  83  Linux
> /dev/hda6         17  341 2610531  83  Linux
> /dev/hda7        342  666 2610531  83  Linux
> /dev/hda8        667  928 2104483+ 83  Linux
> /dev/hda9        929  944  128488+ 82  Linux swap
> /dev/hda10       945 1247 2433816  83  Linux
> 
> I'd like to remove one of the existing partitions (hda8) and replace it
> with a new partition, a lot smaller than the existing one plus one
> entirely new partition. This would logically split the existing
> partition in two new partitions.
> 
> I use fdisk (and so far I haven't saved anything, since it doesn't do
> what I'd expected it to do.)
> 
> I can delete hda8. When I print the remainder, I can see that hda9 has
> been renumbered to hda8 and hda10 has become hda9. (!!)
> 
> Is this working as expected?
> 
> 
> To verify the above, I then created a new hda8 with the same start (667)
> and end (928). This new partition became hda10. (!!)
> 
> Is this working as expected?
> 
> 
> So what I'm facing here is that I have to delete hda8 and accept that
> hda9 becomes hda8 plus that hda10 becomes hda9. I can then recreate two
> new partitions within the range of 667 - 928 and they will become hda10
> plus hda11. From there, I'd have to make the equvalent changes to my
> /etc/fstab.
> 
> Is this working as expected?
> 
> 
> I just want to check before I save and exit fdisk. ;-) I'm sure you
> understand why. :-)

yes, this is a nuisance, but you can get around it by labelling
your filesystems (man e2label) and mounting, thru /etc/fstab,
using those labels, rather than the actual partition names.
the exact syntax escapes me at the moment, but this gets around
the problem of having your filesystem /dev names changing
when you re-partition.  unless i misremember badly.

rday


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to