Why run CorePure64 alongside Arch Linux?

I pulled the USB stick, picked Arch in GRUB, and watched it boot. CorePure64 had also booted from the internal SSD. That settled the practical question about moving off USB. It left a more interesting one. If Core builds its running system in memory at every boot, what exactly did I install on the drive?

What Arch leaves me to take for granted

On Arch I can remove the desktop, sign in at a console and carry on editing the same files. Tomorrow I expect my interpreter to be on my path and my script to contain tonight’s edits. Core gives me a way to take those expectations apart. The interpreter and the script can turn up in exactly the same places after a reboot for entirely different reasons.

I have a working session to compare against. Firefox ran, SSH authentication to GitHub worked, and pytest reported six passing tests. Repeating that workload after a restart will say more about my setup than counting the programs I managed to launch once.

Which Core?

Core is the console base of the Tiny Core Linux project. For 32-bit x86, the Core image boots to a console and TinyCore adds a small graphical environment. Their 64-bit counterparts are CorePure64 and TinyCorePure64. I chose CorePure64. Getting Firefox running later says something about the environment I assembled. The browser doesn’t come with the console image.

The 17.1 release directory lists both 64-bit images. A versioned filename matters here. An experiment recorded against an alias such as current can be hard to repeat once the next release lands. Ubuntu Core and Fedora CoreOS are separate projects.

From two files to a shell

Two files in the CorePure64 image tell much of the story. The bootloader loads /boot/vmlinuz64, the kernel, and supplies /boot/corepure64.gz, the archive containing the initial filesystem. The kernel manages devices, memory and scheduling. A shell runs in user space and asks the kernel to perform operations such as reading a file. The boundary is the same whether the file lives on a drive or in RAM.

During an initramfs boot, the kernel unpacks the archive into its initial root filesystem. If it finds /init there, it executes it as PID 1. User-space code can now set up devices and mount other filesystems. The shell only needs a usable tree rooted at /. A graphical login screen, a window manager and a display server are all optional.

BusyBox supplies many of the small programs that make the console useful. One executable implements a collection of applets. Run busybox ls to select one explicitly, or busybox to see which ones this build provides. This distinction starts to matter the first time a script assumes a GNU command-line option that the installed applet doesn’t implement.

What lives on the SSD?

In a conventional Arch installation, early user space gets the system to its persistent root filesystem. When pacman installs a package, its files become part of that tree. A frugal Core installation keeps a kernel and a compressed base on the drive. Booting expands the base in memory, where it continues to serve as the running root. The boot files can share a suitable existing filesystem. Giving them a partition of their own is a layout choice.

An extension adds another possibility. In the usual mount mode, a compressed .tcz image stays on storage. Core mounts it and exposes its files in the running tree. Reading those files can populate the page cache. Copying the extension into RAM is a separate mode. The size of an extensions directory on disk tells you little about how much memory its programs occupy during a particular session. For the caching side of that distinction, see why the second read is faster.

A persistent tce directory keeps extension images across boots. The onboot.lst file selects extensions to load at startup. User data has its own paths to persistence. A home directory can live on disk, or selected paths can be listed in /opt/.filetool.lst, backed up and restored on boot. Finding Python on my path tomorrow will tell me very little about whether my script survived the night.

What the physical machine adds

A VM would have been enough to explore BusyBox. Pulling the stick from the computer I rely on answered a different question: could I still get back into Arch? Using the same hardware also removes one variable from later measurements, though the services running on each system will still matter.

The actual ISO deserves a closer look. The inspected CorePure64-17.1.iso contains ISOLINUX and a BIOS El Torito boot entry. Its boot catalog has no EFI entry, and its file tree contains no BOOTX64.EFI. A 64-bit kernel and a directly UEFI-bootable image are different properties. An existing EFI loader capable of loading that kernel and initramfs offers another route.

On an installed UEFI system, firmware can load an EFI application from the EFI System Partition (ESP). GRUB can then locate the Linux boot files and pass the kernel its command line. The ESP, the filesystem containing the compressed Core image, and the root seen by a running shell each play a different role. A menu label alone won’t identify them.

What I’ll measure

My first persistence test will leave three traces: a small file in the volatile tree, a second one in persistent home, and an extension selected for startup. I’ll record where each lives, restart, and check each one independently. If two survive, I want to know which mechanism brought each of them back.

For memory measurements I’ll bring both systems to a console, let them idle for the same interval and record MemAvailable. A graphical session with Firefox will be a separate workload. Boot timing needs an endpoint of its own: the moment the console can accept a command. I’ll report repeated runs and their conditions together.

Reconstructing the move from USB

In part two, I show how I moved CorePure64 from USB to SSD. I match the GRUB entry against the mount layout and show what the partition-table dump captured. Booting Arch after unplugging the stick demonstrates a working fallback today. Recovering a damaged boot setup calls for a separate test.

Later entries will cover persistence and day-to-day development. You can follow the series through the DevMindset newsletter.

Which single check would convince you that a Core installation moved to an SSD no longer depends on its original USB stick?

Technical references

Tiny Core 17.1 · Into the Core · Initramfs · BusyBox · Tiny Core Wiki · GNU GRUB

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top