shingster
Posts: 20
Joined: Thu Dec 18, 2014 3:47 pm

Partitioning on micro sd cards for B+

Fri Jan 02, 2015 4:40 pm

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

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Partitioning on micro sd cards for B+

Fri Jan 02, 2015 4:44 pm

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.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

shingster
Posts: 20
Joined: Thu Dec 18, 2014 3:47 pm

Re: Partitioning on micro sd cards for B+

Fri Jan 02, 2015 4:47 pm

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

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Partitioning on micro sd cards for B+

Fri Jan 02, 2015 5:05 pm

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.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: Partitioning on micro sd cards for B+

Fri Jan 02, 2015 5:07 pm

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.

shingster
Posts: 20
Joined: Thu Dec 18, 2014 3:47 pm

Re: Partitioning on micro sd cards for B+

Fri Jan 02, 2015 5:14 pm

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

shingster
Posts: 20
Joined: Thu Dec 18, 2014 3:47 pm

Re: Partitioning on micro sd cards for B+

Fri Jan 02, 2015 5:15 pm

Or else I have to use the raspien config utility tool to do it on the pi

Return to “Beginners”