Page 1 of 1

Can't resize my primary Linux partition

Posted: Wed Jun 06, 2012 8:55 am
by BlowingRaspberries
Hi, folks. Bit of a newbie question but I'm having trouble resizing my Pi's main Linux partition so I can make the most of my 16GB card (it's currently using just 2GB).

I tried good old gparted but it won't allow me to increase the size of the partition at all.

What is the bet method to increase the partition to use the maximum free space?

Thanks in advance.

Re: Can't resize my primary Linux partition

Posted: Wed Jun 06, 2012 9:15 am
by markb
I've had the same problem - I can move the swap space to the end of the card, but cant resize the main partition. I'm using a boot CD and I wonder if the fact that it creates an image in memory to work from is the problem - there's not enough working space for gparted to do it's stuff? I don't have a pernament bookable linux image to try out

Re: Can't resize my primary Linux partition

Posted: Wed Jun 06, 2012 9:32 am
by bredman
See the end of this page for instructions on how to resize partitions
http://elinux.org/RPi_Easy_SD_Card_Setup

The June edition of the MagPi magazine also gives a very detailed description
www.themagpi.com

Re: Can't resize my primary Linux partition

Posted: Wed Jun 06, 2012 9:48 am
by grumpyoldgit
Just to emphasise that you can't use gparted to resize the partition you are booted onto. You need to take out the SD card and use gparted from a different Linux computer, use the in-situ method referred to above, or download gparted live, which can be burned to a cd. With this method you can use a Windows or Mac computer as you will be booting into the gparted live CD.

Re: Can't resize my primary Linux partition

Posted: Wed Jun 06, 2012 10:58 am
by markb
grumpyoldgit wrote:Just to emphasise that you can't use gparted to resize the partition you are booted onto. You need to take out the SD card and use gparted from a different Linux computer, use the in-situ method referred to above, or download gparted live, which can be burned to a cd. With this method you can use a Windows or Mac computer as you will be booting into the gparted live CD.
That is exactly what I'm doing, but it wont let me increase the size of the main linux partition.

Re: Can't resize my primary Linux partition

Posted: Wed Jun 06, 2012 11:04 am
by grumpyoldgit
markb wrote:
grumpyoldgit wrote:Just to emphasise that you can't use gparted to resize the partition you are booted onto. You need to take out the SD card and use gparted from a different Linux computer, use the in-situ method referred to above, or download gparted live, which can be burned to a cd. With this method you can use a Windows or Mac computer as you will be booting into the gparted live CD.
That is exactly what I'm doing, but it wont let me increase the size of the main linux partition.
I've found the best thing to start with is to drag the swapfile to the end of the card. If the swapfile is sat in the way you won't be able to change the size of the Linux partition.

Re: Can't resize my primary Linux partition

Posted: Wed Jun 06, 2012 11:11 am
by RussIT
you will need to unmount the main partition before resizing it

Re: Can't resize my primary Linux partition

Posted: Wed Jun 06, 2012 11:27 am
by markb
grumpyoldgit wrote:
markb wrote:
grumpyoldgit wrote:Just to emphasise that you can't use gparted to resize the partition you are booted onto. You need to take out the SD card and use gparted from a different Linux computer, use the in-situ method referred to above, or download gparted live, which can be burned to a cd. With this method you can use a Windows or Mac computer as you will be booting into the gparted live CD.
That is exactly what I'm doing, but it wont let me increase the size of the main linux partition.
I've found the best thing to start with is to drag the swapfile to the end of the card. If the swapfile is sat in the way you won't be able to change the size of the Linux partition.
That's what I did.

Re: Can't resize my primary Linux partition

Posted: Wed Jun 06, 2012 11:36 am
by BlowingRaspberries
Thanks guys - used the instructions here with the CD card in the Pi.

http://elinux.org/RPi_Easy_SD_Card_Setup

It worked! Now using the whole card.

Re: Can't resize my primary Linux partition

Posted: Wed Jun 06, 2012 3:38 pm
by markb
when I load out gparted the main linux partition has a warning triangle next to it, and the program says it cant read the the boot sector, or something like that.

Re: Can't resize my primary Linux partition

Posted: Thu Jun 07, 2012 6:09 am
by markb
problem sorted. It appears I was using an old version of gparted that didn't recognise the debian image. I downloaded the latest puppy iso and booted that from a DVD. the main partition is now over 7GB.