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 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
- (A) An MX Linux Live USB must already be created. See “MX Linux: A Lightweight Maintenance Linux Distribution That Boots from USB” for the creation procedure.
- This guide follows the procedure for MX Linux 25.1, the latest version at the time of writing (March 2026).
- (B) Prepare a 64GB USB drive with USB 3.2 Gen.2 support as the installation target.
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 |
Partition Layout
The partition layout for (B) USB drive is as follows.
| # | 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 |
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)
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.
- Right-click on unallocated space → select “New”
- Enter the values from the table above
- 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.
- Right-click
sdb1→ select “Flags” - Check boot (at this point, the
msftdatacheckbox will be automatically unchecked) - Check esp
- Click “Close”
The setup is complete when the “Flags” column for sdb1 shows only boot, esp.
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.
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.
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 |
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) |
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 |
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.
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.
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
DelorF2key)
(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.
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
- MX Linux - Official MX Linux website
- MX-25.1 “Infinity” ISOs now available! - MX Linux 25.1 release announcement (January 19, 2026)
- MX Linux User Manual - Official MX Linux documentation and user guides
- Some basics of MBR vs GPT and BIOS vs UEFI - Manjaro Wiki: clear explanation of boot methods and partition table types
- What Are USB Gen 1, Gen 2, and Gen 2x2? - How-To Geek: USB 3.2 generations and transfer speeds explained
- zram - ArchWiki: technical reference for zram swap on Linux