You are not logged in.

#1 2012-08-06 15:34:23

broi
Member
From: Bosnia & Herzegovina
Registered: 2011-12-10
Posts: 127

Got two unallocated spaces on same HD after shrinking

Before shrinking it looked like this:

/dev/sda1 ntfs         # Windows XP            about 24gb
/dev/sda2 ext4     # root            15gb
/dev/sda3 ext4        # home            36 gb
/dev/sda4 swap    # swap            500mb

then I realized my swap partition is too small so I shrinked /dev/sda1 down and tried to fill /dev/sda4 (my swap part.) with unallocated space, but I couldn't, because maximum size of current swap part is 500mb!
Then I deleted my swap partition hoping current unallocated space and space left from deleting it will join, so I can create single partition for swap, but I couldnt do even that!
Now I got two unallocated spaces. If I try to make something with 1st one, it's limit is 1gb while I cant shirk it up with rest of unallocated space and vice versa.

/dev/sda1 ntfs         # Windows XP             about 22gb
unallocated                        about 1gb
/dev/sda2 ext4     # root            15gb
/dev/sda3 ext4        # home            36 gb
unallocated        #                 500mb

I used GParted.

Last edited by broi (2012-08-06 15:38:13)

Offline

#2 2012-08-06 16:48:26

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Got two unallocated spaces on same HD after shrinking

You need to read the GParted manual: http://www.gparted.org/display-doc.php? … ual&lang=C
And the wiki on partitioning: https://wiki.archlinux.org/index.php/Partitioning

I think I know what you did wrong, but your explanation is not clear. "couldn't even do that!" is not a clear explanation of what error you received, and you don't seem to understand how partitions work -- they're linear, so deleting your swap (sda4) doesn't magically make any other partitions bigger, it just leaves unallocated space where sda4 was. You can grow sda3 into the space, or move sda3 and leave space on the other side of it, but that's all. When you shrank the windows partition and left space between it and sda2, you then had only two options: grow sda2 into the unallocated space, or move sda2 into the space, leaving the unallocated space after sda2.

And why did you think your swap partition was to small? How much memory do you have? Many people don't even use swap partitions.

Last edited by 2ManyDogs (2012-08-06 16:52:44)

Offline

#3 2012-08-06 19:24:22

broi
Member
From: Bosnia & Herzegovina
Registered: 2011-12-10
Posts: 127

Re: Got two unallocated spaces on same HD after shrinking

OK I see, my knowledge about partitioning isn't enough to fix this so I will read links you mentoined and then try to fix it.
Thanks.

btw. I've got only 512mb of memory.

Offline

Board footer

Powered by FluxBB