Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

*Both* RaspBMC partitions get expanded #108

Closed
lurch opened this issue Oct 1, 2013 · 3 comments
Closed

*Both* RaspBMC partitions get expanded #108

lurch opened this issue Oct 1, 2013 · 3 comments
Labels

Comments

@lurch
Copy link
Collaborator

lurch commented Oct 1, 2013

Not a bug with NOOBS itself per-se, but a problem with one of the data-files it's using.

In os/RaspBMC/partitions.json (and also in http://downloads.raspberrypi.org/raspbmc/partitions.json ) you have "want_maximised": "N", and "want_maximised": "Y", instead of the "want_maximised": false, and "want_maximised": true, used by all the other partitions.json files.
NOOBS then (correctly) interprets both non-empty strings as boolean true values, and as a result both the RaspBMC partitions get maximised, rather than only the root partition.

I've just installed OpenELEC, RaspBMC and Raspbian onto my 16GB SDHC card using the "full" NOOBS v1.3, and ended up with this partition table:

Model: SD SU16G (sd/mmc)
Disk /dev/mmcblk0: 15.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system  Flags
 1      4194kB  1278MB  1274MB  primary   fat32        lba
 2      1279MB  15.9GB  14.6GB  extended
 5      1283MB  1418MB  134MB   logical   fat16        lba
 6      1422MB  4816MB  3394MB  logical   ext4
 7      4819MB  7391MB  2572MB  logical   fat32        lba
 8      7395MB  11.2GB  3851MB  logical   ext4
 9      11.2GB  11.3GB  62.9MB  logical   fat16        lba
10      11.3GB  15.9GB  4575MB  logical   ext4
 3      15.9GB  15.9GB  33.6MB  primary   ext4

i.e. RaspBMC has been given a 2.5GB boot partition!

The fix is to simply edit RaspBMC's partitions.json file to correctly use boolean JSON values rather than strings. (easy to do for the online version!)
And maybe you could consider validating the JSON files against a well-defined schema, as I once suggested to you in an email? ;-)

@lurch
Copy link
Collaborator Author

lurch commented Oct 1, 2013

I manually edited os/RaspBMC/partitions.json on my SD card to correct it as described above, then re-installed OpenELEC, RaspBMC and Raspbian again, and now my partition table changes to:

Model: SD SU16G (sd/mmc)
Disk /dev/mmcblk0: 15.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system  Flags
 1      4194kB  1278MB  1274MB  primary   fat32        lba
 2      1279MB  15.9GB  14.6GB  extended
 5      1283MB  1418MB  134MB   logical   fat16        lba
 6      1422MB  5647MB  4225MB  logical   ext4
 7      5650MB  5734MB  83.9MB  logical   fat32        lba
 8      5738MB  10.4GB  4682MB  logical   ext4
 9      10.4GB  10.5GB  62.9MB  logical   fat16        lba
10      10.5GB  15.9GB  5405MB  logical   ext4
 3      15.9GB  15.9GB  33.6MB  primary   ext4

i.e. RaspBMC's boot partition is now just 80MB-ish as expected, and consequently the rootfs partitions mmcblk0p6, mmcblk0p8 and mmcblk0p10 get more space allocated to them.

@lurch
Copy link
Collaborator Author

lurch commented Oct 2, 2013

See also http://www.raspberrypi.org/phpBB3/viewtopic.php?p=431501#p431501

It's probably worth mentioning that the only reason I found this bug was because I also noticed the "big pause without the progress bar updating" during OS-install, and decided to investigate what was going on... ;-)

@Rob-Bishop
Copy link
Contributor

Fixed in v1.3.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants