stevesr0
Posts: 7
Joined: Tue Apr 28, 2015 7:05 pm

Is Unallocated space before the first partition OK?

Tue Apr 28, 2015 8:30 pm

Hi,

This is my first post and a very basic one.

I purchased a Pi 2 a few days ago and just purchased a Samsung Pro 32 gig sd card (after reading a number of forum threads) to use with NOOBS.

I understand that the first partition should be vfat or fat32 for NOOBS to be able to deal with.

The partition IS vfat (fat32 version), so that should be fine.

However, in looking at the card on my computer with GParted, it finds that the first 8192 sectors are unallocated space.

So, rather than just assume that it is OK, I am asking.

Thanks in advance.

Steve

User avatar
Jednorozec
Posts: 809
Joined: Sun Nov 24, 2013 2:17 pm
Location: Deposit, NY

Re: Is Unallocated space before the first partition OK?

Wed Apr 29, 2015 1:53 am

It should be ok. Why don't you just try it.
The most important leg of a three legged stool is the one that's missing.
It's called thinking. Why don't you try it sometime?

User avatar
electronicsguy
Posts: 156
Joined: Wed Jan 21, 2015 11:20 pm
Contact: Website

Re: Is Unallocated space before the first partition OK?

Wed Apr 29, 2015 1:57 am

as the previous poster commented, try it. it should be ok. unallocated space is not a partition, so by definition your 1st partition is still that correct vfat partition.
blog: https://electronicsguy.wordpress.com
github: https://github.com/electronicsguy


User avatar
rpdom
Posts: 17029
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Is Unallocated space before the first partition OK?

Wed Apr 29, 2015 6:08 am

Yes, unallocated space is OK and normal. Often it is there because Flash Memory devices (SD cards), work in large data block sizes and work better if your data partition starts on their block boundary. By leaving certain sized bit of unallocated space between the partition table in block 0 and the start of the first partition you can certain that the partition will start in the correct block number of most devices.

FM81
Posts: 518
Joined: Wed Apr 17, 2013 4:33 pm

Re: Is Unallocated space before the first partition OK?

Wed Apr 29, 2015 6:57 am

stevesr0 wrote:... it finds that the first 8192 sectors are unallocated space.
That's normal, the optimal thing that you can do, is align partitions to the erase-block-size of the sd-card.

Code: Select all

cat /sys/devices/platform/mmc_host/mmc0/mmc0:xxxx/preferred_erase_size
('xxxx' is a placeholder) Divide the value through 512 and you'll get the start-sector of first partition. Following partitions should use a multiple of the first value.
In this case you will always have unallocated space, but "optimized partitions"!
Pre-defined images often fits to this rule, but they can not cover all types of cards in the world.

How ever, a card isn't so expensive; so you should decide to yourself, which way to prefer ...

Greetings, FM_81
A: What does the command 'cat /dev/urandom', can you tell me please?
B: Yeah, that's very simple: It feeds your cat with radioactive material!

User avatar
r4049zt
Posts: 113
Joined: Sat Jul 21, 2012 1:36 pm
Contact: Website

Re: Is Unallocated space before the first partition OK?

Wed Apr 29, 2015 1:03 pm

probably ok. try it.
Today a specially complicated multi-partition 32GB SD card which I'd made in gparted did not work. My main goal had been to define a huge swap partition before running noobs. I wiped the card, reformatted to FAT32 which I think means much the same as VFAT, copied in the unzipped noobs content with the linux file manager, and that has booted ok.

So, default FAT32 might have a few blanks. multi-partition with fat32 as the first partition did not work.

stevesr0
Posts: 7
Joined: Tue Apr 28, 2015 7:05 pm

Re: Is Unallocated space before the first partition OK?

Sun May 10, 2015 2:30 am

Thanks to all for useful info and experiences.

I did "try it" and had no problem.

Steve

Return to “General discussion”