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
Hi Jerry,
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.
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<---
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.
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äftsführer: Gerhard Schreck Handelsregister B Stuttgart HRB 252024
On 12/12/16 20:07, Jerry Geis wrote:
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
Hi Jerry,
WRT expanding rootfs : https://wiki.centos.org/SpecialInterestGroup/AltArch/Arm32#head-61f4a64fb0c4...
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)