TL;DR
When installing OMV on big USB-Sticks (e.g. 64 GB), the installation fails if the system partition is formatted either with EXT4 or BTRFS.
Long Story
I recently decided to switch to BTRFS for the system partition, to be able to create snapshots before an update. To have enough space left for a few snapshots, I bought myself USB-Sticks with 64 GB.
I installed Debian using the official installation media. The installation was successful.
I then installed OMV using this script:
wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash
The installation of OMV failed and the file system went read only.
I first suspected a faulty USB-Stick, but I tested it with 4 sticks of that size - always the same.
I only could get it to work with an 8 GB USB-Stick. 16 GB also fails.
I then suspected that maybe the NAS could have a problem with its USB port. Therefore I tried it on on two other NASes (I even bought myself another one, because at first I was really convinced, that the NAS was broken).
But all NASes (all from QNAP, but different models and ages) behaved the same. Installation on 8 GB was fine, installation on 16 GB or 64 GB stick failed.
I even tried both architectures (64 bit & 32 bit), same for both.
That was when I started to really test it systematically and also write it all down...
Seems this behavour is depending on the size of the system partition AND on the file system.
XFS, JFS and EXT3 work fine. OMV can be installed even on big sticks and it works.
On EXT4 and BTRFS the installation fails.
Out of curiosity I also tested the official installation media provided for OMV.
Since it uses EXT4, it also fails -- well sort of.
The installation itself works well, but after a reboot of the system, I start to get error messages.
I also tested different sizes for the system partition on the 64 GB Stick. A size of 7,2 GB for the system partition still works, a size of 7,5 GB fails.
To make that clear: I can get a 64 GB stick to work, if either I use one of XFS, JFS or EXT3 OR if I create on the big stick a small system partition.
I also created a separate small partition of 1 GB for /boot, but that doesn't change anything: When the system partition is bigger than 8 GB and contains as FS EXT4 or BTRFS, the installation fails (the FS on the /boot partition can be any).
Spinning disks and SSDs (NVMe) don't seem to be affected by this.
I have another NAS, where I have the system partition on a NVMe SSD on a partition of about 160GB, which works fine. And I also tested an installation on a 55 GB Partition on a SATA HDD which also worked fine.
If the installation fails, it always fails at the same place, no matter if EXT4 or BTRFS is used.
In the attached file I provide the last lines on the shell of one of the failed attempts (using EXT4) and the output of dmesg.
Any help how I can get OMV installed on a 64 GB USB-Stick on BTRFS would be greatly appreciated.
If more logs or anything else is needed, I can reproduce this anytime and provide any needed information.
Thanks in advance.