Repository navigation
Host Directory Filesystem Metadata
When Amiberry mounts a host directory as an Amiga volume (via Add Directory in the HDD Panel), it needs to handle the differences between Amiga and host filesystem naming conventions and metadata.
Amiga filenames can contain characters that are illegal or problematic on host filesystems (Windows, macOS, Linux). The UAE filesystem layer automatically translates these using %xx hex encoding:
| Amiga Filename | Host Filename | Reason |
|---|---|---|
*BLUE3 |
%2aBLUE3 |
* is a wildcard on host |
IFT? |
IFT%3f |
? is a wildcard on host |
Booster???.iff |
Booster%3f%3f%3f.iff |
Multiple ? characters |
noisy pillars 99%.ahx |
noisy pillars 99%25.ahx |
% itself must be escaped |
USE A DATA DISK |
USE A DATA DISK%20 |
Trailing space |
hund. |
hund%2e |
Trailing period |
The following characters are encoded as %xx when saving Amiga filenames to the host filesystem:
| Character | Hex Code | Reason |
|---|---|---|
% |
%25 |
Escape character itself |
\ |
%5c |
Path separator (Windows) |
* |
%2a |
Wildcard |
? |
%3f |
Wildcard |
" |
%22 |
Quoting character |
/ |
%2f |
Path separator |
| |
%7c |
Pipe character |
< |
%3c |
Redirection |
> |
%3e |
Redirection |
| Control chars (0-31) | %xx |
Non-printable |
This escaping scheme is compatible with FS-UAE. Host directories prepared for FS-UAE (including %xx-escaped filenames) will work correctly when mounted in Amiberry.
Note: Amiberry improves on FS-UAE's decoder by validating that both characters after
%are valid hexadecimal digits before decoding. A literal%followed by non-hex characters (e.g.,99%.ahx) is passed through unchanged rather than being silently corrupted.
Amiga file names use the ISO-8859-1 (Latin-1) character set. Host file names are converted between Latin-1 and the host's Unicode names in both directions:
- Names made only of Latin-1 characters work both ways. A host file called
café.txtor a folder calledA Jacarandáappears on the Amiga side with the same name, and a file the Amiga creates asdéjà vu.txtappears on the host asdéjà vu.txt. - Host names containing any character outside Latin-1 are left out of the Amiga directory listing. This includes Japanese, Chinese, Cyrillic and Greek letters, emoji, and also the euro sign
€. The Amiberry log showsmy_readdir: skipping non-Latin-1 filename: <name>for the first 20 such names. Rename these files on the host if the Amiga needs to see them. - The path of the mounted folder itself is not limited to Latin-1. Only the names inside the volume pass through the Amiga character set, so a folder such as
/home/josé/Amiga,C:\Users\Zoë\Músicaor one under a Japanese or Cyrillic user name can be mounted on any host.
Note: Amiberry 8.5.0 and earlier had these problems with non-ASCII names:
- Windows: a host file or folder whose name ended in an accented letter (such as
A Jacarandáorcafé) made the emulated Amiga hang when the directory was read, and Amiberry then hung on reset or quit. Accented letters elsewhere in a name showed up as?, and those files could not be opened.- All hosts: a mounted folder whose own path contained non-ASCII characters often did not come up at all. On Linux and macOS that was any such path. On Windows it was a path picked with the folder dialog.
- Linux and macOS: with
filesys_custom_uaefsdb=false, the_UAEFSDB.___file was not written in folders with accented names.Later versions handle all of these as described above.
Amiga files have metadata that host filesystems cannot natively represent:
- Protection bits: HSPARWED (Hidden, Script, Pure, Archive, Read, Write, Execute, Delete)
- File comments: Free-form text notes attached to files
- Timestamps: Amiga uses a different time format with 1/50-second (tick) precision
Amiberry stores this metadata in .uaem sidecar files — small text files placed alongside each file that needs non-default metadata.
For a file named myfile.txt, the sidecar is myfile.txt.uaem:
----rwed 2024-03-15 14:30:22.50 optional file comment
| Field | Position | Format | Description |
|---|---|---|---|
| Protection | Chars 1-8 |
hsparwed or -
|
Each char: flag letter if set, - if not |
| Timestamp | After space | YYYY-MM-DD HH:MM:SS.CC |
UTC time, CC = centiseconds |
| Comment | After timestamp + space | Free text | Optional, up to end of line |
| Position | Letter | Amiga Bit | Meaning |
|---|---|---|---|
| 1 | h |
HIDDEN | File is hidden |
| 2 | s |
SCRIPT | File is a script |
| 3 | p |
PURE | File can be made resident |
| 4 | a |
ARCHIVE | File has been archived |
| 5 | r |
READ | Read permission |
| 6 | w |
WRITE | Write permission |
| 7 | e |
EXECUTE | Execute permission |
| 8 | d |
DELETE | Delete permission |
Default protection for new files is ----rwed (read, write, execute, delete allowed).
Amiberry only creates .uaem sidecar files when metadata differs from defaults:
- Protection bits are not
----rwed - A file comment is set
- Timestamp precision would be lost by the host filesystem
This means no .uaem files are created for normal usage — they only appear when Amiga programs explicitly change file attributes, add comments, or when preserving FS-UAE-compatible trees.
| Format | Read | Write | Notes |
|---|---|---|---|
.uaem sidecars (FS-UAE) |
Yes | Yes | Full read/write support |
_UAEFSDB.___ (WinUAE) |
Yes | Yes | Binary format, takes priority over .uaem when both exist |
filesys_no_fsdb=false-
false(default): Enable filesystem metadata support (.uaemsidecars and_UAEFSDB.___) -
true: Disable all metadata — files use host permissions only, no comments or Amiga-specific protection bits
filesys_custom_uaefsdb=true-
true(default): Enable.uaemsidecar support for name translation and metadata -
false: Only use_UAEFSDB.___binary format
If files with names like %2aBLUE3 are not visible from the Amiga side, check:
- The host directory is mounted as a virtual filesystem directory (not a hardfile)
-
filesys_no_fsdbis set tofalsein your configuration - The Amiberry log does not show
illegal filenameorillegal directory nameerrors - For names with characters outside Latin-1, see Accented and Other Non-ASCII File Names
This is normal behavior when Amiga programs change file attributes or add comments. The .uaem files are automatically hidden from the Amiga side. They are small text files that can be safely deleted if you don't need to preserve Amiga metadata.
Host directory trees prepared for FS-UAE (with %xx-encoded filenames and .uaem sidecars) should work directly when mounted in Amiberry. No conversion is needed.
- Home
- Quick Start
- Android
- Troubleshooting
- Frequently Asked Questions
- Paths and Files
- Kickstart ROMs (BIOS)
- Amiberry Directories
- Compile from Source
- Using Amiberry with RetroPie
- How to Enable Integer Scaling
- RP9 Packages
- WHDLoad Auto-booting
- WHDLoad Workflow
- WHDLoad Booter FAQ
- WHDLoad DB Structure
- WHDLoad DB Structure (legacy XML)
- Start & Settings
- Hardware
- Media & Storage
- Display & Audio
- Input & Control
- System & Runtime
- Input Mapping Guide
- Setting up Input Controllers
- Setting up Keyboard Controllers
- Custom Events
- RetroArch Commands
- Mouse/Joystick Autoswitching