Hi there,
I've buyed a second Cubietruck (the first one runs with Fedora) to install CentOS on it. I've installed Fedora long time ago with bootloader on SD-card and the OS on a SSD. Now this time I would have the same with CentOS.
I my opinion I have to
1. dd CentOS-Userland-7-armv7hl-Minimal-1511-CubieTruck.img.xz to SD-Card 2. delete all Partions on SD-Card 3. dd CentOS-Userland-7-armv7hl-Minimal-1511-CubieTruck.img.xz to SSD 4. modify Boot-Configuration to to have Bootloader on SD-Card ant the OS on SSD
But which file(s) must I edit?
Thanks
Andreas
Hi Andreas,
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. I make my comments in you list below:
Monday, November 21, 2016, 12:25:54 PM, you wrote:
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
dont't!
keep all partition on the SD-card. Modify /boot/extlinux/extlinux.conf and change the corresponding items. 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. It 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.
best regards --- Michael Schumacher
Am 21.11.2016 um 13:40 schrieb Michael Schumacher:
Hi Andreas,
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. I make my comments in you list below:
Monday, November 21, 2016, 12:25:54 PM, you wrote:
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
dont't!
keep all partition on the SD-card. Modify /boot/extlinux/extlinux.conf and change the corresponding items. 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. It 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.
best regards
Michael Schumacher
Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev
Thanks for your help. No I've a running system with /boot on SD-Card and all other filesystem on SSD.
A few RPMs from the coming c71611 testing are also installed.
Greetings Andreas
Hi Andreas,
- delete all Partions on SD-Card
IHMO there is no need to do so. Just keep them as a rescue system.
- dd CentOS-Userland-7-armv7hl-Minimal-1511-CubieTruck.img.xz to SSD
Instead of dd'ing you can copy the filesystem contents to your SSD and choose a partitioning layout which fits better to your needs. This wiki article ( http://bit.ly/2gcXepm) addresses Aarch64 but it should work with the cubietruck image as well.
- modify Boot-Configuration to to have Bootloader on SD-Card ant the
OS on SSD
I don't know the boot loader capabilities in detail. One thing you have to change in any case is the command line passed to the kernel (bootargs). If the boot loader is able to load from SATA/USB, you can place the /boot partition to the SSD (and modify the boot loader commands to load the kernel image, etc.).
Cheers Uli