Page 1 of 1

Partitioning on micro sd cards for B+

Posted: Fri Jan 02, 2015 4:40 pm
by shingster
HI

im trying to run a OS on my raspberry pi B+

I installed the image file of the OS that im using on to my micro sd card and i noticed that my sd card has been reduced in size due to partitioning.

So next i used gparted to increase the partion size but after doing all the resizing i noticed that nothing has changed when i loaded the card up again

Did i miss anything or something ?

Im using a 32GB Micro sd card btw

Re: Partitioning on micro sd cards for B+

Posted: Fri Jan 02, 2015 4:44 pm
by DougieLawson
All RPi SDCards have at least two partitions.

1. Small primary FAT formatted 56MB partition with /boot which includes the GPU code and the kernel
2. One large (29.8GB) ext4 formatted (rest of the space ) partition which is the root filesystem

If you have NOOBS or RiscOS things will be different. But the basics are the same. The GPU bootstrap/firmware can only load from a primary FAT partition.

Re: Partitioning on micro sd cards for B+

Posted: Fri Jan 02, 2015 4:47 pm
by shingster
I'm trying to use Kali Linux in this case

So in my case which of the partions do I actually resize to use the full capacity of my sd card. I'm still pretty new to this resizing thing

Re: Partitioning on micro sd cards for B+

Posted: Fri Jan 02, 2015 5:05 pm
by DougieLawson
Boot the system, look at the layout with fdisk -l or with parted.

You can re-write the partition table with fdisk. You can resize an ext2/3/4 filesystem with resize2fs. You'll need to ask on the Kali forum about how to get those things installed.

Re: Partitioning on micro sd cards for B+

Posted: Fri Jan 02, 2015 5:07 pm
by drgeoff
Raspbian comes with raspi-config which when run has a menu of various items including keyboard layout and expanding the file system to fill the SD card.

Perhaps Kali (for RPi) includes a similar utility.

I don't know how Kali partitioned the card, but I expect the partition you should expand is not the FAT one.

Re: Partitioning on micro sd cards for B+

Posted: Fri Jan 02, 2015 5:14 pm
by shingster
It would seem that previous person that replied to my post as correct

The fat file which was the 52MB one was the important one and there was another ex4 one below it that was a GB file. That was labelled unallocated space

I resized that and moved it to the fat file and it now reads at 29GB instead of 52Mb

I'm booting that on my pi now and hopefully it will finally work

Re: Partitioning on micro sd cards for B+

Posted: Fri Jan 02, 2015 5:15 pm
by shingster
Or else I have to use the raspien config utility tool to do it on the pi