2

I am having a little bit of a problem expanding my file system on my Pi. I have just used Win32 to "burn" the Raspbian OS onto my 8Gb USB, which I then copied the boot files to my 2Gb SD and changed the root to root=/dev/sd2, this works perfectly fine and Rasbian boots but I have about 4.86 Gb of unallocated space on my USB. I would like to expand my file system onto the rest of my USB drive. I have tried resize2fs/dev/sda3 (sda3 being a partition I created from the unallocated) and it gives me a messaging saying that the file system is already size, which is were I am confused. So I removed the partition and have it unallocated and try the command again resize2fs /dev/sda2 and I get the same message (but with a different size). I am lost on how to expand it. I want the /dev/sd2/ to take up all of the 6 something gigs available.

I tried this but it didn't work.enter image description here

3
  • 1
    Just curious, what happens when you try and resize the partition using gparted? If the OS is on the USB stick, then its best to resize it on another PC. Possibly using the gparted boot disc or another Linux system.
    – Piotr Kula
    Jul 20, 2014 at 19:21
  • 1
    @ppumkin well good sir. This is the second problem that you have helped me fix. MANY thanks. Spent about a day trying to get the file system expanded and well, i couldn't. Anyway this worked perfect. Booted up my Linux PC I had in the corner and boom resized via Gparted. Thank you and Cheers!!
    – Rguarascia
    Jul 20, 2014 at 20:45
  • No problem at all :) This was the first time I answered a question in the comments :) Just to improve stats I will convert the comment to an answer otherwise it will stay open.
    – Piotr Kula
    Jul 20, 2014 at 21:13

1 Answer 1

2

The problem most probably exists because you are trying to resize the OS volume and it is locked.

If you have access to an Ubuntu or other Linux desktop I would suggest using gparted on another system.

You can also download a gparted live disk - Burn it and boot from it.

enter image description here

  1. If you have a swap partition on the USB then the FIRST STEP is to move it to the end of the drive
    1. Select the SWAP and click resize/move.
    2. You should be able to visually drag the partition to the far left.(make sure NOT to resize it by any mistake)
    3. Accept
  2. Click on the system partition and then again do a resize/move option.
    1. This time you will drag the right edge of the partition, to resize it, all the way to the far right side.
    2. Accept
  3. Click apply
    1. Let it do its magic ...

So once that is done put the USB Stick card in the Pi and boot it up!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.