Introduction
Welcome to the comprehensive guide on installing Minimal Linux Live! This article is meant for both curious beginners and seasoned sysadmins who’d like a lean, mean, Linux machine. We’ll cover everything—from downloading the ISO to bootloader tweaks—sprinkled with a dash of humor and plenty of detail.
Minimal Linux Live (MLL) is a tiny, self-contained Linux environment perfect for testing, rescue, or just impressing your friends by booting Linux on an ancient toaster. Let’s dive in!
Table of Contents
- Preflight Checks
- Downloading the ISO
- Preparing Your USB Drive
- Booting into MLL
- Installing to Disk
- Configuring the System
- Bootloader Setup
- Post-Installation Tips
- Troubleshooting
- Further Reading
1. Preflight Checks
Before you go on a Linux adventure, make sure:
- You have a USB stick (≥ 2 GB) ready. No, your pen drive borrowed from 2005 won’t cut it.
- Your hardware supports USB boot or you’re comfortable with a PXE network boot (bonus points if you like living on the edge).
- You have administrative privileges on your current OS to write images to USB.
- You’ve backed up any important data—this process can (theoretically) obliterate things.
2. Downloading the ISO
The official Minimal Linux Live repository on GitHub hosts ISO images and build scripts. Head over to:
https://github.com/MinimalLinuxLive/minimal
Look for the latest release, e.g., minimal-live-1.12.iso. Verify the SHA256 checksum if you’re feeling extra cautious:
sha256sum minimal-live-1.12.iso # Compare against the value on the releases page
If it matches, you are golden. If not, double-check your download or find a mirror.
3. Preparing Your USB Drive
3.1 Identify the USB Device
On Linux, plug in your USB stick and run:
lsblk
Suppose it shows up as /dev/sdx. Be absolutely sure you’ve got the right device dd will not ask nicely before overwriting.
3.2 Write the ISO to USB with dd
A classic command-line approach:
sudo dd if=minimal-live-1.12.iso of=/dev/sdx bs=4M status=progress sync
Explanation:
if=– input file (the ISO)of=– output device (your USB stick)bs=4M– block size for faster writesstatus=progress– shows progresssync– ensures all buffers are flushed
If you prefer a GUI, tools like Rufus (Windows) or Etcher (cross-platform) work, too.
4. Booting into MLL
Reboot your machine, enter your BIOS/UEFI menu (usually F2, F10, F12, or Esc), and select the USB device. Within seconds, you’ll be greeted by the Minimal Linux Live prompt:
[boot]
If nothing happens, check:
- Your USB stick is first in the boot order.
- Secure Boot is disabled (MLL isn’t signed).
- Your hardware actually supports USB boot.
5. Installing to Disk
MLL runs entirely from RAM. To persist changes, install it to your hard drive. Let’s partition, format, and copy the system.
5.1 Partitioning
Using cfdisk (menu-driven) or fdisk (text-based):
sudo cfdisk /dev/sda
Create:
- A small EFI partition (if using UEFI): 512 MB, type EFI System.
- A root partition: rest of the disk, type Linux filesystem.
- (Optional) A swap partition or swapfile.
5.2 Formatting
| Partition | Command | Notes |
|---|---|---|
| /dev/sda1 (EFI) | mkfs.vfat -F32 /dev/sda1 |
Required for UEFI boot |
| /dev/sda2 (root) | mkfs.ext4 /dev/sda2 |
Journaling, reliable |
| swap (optional) | mkswap /dev/sda3 swapon /dev/sda3 |
Enable later |
5.3 Mounting and Copying Files
Mount target partitions:
sudo mount /dev/sda2 /mnt sudo mkdir /mnt/boot sudo mount /dev/sda1 /mnt/boot
Copy MLL contents:
sudo cp -a /live/ /mnt/
This copies everything you need into /mnt—the new root.
6. Configuring the System
Before chrooting, bind-mount vital filesystems:
sudo mount --rbind /dev /mnt/dev sudo mount --rbind /proc /mnt/proc sudo mount --rbind /sys /mnt/sys
Enter the new system:
sudo chroot /mnt /bin/bash
In the chroot:
- Set your timezone:
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime - Configure locales in
/etc/locale.gen, then runlocale-gen. - Set hostname:
echo my-mll > /etc/hostname. - Edit
/etc/hosts:
127.0.0.1 localhost 127.0.1.1 my-mll.localdomain my-mll
Create a user and set passwords:
passwd root useradd -m -G wheel,user,audio myuser passwd myuser
Ensure wheel group has sudo rights in /etc/sudoers.
7. Bootloader Setup
7.1 UEFI with systemd-boot
If your system uses UEFI, systemd-boot is super-simple:
bootctl install --esp-path=/boot cat > /boot/loader/entries/mll.conf << EOF title Minimal Linux Live linux /boot/vmlinuz initrd /boot/initrd.img options root=/dev/sda2 rw quiet EOF
7.2 Legacy BIOS with extlinux
For BIOS systems:
extlinux --install /boot dd if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sda cat > /boot/extlinux.conf << EOF DEFAULT mll LABEL mll SAY Booting Minimal Linux Live... KERNEL /boot/vmlinuz APPEND initrd=/boot/initrd.img root=/dev/sda2 rw quiet EOF
8. Post-Installation Tips
- Enable networking by installing
dhclientorNetworkManager. - Add essential packages:
vim,git,openssh. - Harden SSH: disable root login, use key-based auth.
- Install a lightweight desktop if you crave GUI:
xfce4orlxqt. - Create a
/etc/fstabentry for swap or extra partitions.
9. Troubleshooting
Boot Issues
- No boot entry? Reinstall bootloader or check EFI entries:
efibootmgr -v. - Stuck at initramfs? Ensure
root=UUID or device is correct.
Networking Problems
- Check interfaces:
ip a. - Bring up interface:
dhclient eth0or usenmcli.
Filesystem Read-Only
- Edit your bootloader
optionsto includerw. - Remount root:
mount -o remount,rw /.
10. Further Reading
- Arch Linux Installation Guide – More depth on manual installs.
- Gentoo Handbook – For ultimate minimalism.
- Minimal Linux Live GitHub – Build scripts and ISO sources.
Conclusion
You’ve just traversed the landscape of a minimalist Linux install. Sure, your toaster may not support it—yet—but your machine will thank you for its newfound lean performance. Now go forth, explore, break things (!), and rebuild them, because that’s the real fun of open source.
Happy hacking, and remember: in Linux we trust.
Leave a Reply