shrinking a partition with parted
Posted on 2006-05-13
I want to shrink a linux ext3 partition and use the new space for a fat32 partition.
So I downloaded a linux CD.
I boot with the CD, and ran parted off the CD.
I typed "print". The logical partition in question goes from 23GB to 39GB. It is partition number 6, ext3.
I have about 4.5 GB of data on the partition.
I typed "resize 6 23GB 30GB".
The system does a bunch of work and eventually finishes and gives me a parted prompt.
I type "print" -- there is no change in the table. (Why not?)
I type "mkpts fat32 30GB 39GB". It asks if I want a logical/primary partition. I say logical. It asks for the 30GB and 39GB numbers again -- which is strange. It then says that I cannot have overlapping partitions.
It, of course, says this because the old partition still seems to have the same size. Did I miss something? What am I doing wrong -- or what step did I miss? Do I have to delete the old partition? I'd prefer not to screw over my linux partition.