⚠️ Note: Auto-translated Article

This page was generated by AI-assisted automatic translation from the original Japanese article.

The original article was written assuming a Japanese-language environment. If you are running MX Linux in English, some on-screen messages and option labels may differ from what is described here.

ℹ️ This article was written with AI assistance

This article was created using Claude (Sonnet 4.6) AI. The sections from “Overview” onward were primarily generated through interaction with Claude Code. All procedures have been verified by a human on real hardware.

The writing environment is as follows:

  • Windows 11 PC
  • Zed Editor + Claude Agent Extension
  • Rocky Linux VM: Hugo environment

Overview

This guide explains how to fully install MX Linux on a USB drive to build a portable Linux environment. An exFAT partition is also configured on the same drive for file exchange with Windows.

Prerequisites

What You Need

Item Description
Work PC A PC with Linux already installed on the internal SSD
(A) MX Linux Live USB The live environment for the work. Use a pre-configured one
(B) New 64GB USB drive The installation target. USB 3.2 Gen.2 recommended
Setup overview: plug [A] Live USB and [B] USB drive into the work PC, boot from [A], and install to [B]

Partition Layout

The partition layout for (B) USB drive is as follows.

USB drive partition layout
# Mount Point FS Size Purpose
sdb1 /boot/efi FAT32 512MB UEFI bootloader (ESP)
sdb2 / ext4 30GB MX Linux root
sdb3 /media/data exFAT Remaining Windows / Linux file exchange
ℹ️ Reference: What is ESP (EFI System Partition)?

ESP is a special partition that UEFI-compatible PCs read first at boot time. It stores the bootloader (e.g., GRUB) and serves as the entry point for OS startup. Per the UEFI specification, it must be FAT32 — ext4 or exFAT cannot be used for booting.

512MB is used here. The UEFI spec minimum is 32MB and Microsoft recommends 100MB, but 512MB provides room for future changes.

Setup Procedure

(1) Identify Device Names

Boot the work PC with (A) MX Linux Live USB, open a terminal, and run the following.

lsblk -o NAME,SIZE,TYPE,MOUNTPOINT,LABEL
NAME   SIZE TYPE MOUNTPOINT  LABEL
sda   500G  disk             # Internal SSD (do not touch)
sdb    64G  disk             # (B) Target USB ← work target
sdc    16G  disk             # (A) Live USB (boot source)
🚨 Warning
sda (internal SSD) is not the work target. Always verify by size and label.

(2) Create Partitions with GParted

Creating partitions in advance with GParted before launching the installer makes it easier to assign partitions accurately and safely.

Launch GParted and Select the Device

Launch GParted and select /dev/sdb from the dropdown in the top right.

Create a GPT Partition Table

Menu → “Device” → “Create Partition Table” → select GPT.

Create Partitions in Order

Create three partitions in order — sdb1 → sdb2 → sdb3 — using the settings below.

# New Size Filesystem Label
sdb1 512 MiB fat32 ESP (optional)
sdb2 30720 MiB (30GB) ext4 Linux (optional)
sdb3 Remaining (leave at maximum) exfat Data (optional)

The creation steps are the same for each partition.

  1. Right-click on unallocated space → select “New”
  2. Enter the values from the table above
  3. Click “Add” to confirm

Apply

Once all three partitions are created, go to Menu → “Edit” → “Apply All Operations” (or click the ✔ button in the toolbar), then click “Apply” in the confirmation dialog. After applying, New Partition #1 through #3 are confirmed as sdb1 through sdb3.

Set Partition Flags

The flag assignment policy for each partition is as follows.

Partition Flags Reason
sdb1 (ESP / FAT32) boot, esp Required for UEFI boot. When boot is set, msftdata is automatically removed
sdb2 (Linux root / ext4) None No flags needed for Linux partitions
sdb3 (Data / exFAT) msftdata Helps Windows recognize the partition; leave auto-assigned as is

Only sdb1 requires action. Set the flags with the following steps.

  1. Right-click sdb1 → select “Flags”
  2. Check boot (at this point, the msftdata checkbox will be automatically unchecked)
  3. Check esp
  4. Click “Close”

The setup is complete when the “Flags” column for sdb1 shows only boot, esp.

ℹ️ Reference: About Partition Flags

GPT partitions can be assigned flags to indicate their purpose. The three flags relevant to this setup are:

Flag Full Name Meaning
boot Legacy BIOS Bootable Marks the partition as a boot target for BIOS/UEFI. Used together with esp in UEFI environments
esp EFI System Partition Indicates this is the ESP where UEFI firmware looks for the bootloader. Used together with boot
msftdata Microsoft Basic Data Indicates a data partition for Windows read/write. Automatically assigned to FAT32, exFAT, and NTFS partitions

(3) Launch the MX Linux Installer

From GParted menu → “GParted” → “Quit” to close GParted.

Double-click the “Install MX Linux” icon on the desktop to launch the installer.

(4) Installer Operations

Screen ① License Agreement & Keyboard Settings

The license agreement is displayed. Review the content and proceed.

Keyboard settings are shown at the bottom of the screen. The defaults for a Japanese environment are as follows and are usually fine as-is.

Item Default Value
Model pc105
Layout jp
Variant (empty)

To change the keyboard layout, click “Change Keyboard Settings”.

Click “Next” to proceed.

Screen ② Installation Type ⚠️

Three options are displayed.

○ Normal Installation Using Entire Disk  ← Do not select
● Customize Disk Layout                  ← Select this
○ Replace Existing Installation (Experimental) ← Do not select

Since partitions were already created in GParted, select “Customize Disk Layout”. Click “Next”.

Screen ③ Partition Selection ⚠️

A list of disks and partitions is displayed in 7 columns. Disks (sda, sdb, etc.) are shown as top-level items, with partitions indented below.

Column Description
Device Disk and partition names (partitions are indented)
Size Disk or partition capacity
Use For Dropdown for partition purpose
Label Partition label (ESP, RootMX25, etc. No change needed)
Encrypt Root partition encryption (do not check this time)
Format Shows GPT for disk rows; dropdown for partition rows
Check Whether to format (only active when Use For is set to /)

Configure (B) USB drive (sdb) partitions as follows.

Partition Use For Check Notes
sdb1 ESP
sdb2 / ☑ Check Required to initialize the new partition
sdb3 No change Keep existing exFAT as-is. Mount settings are configured in step (6)

Click “Next” after configuration.

ℹ️ Reference: Use For Options

The main options available in the “Use For” dropdown are:

Option Purpose
FORMAT Format only (no specific purpose)
ESP EFI System Partition (bootloader storage)
/boot Legacy boot
/ Linux root partition
/home Dedicated home directory
/usr Dedicated /usr
/var Dedicated /var
SWAP Swap area

Installation Confirmation

A partition layout confirmation screen is displayed. Verify there are no errors, then click “Begin” to start the installation.

⚠️ Caution
Once “Begin” is clicked, the operation cannot be undone. Always visually verify the partition assignments before proceeding.

Configuration Screens During Installation

After clicking “Begin”, the installation runs in the background while the following configuration screens appear in sequence. Follow the on-screen instructions.

Screen ④ GRUB Settings

Item Setting
Install GRUB for Linux and Windows ☑ Check
Install location ● Select ESP
Generate host-specific initramfs image □ Do not check
🚨 Warning
Always select ESP as the install location. Selecting MBR or PBR risks overwriting the boot area of the internal SSD.

Screen ⑤ Swap Settings

Creating a swap file on a USB drive shortens the flash memory lifespan, so use zram swap that operates entirely in RAM instead.

Item Recommended Setting Reason
Create a swap file ☑ Uncheck Avoid excessive writes to USB drive
Enable hibernation support □ Do not check Cannot function without a swap file
Enable zram swap ☑ Check Operates in RAM with no USB writes
zram allocation Allocate based on RAM: 100% Leave at default (recommended)
ℹ️ Reference: What is zram swap?
zram swap is a virtual swap area that compresses and stores data in RAM. Since no disk writes occur at all, it is the only practical swap solution for USB drive operation. The benefit is small when memory is plentiful, but there is no downside to enabling it.

Screen ⑥ Computer Network Name

Configure the computer’s network identification.

Item Default Description
Computer name mx Network identifier. Can be changed to any name
Computer domain example.dom No change needed for home/personal use
Samba server for MS networks ☑ Enabled Can be disabled if Windows network sharing is not needed
Workgroup Workgroup Only change if matching a Windows workgroup name

In this setup, file exchange with Windows is done via the exFAT partition, so Samba is not required. Change settings as needed and click “Next”.

Screen ⑦ Language, Region & Time Settings

Default Language and Region

Item Default Description
Locale Japan - Japanese No change needed for Japanese environment

Time Settings

Item Default Description
Timezone Asia / Tokyo No change needed in Japan
Set system clock to local time □ Do not check Check this if dual-booting with Windows
Format ● 13:57 (24-hour) Choose based on preference
💡 Note
Check “Set system clock to local time” if using the same PC with Windows. Windows treats the hardware clock as local time, so leaving this unchecked may cause time discrepancies. If using the USB drive across multiple PCs, it is safer to check this option.

Service settings can be changed via the “Show” button, but no changes are needed unless there are specific requirements. Click “Next” when done.

Screen ⑧ Default User Account

Configure the user account.

Item Description
Default user login name Enter the username for login
Default user password Enter the user password
Confirm user password Re-enter the same password

Root (Administrator Account)

For personal use, leave unchecked (sudo operation) is fine.

Item Recommended Setting
Enable root account □ Do not check
Auto login Optional (acceptable for personal use)
Save live desktop changes □ Do not check (not needed for installed version)

Click “Next” when done.

The screen will transition to a TIPS display, cycling through text every few seconds while installation proceeds. Wait for the installation to complete.

(5) Installation Complete & Boot Verification

Operations on the Installation Complete Screen

The “Installation Complete” screen is displayed.

Confirm that “Closing the installer will automatically restart the system” is checked, then click the “Finish” button.

When the shutdown process begins, remove (A) MX Linux Live USB.

Select (B) USB Drive from BIOS Boot Menu

The PC restarts without the Live USB. To boot from (B) USB drive instead of the OS on the internal SSD, you need to enter the BIOS boot menu.

Immediately after restart (when the manufacturer logo appears), repeatedly press the boot menu key. When the boot menu appears, select (B) USB drive (shown as a UEFI device) from the list.

ℹ️ Reference: Boot Menu Keys by Manufacturer

The key varies by model. Common keys are as follows.

Manufacturer Common Boot Menu Key
HUNSN / AIOPCWA F7 or F11
ASUS F8
Lenovo F12
Dell F12
HP F9
NEC F12
Fujitsu F12
Panasonic F2 (via BIOS setup) or F12
Others F12 is common

Keys vary by model. Refer to the manufacturer’s manual if unsure.

⚠️ Caution
If the USB device does not appear in the boot menu, try reinserting the USB drive or check that USB boot is enabled in the BIOS settings.

Boot Verification

If the MX Linux login screen or desktop appears, the boot is successful.

  • If Secure Boot is enabled in UEFI settings, the system may fail to boot
  • In that case, disable Secure Boot from the BIOS setup screen (usually accessed with the Del or F2 key)

(6) Auto-Mount Setup for exFAT Partition

After the first boot of MX Linux, run the following in a terminal.

Check UUID

blkid /dev/sdb3
/dev/sdb3: UUID="ABCD-1234" TYPE="exfat"

Create Mount Point

sudo mkdir /media/data

Add Entry to /etc/fstab

Replace the UUID= value with the one confirmed by blkid above.

UUID=ABCD-1234  /media/data  exfat  defaults,uid=1000,gid=1000,umask=022  0  0

By specifying uid=1000,gid=1000, the mounted partition is owned by the regular user (uid=1000 is the default user in MX Linux), enabling read/write without sudo.

Verify Mount

sudo mount -a
df -h /media/data

If the mount succeeds, the configuration is complete.

Read/Write Test

# Write test
echo "test" > /media/data/test.txt

# Read test
cat /media/data/test.txt

# Cleanup
rm /media/data/test.txt

If test is displayed and cleanup completes without sudo, everything is working correctly.

Windows Verification

(1) Check Drive in File Explorer

Connect the USB drive to a Windows PC and verify the drive appears in File Explorer.

💡 Note
Only the exFAT partition (sdb3) is visible. ESP (sdb1) and Linux root (sdb2) are not visible from Windows.

Verification points:

  • The drive is recognized
  • The capacity matches the remaining space allocated to sdb3 (just over 30GB)

(2) Read/Write Test

Right-click the drive → “Properties” to confirm the file system is exFAT, then copy a file to test read/write.

Verification points:

  • File copy (write) completes successfully
  • The copied file can be opened (read)
  • The file can be deleted

References