Raspberry PI 3

Home » CentOS » Raspberry PI 3
CentOS 2 Comments

Hi all

I downloaded the RPI3 image:
CentOS-Userland-7-armv7hl-Minimal-1603-RaspberryPi3.img.xz

how do I resize the root FS? My Sd card is 32G and I am only using 2G of that.

also I thought the RPI3 as was 64 bit. When I downloaded the aarch64.img and tried that it did not boot. I thought the RPI3 supported this image. perhaps not.

Thannks,

Jerry

2 thoughts on - Raspberry PI 3

  • Hi Jerry,

    here is a copy of a mail I sent some weeks ago to the arm-dev list. This mail assumes that you add a SSD to the system, but the concept remains the same. Make sure that the /boot space has at least some 4GB.

    —8<--- I did pretty much what you plan to do. You need to have the "/boot" partition on the SD-card and the "/" partition on your SSD. amrd> 1. dd CentOS-Userland-7-armv7hl-Minimal-1511-CubieTruck.img.xz to amrd> SD-Card

    correct. use another PC and connect the SD-card and you SSD. Use GParted to move your root and swap partition to the SSD. Keep the /boot partition on the SD-card. You may want to resize the /root partition to some
    16-32GByte.

    amrd> 2. delete all Partions on SD-Card

    don’t!
    keep all partition on the SD-card. Modify
    /boot/extlinux/extlinux.conf and change the corresponding targets. Use uuid-addresses to direct to the correct root partition on the ssd. Boot the system and check if it correctly starts from the SSD and not from the SD-disk. If it runs correctly, remove the /root and swap partition from the SD-disk. Use GParted to resize the /boot partition to use the whole SD-disk.

    You will need the SD-card anyway to boot the system, but there is not much R/W access to that partition except at boot time, so the speed increase is significant.

    I had to go through this process, because the /boot partition is too small to go through a successful kernel update. “yum update” wanted to update the kernel, it ran out of /boot-space and corrupted my system. If you need more details, I can supply more information later today. I
    don’t have access to the system right now.
    —8<--- don't know about that, because I use the banana-pro. Not sure if the 64 bit system would make much difference. best regards --- Michael Schumacher PAMAS Partikelmess- und Analysesysteme GmbH Dieselstr.10, D-71277 Rutesheim Tel +49-7152-99630 Fax +49-7152-996333 Gesch

  • Hi Jerry,

    WRT expanding rootfs :
    https://wiki.CentOS.org/SpecialInterestGroup/AltArch/Arm32#head-61f4a64fb0c44b1080d87dd0c618ed4d0c8ef8df

    Please note that for rpi3 we got new images for CentOS 7.3.1611 (and signed pkgs will land soon on mirror.CentOS.org) here :
    http://mirror.CentOS.org/altarch/7.3.1611/isos/armhfp/

    /root/README on those images now states this :
    “If you want to automatically resize your / partition, just type the following (as root user):
    /usr/local/bin/rootfs-expand” (starting from the 7.31611 images, as we rely now on cloud-utils-growpart)

    WRT aarch64, there is nothing on our side that supports rpi3 (yet). Jim is having a look at building a test image, but needs to backport some specific patches (basically from Fedora) into kernel 4.5 that is used in el7 aarch64 .

    More details and discussions on the dedicated arm-dev list
    (https://lists.CentOS.org/mailman/listinfo/arm-dev)