I have a hard drive with 4 partitions(c,d,e,f) and I want to shrink partition (e) and then extend partition (c) with the shrunk free space. What will happen with the hard drive? Will the Cylinders/sectors be moved??
Nothing interesting happens physically – the OS just reads data from one place and writes it back to another place.
- The filesystem shrinker finds all files which are currently stored outside the planned new boundary and copies their data to a more suitable location.
- Once the filesystem reports that the area is free, the whole partition is shrunk by simply adjusting its "end" position.
(Note that most systems don't care at all about physical divisions like cylinders or platters – they work with plain block numbers (LBAs) and let the drive itself figure it out. That way everything works the same with HDDs, SSDs, DVDs...)