1

Topic: cannot move partition (ext2) to the right

So I've come across a *really* frustrating problem that makes no sense to me. I'm not an absolute beginner when it comes to gparted (tho i haven't used it in a couple years), but today I feel like I know nothing. All I'm trying to do is move a partition to the right. Well, to be more accurate, I was trying to resize smaller then move to the right, but the resize worked fine. There is another partition to its left, and one to its right. However, during the move process, it apparently tries to resize it again back to its original size.

Why, oh why, does it try to resize itself? I believe this to be the cause of the problem - after moving right, it attempts to resize, thus trampling on the toes of the partition to its right, resulting in this error:

        Can't have overlapping partitions.

Huh.

Anyway, here's what I've got:

fdisk-
Disk /dev/sdb: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001044d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63    96277544    48138741    7  HPFS/NTFS
/dev/sdb2        96277545   112981032     8351744   83  Linux
/dev/sdb3       120840930   125033894     2096482+  82  Linux swap / Solaris


gparted dump-

GParted 0.8.0

Libparted 2.3
Move /dev/sdb2 to the right  00:00:06    ( ERROR )
         
calibrate /dev/sdb2  00:00:00    ( SUCCESS )
         
path: /dev/sdb2
start: 96277545
end: 112981032
size: 16703488 (7.96 GiB)
check file system on /dev/sdb2 for errors and (if possible) fix them  00:00:06    ( SUCCESS )
         
e2fsck -f -y -v /dev/sdb2
         
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

237819 inodes used (22.72%)
1604 non-contiguous files (0.7%)
307 non-contiguous directories (0.1%)
# of inodes with ind/dind/tind blocks: 9728/147/0
1422881 blocks used (68.15%)
0 bad blocks
0 large files

171145 regular files
28818 directories
61 character device files
26 block device files
0 fifos
421 links
37740 symbolic links (30613 fast symbolic links)
20 sockets
--------
238231 files
e2fsck 1.41.12 (17-May-2010)
grow partition from 7.96 GiB to 11.71 GiB  00:00:00    ( ERROR )        // here: why is it resizing?
         
old start: 96277545
old end: 112981032
old size: 16703488 (7.96 GiB)
libparted messages    ( INFO )
         
Can't have overlapping partitions. 

If I'm forgetting something completely obvious, please tell me! Thanks for your help!

2

Re: cannot move partition (ext2) to the right

The extra resize is part of the complicated move/resize process (it's one piece of code).  In your situation the last resize should be for the same size, and hence do nothing.

It looks like your partitions are cylinder aligned.  Did you try the operation using "Align to Cylinder" instead of "Align to MiB"?