Preparing Boot Media

Create bootable installation media for MocaccinoOS using a USB drive, DVD or an existing GRUB installation.

Before installing MocaccinoOS, you need to prepare bootable media from the downloaded ISO image. This page describes three methods: creating a bootable USB drive (recommended), burning a DVD, or booting the ISO directly from an existing Linux installation using GRUB.

Before you begin

Make sure you have downloaded the MocaccinoOS ISO image you want to install.

If a checksum is published alongside the ISO, verify the downloaded file before writing it to your boot media. This helps detect incomplete or corrupted downloads.

On Linux, calculate the SHA-256 checksum:

1
$ sha256sum MocaccinoOS.iso

Compare the result with the checksum published for that ISO.

Creating a bootable USB drive

A USB drive is the simplest and most convenient way to install MocaccinoOS. You will need a USB drive with sufficient capacity for the ISO image. All existing data on the drive will be erased.

There are several ways to create the bootable drive.

Using balenaEtcher

balenaEtcher is a graphical, cross-platform application available for Linux, Windows and macOS.

  1. Download and install balenaEtcher.
  2. Start the application and select Flash from file.
  3. Choose the downloaded MocaccinoOS ISO image.
  4. Select Select target and choose your USB drive.
  5. Click Flash and wait for the process to complete.
  6. Safely remove the USB drive when the operation has finished.

Using Ventoy

Ventoy allows you to keep multiple ISO images on a single USB drive and select which one to boot.

  1. Download Ventoy from its official website.
  2. Install Ventoy on your USB drive using the Ventoy installer.
  3. Copy the MocaccinoOS ISO image to the USB drive.
  4. Boot your computer from the USB drive.
  5. Select the MocaccinoOS ISO from the Ventoy menu.

Ventoy is convenient for testing different distributions or keeping multiple installation images available. Compatibility can depend on the ISO and firmware, so use a directly written USB drive if Ventoy does not boot the image correctly.

Using the command line

On Linux, you can write the ISO image directly to a USB drive using dd.

First, identify your USB device:

1
$ lsblk -o NAME,SIZE,MODEL,TRAN,MOUNTPOINTS

Make sure you identify the correct device. The target must be the whole USB drive, not one of its partitions.

For example:

  • /dev/sdb is a USB drive.
  • /dev/sdb1 is a partition on that drive.
  • /dev/nvme0n1 may be an NVMe drive.

Unmount any mounted partitions on the USB drive before proceeding.

Write the ISO image to the device:

1
$ sudo dd if=MocaccinoOS.iso of=/dev/sdX bs=4M status=progress conv=fsync

Replace MocaccinoOS.iso with the actual ISO filename and /dev/sdX with your USB device.

Warning: This operation overwrites the selected device completely. Selecting the wrong device can destroy the data on your system disk.

Once the command finishes, safely remove the USB drive.

Creating a bootable DVD

If your computer has an optical drive, you can also burn the ISO image to a DVD.

Use your preferred disc-burning application:

  • Linux: Use an application such as K3b or Brasero and select the option to burn an image.
  • Windows: Right-click the ISO file and choose Burn disc image.
  • macOS: Use Disk Utility to burn the image.

Make sure you burn the ISO as a disc image rather than copying the ISO file onto the DVD as a regular file.

Booting directly from an ISO file using GRUB

This method allows you to boot MocaccinoOS directly from an ISO image stored on your hard drive, without creating a USB drive or DVD.

This method is supported by MocaccinoOS release images newer than 26.06.

Requirements

  • An existing Linux installation using GRUB2.
  • A MocaccinoOS ISO image.
  • The ISO must be stored on a filesystem supported by the MocaccinoOS initramfs, such as ext2/3/4, FAT32 or NTFS.
  • Sufficient free space on the partition containing the ISO image.

Preparing the ISO image

Create a directory for ISO images and copy the downloaded image into it:

1
2
$ sudo mkdir -p /boot/iso
$ sudo cp MocaccinoOS.iso /boot/iso/

The example above assumes that /boot is accessible from your existing Linux installation.

Adding a GRUB menu entry

Edit /etc/grub.d/40_custom with your preferred text editor and add the following entry:

1
2
3
4
5
6
7
menuentry "MocaccinoOS Live (ISO Loopback)" {
    set isofile="/boot/iso/MocaccinoOS.iso"
    search --no-floppy --file --set=root $isofile
    loopback loop $isofile
    linux (loop)/boot/kernel.xz iso-scan/filename=$isofile rootdelay=5 quiet
    initrd (loop)/boot/rootfs.xz
}

Adjust isofile to match the location and filename of your ISO image.

The entry uses the following parameters:

  • isofile: Path to the ISO image, relative to the root of the partition containing it.
  • search: Locates the partition containing the ISO image.
  • loopback: Makes the ISO image accessible to GRUB as a loopback device.
  • iso-scan/filename: Tells the MocaccinoOS initramfs which ISO image to locate and mount.
  • rootdelay=5: Gives the kernel additional time to initialize storage devices.

Regenerate the GRUB configuration:

1
$ sudo grub-mkconfig -o /boot/grub/grub.cfg

Reboot your computer and select MocaccinoOS Live (ISO Loopback) from the GRUB menu.

Booting manually from the GRUB console

You can also boot the ISO manually from the GRUB command line.

First, locate the partition containing the ISO image:

1
grub> search --no-floppy --file --set=root /boot/iso/MocaccinoOS.iso

Then create the loopback device and load the kernel and initramfs:

1
2
3
4
grub> loopback loop /boot/iso/MocaccinoOS.iso
grub> linux (loop)/boot/kernel.xz iso-scan/filename=/boot/iso/MocaccinoOS.iso rootdelay=5
grub> initrd (loop)/boot/rootfs.xz
grub> boot

Note that rootfs.xz is the MocaccinoOS live initramfs, despite its filename.

Booting from the prepared media

Once your USB drive or DVD is ready:

  1. Connect the USB drive or insert the DVD.
  2. Restart your computer.
  3. Open the firmware boot menu. The key varies by manufacturer and is commonly F8, F11, F12 or Esc.
  4. Select the USB drive or optical drive.
  5. Wait for the MocaccinoOS boot menu to appear.

If the system does not boot from the selected device, check the firmware boot order and confirm that the boot mode is compatible with your installation media.

For additional troubleshooting, consult your motherboard or computer manufacturer’s documentation.

Next steps

Once MocaccinoOS has booted successfully, you can explore the live environment and proceed with the installation.

See Installation for instructions on installing MocaccinoOS using the Calamares installer.

Further reading

Last modified December 1, 2026: Add 26.12 release notes (4ef0dd4)