Re-partitioning extended partition
Is it possible to re-size the extended partition without losing the
logical drives ?
I am running Debian 2.0 (slink) on a 1.6 GB HDD with the partition table
as follows:
/dev/hda1 DOS 200MB
/dev/hda2 / 150MB
/dev/hda3 /tmp 150MB
/dev/hda4 EXT
/dev/hda5 swap 64MB
/dev/hda6 /usr 400MB
/dev/hda7 /var 300MB
/dev/hda8 /home 200MB
/dev/hda9 unused 87MB
IF I understand right, when I partitioned the HDD with cfdisk, cfdisk
created the EXT partition to contain the logical partitions 5 through 9.
Now I am running out of space in the /usr partition.
I would like to make a larger /usr partition by backing up the data from
the /usr partition onto the other partitions (/home,/var,/ and the unused
space) and then chopping the /tmp partition to 100MB, the rest of the /tmp
partition (50MB) could now become the swap and then I could add the 64MB
from the old swap to /usr and then restore the data.
This would make this partition table:
/dev/hda1 DOS 200MB
/dev/hda2 / 150MB
/dev/hda3 /tmp 100MB
/dev/hda4 EXT
/dev/hda5 swap 50MB
/dev/hda6 /usr 464MB
/dev/hda7 /var 300MB
/dev/hda8 /home 200MB
/dev/hda9 unused 87MB
The thing is, now the EXT partition is larger - it has been resized. Will
this erase my data on the /var, /home and (currently) unused partitions,
since they are in the EXT partition ?
Roy
Reply to: