Latest version 20/04/2026 - Broken?

I’m not sure if it is or isn’t. on my live system which is an RPI4b I have a pair of disks that were partitioned years ago. (sda and sdc below, sdb beiong the disk with the O/S) The partitions have a PARTUUID which were created when I partitioned the disks and the partitions also have a UUID. It seems odd to me that linux would have two ID mechanisms for a partition.

Previously (pre-dietpi) these disks were mounted using the PARTUUID sda1 being for boot and sda2 being rootfs. The disks are copies and I used to be able to swap between them in case of drive failure. See below..

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
NAME   FSTYPE LABEL   SIZE RO TYPE MOUNTPOINT     PARTUUID                             UUID
sda                   1.8T  0 disk
├─sda1 vfat   boot    256M  0 part                992de8da-01                          84C6-6EBB
├─sda2 ext4          14.6G  0 part                992de8da-02                          9803377f-ef12-48f5-947a-99e07888e81d
├─sda3                  4K  0 part                992de8da-03
├─sda5 ntfs           1.8T  0 part /mnt/backup    992de8da-05                          146DB48C10EBCB01
└─sda6 ext4          39.1G  0 part                992de8da-06                          447735c7-0ef9-4640-a146-5ad1013f2de4
sdb                 149.1G  0 disk
├─sdb1 vfat           128M  0 part /boot/firmware 29267926-01                          7858-4F7B
└─sdb2 ext4         148.9G  0 part /              29267926-02                          72d8889f-6f05-4326-ba6f-0d65e699f146
sdc                   1.8T  0 disk
├─sdc1 vfat   boot    256M  0 part                c96c3fa2-01                          8D64-2011
├─sdc2 ext4          14.6G  0 part                c96c3fa2-02                          da9c8008-a39a-4229-ab50-726154723bce
├─sdc3                  1K  0 part                c96c3fa2-03
├─sdc5 ntfs   Data    1.8T  0 part /mnt/data      c96c3fa2-05                          C83677EF3677DD3E
└─sdc6 ext4          39.1G  0 part                c96c3fa2-06                          6351b0e7-f874-4051-98c9-f310257fa79a

This system is different because it is a RPI 4b and I simply burned the o/s straight to a USB disk (sdb) and let it run. I think that is why in this case the O/S is using PARTUUID on sdb but dietpi seems to mount the other disk partitions on sda and sdc using UUID, see fstab below..

PHYSICAL DRIVES

#----------------------------------------------------------------
**PARTUUID**=29267926-02 / ext4 noatime,lazytime,rw 0 1
**PARTUUID**=29267926-01 /boot/firmware vfat noatime,lazytime,rw 0 2
**UUID**=C83677EF3677DD3E /mnt/data ntfs noatime,lazytime,rw,permissions,big_writes,noauto,x-systemd.automount
**UUID**=146DB48C10EBCB01 /mnt/backup ntfs noatime,lazytime,rw,permissions,big_writes,noauto,x-systemd.automount 

This is why I raised the point in our experimentation with the RPI3b as it uses UUID too.

Though the system is working fine, it just seems inconsistent to me and I may be making something out of nothing. At the very least, it may be just an observation.

Things changed over time and it’s different nowadays than it was in past

UUID is a filesystem-level feature, and mounting a drive by UUID requires some userland setup, like /dev/disk/by-uuid, or respective probing tools. These conditions are met within an initramfs, but not if the kernel is loaded without initramfs, and needs to mount the rootfs by itself.

PARTUUIDs are a partition-level feature, they exist even if the partition has not been formatted with a filesystem yet, and can be read from the partition table without any filesystem driver or probing tools. The kernel can do this on its own.

Hence, the root= kernel command-line argument should use the PARTUUID of the partition which contains the rootfs, instead of the UUID of the rootfs itself, as long as an initramfs is not guaranteed/expected in the setup.

In older DietPi versions, we for some reason used the PARTUUIDs on RPi as well for rootfs and bootfs entries in /etc/fstab, which was however never needed, and inconsistent (RPi-only). /etc/fstab is used by the init system (systemd), at a stage where udev block device setup has finished, and filesystem drivers can be loaded (as the kernel mounted the rootfs already). The / mount entry causes only a remount, to apply custom mount options, in case, trigger fsck etc (systemctl status systemd-remount-fs).

Practically, /etc/fstab can also use PARTUUIDs, with the same result. But those refer to partitions, not necessarily to filesystems. And even that each partition can practically only contain one filesystem, it makes sense to refer to filesystems explicitly. Also, on MBR partition tables, UUIDs are a lot longer than PARTUUIDs, hence better protect against possible collisions.

However, hence the switch from PARTUUID to UUID in /etc/fstab is expected, and won’t cause any practical difference. It is just an alignment and slight hardening of the exact filesystem reference on RPi systems, introduced with DietPi v10.3.

Thank you for that full explanation.I think I now understand.

Every day is a school day! :grinning_face:

Time for a little update…

I was going to ask whether it would be safe to go back to the stable version and what would happen if there was a firmware update as that is the kind of thing that broke my system and set me on this quest.

So today there was a firmware update to 14.1 (possibly) and it killed my system.

I thought I’d go and see what happened to cmdline.txt, fstab and well…

cmdline.txt (on SD Card)

������������a����	��
������
����������������������������e���������� ��!�

and fstab… (on USB Stick) seems intact

You can use "dietpi-drive_manager" to setup mounts.

tmpfs /tmp tmpfs size=1024M,noatime,lazytime,nodev,nosuid,mode=1777
UUID=a4474132-0820-4393-b73f-a480b7dfbe9f / ext4 noatime,lazytime,rw 0 1
UUID=624C-F49C /boot/firmware vfat noatime,lazytime,rw 0 2
/var/swap none swap sw

So something I’m guessing overwrote cmdline.txt also /boot/firmware/ is an empty folder

Not sure what you did on your system but there was no DietPi version release.

What was release is a kernel and a firmware update. Both are developed and maintained by the Raspberry Pi Foundation. We don’t maintain these ourself.

root@DietPiZ2W:~# apt list --upgradable
linux-image-rpi-v8/stable 1:6.18.29-1+rpt1 arm64 [upgradable from: 1:6.12.75-1+rpt1]
raspi-firmware/stable 1:1.20260513-1 all [upgradable from: 1:1.20260408-1]
root@DietPiZ2W:~#

Maybe the SD card got damaged during this resulting in data loss and data corruption.

If I can find a way to stop dietpi updating I can reinstall from the previous version and try again.

If it helps I was on the dev channel

The version of DietPi has nothing to do with kernel or firmware version. They are unrelated.
As said, kernel and firmware are developed by Raspberry Pi Foundation. They are the same across all DietPi versions and independent from DietPi branch

btw /boot/firmware/ is just a mount point for the vfat partition. If the system is off, and you place SD card in another system, it’s expected to be empty.

I’ll have a go at recreating it

OK, so I have tried many variations and all of them failed because I had to interrupt the apt updates (I guess).

I can and have got to a running system using the dev branch as above.

In summary, the reason I started this thread was because after an update (I think raspi-firmware) the system I had at that time failed. That system had multiple disk partitions because the main data partition was using ntfs (so that in a catastrophic failure at least I could plug the drive into a windows machine..if I had one). This means I needed a way to limit dietpi to just using a partition rather than the whole disk. If I enable the ‘boot from USB’ feature in the Pi and burn dietpi to one partition then maybe that would work, otherwise I can honestly see myself back here after the next firmware update.

And here we are.. Below is a log of a failed update today..

Before upgrade

root@DietPi:\~# uname -a
Linux DietPi 6.18.29+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.18.29-1+rpt1 (2026-05-12) aarch64 GNU/Linux

root@DietPi:\~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.4
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

I see this on login..

dietpi-update   : Run now to update DietPi from v10.4.0 (dev) to v10.5.-1 (dev)

DietPi-Update
─────────────────────────────────────────────────────
Phase: Checking for available DietPi update

\[  OK  \] DietPi-Update | Checking IPv4 network connectivity
\[  OK  \] DietPi-Update | Checking DNS resolver
\[ INFO \] DietPi-Update | Getting latest version from: https://raw.githubusercontent.com/MichaIng/DietPi/dev/.update/version
\[  OK  \] DietPi-Update | Got valid latest version: 10.5.-1
\[  OK  \] DietPi-Update | Update available:
\[ INFO \] DietPi-Update | Current version : v10.4.0
\[ INFO \] DietPi-Update | Latest version  : v10.5.-1

DietPi-Update
─────────────────────────────────────────────────────
Phase: Checking for update pre-requirements

\[  OK  \] DietPi-Update | DietPi-Userdata validation: /mnt/dietpi_userdata
\[  OK  \] DietPi-Update | Free space check: path=/ | available=10145 MiB | required=100 MiB
\[ SUB1 \] DietPi-Services > stop
\[  OK  \] DietPi-Services | stop : cron

DietPi-Update
─────────────────────────────────────────────────────
Phase: Applying pre-patches

\[  OK  \] DietPi-Update | Downloading pre-patches
\[  OK  \] DietPi-Update | Applying execute permission
\[  OK  \] DietPi-Update | Successfully applied pre-patches

DietPi-Update
─────────────────────────────────────────────────────
Phase: Upgrading APT packages

\[ INFO \] DietPi-Update | APT update, please wait...
Get:1 https://deb.debian.org/debian trixie InRelease \[140 kB\]
Get:2 https://archive.raspberrypi.com/debian trixie InRelease \[54.9 kB\]
Get:3 https://deb.debian.org/debian trixie-updates InRelease \[47.3 kB\]
Get:4 https://deb.debian.org/debian-security trixie-security InRelease \[43.4 kB\]
Get:5 https://deb.debian.org/debian trixie-backports InRelease \[54.0 kB\]
Get:6 https://dietpi.com/apt trixie InRelease \[2140 B\]
Get:7 https://dietpi.com/apt all InRelease \[31.8 kB\]
Get:8 https://deb.debian.org/debian trixie/main arm64 Packages \[9608 kB\]
Get:9 https://archive.raspberrypi.com/debian trixie/main arm64 Packages \[449 kB\]
Get:10 https://dietpi.com/apt trixie/main arm64 Packages \[5388 B\]
Get:11 https://deb.debian.org/debian trixie-backports/main arm64 Packages.diff/Index \[63.3 kB\]
Get:12 https://deb.debian.org/debian-security trixie-security/main arm64 Packages \[166 kB\]
Get:13 https://deb.debian.org/debian trixie-backports/main arm64 Packages T-2026-05-21-0803.20-F-2026-05-14-2002.56.pdiff \[30.3 kB\]
Get:13 https://deb.debian.org/debian trixie-backports/main arm64 Packages T-2026-05-21-0803.20-F-2026-05-14-2002.56.pdiff \[30.3 kB\]
Fetched 10.7 MB in 7s (1479 kB/s)

during the update, this is the line that worried me..

Unpacking raspi-firmware (1:1.20260521-1) over (1:1.20260513-1) ...

Because raspi udpdates perviously killed the system running in this configuration

Here we go..

│ Errors were encountered while processing:^M
│  raspi-firmware^M
│ E: Sub-process /usr/bin/dpkg returned an error code (1)
│
│                         Retry          : Re-run the last command that failed                ↑

                            │                         DietPi-Config  : Edit network, APT/NTP mirror settings etc       

│ Setting up raspi-firmware (1:1.20260521-1) ...^M
│ cp: cannot create regular file '/boot/firmware/LICENCE.broadcom': Read-only file system^M
│ cp: cannot create regular file '/boot/firmware/bootcode.bin': Read-only file system^M
│ cp: cannot create regular file '/boot/firmware/fixup.dat': Read-only file system^M
│ cp: cannot create regular file '/boot/firmware/fixup4.dat': Read-only file system^M
│ cp: cannot create regular file '/boot/firmware/fixup4cd.dat': Read-only file system^M
│ cp: cannot create regular file '/boot/firmware/fixup4db.dat': Read-only file system^M
│ cp: cannot create regular file '/boot/firmware/fixup4x.dat': Read-only file system^M
│ cp: cannot create regular file '/boot/firmware/fixup_cd.dat': Read-only file system^M
│ cp: cannot create regular file '/boot/firmware/fixup_db.dat': Read-only file system^M
│ cp: cannot create regular file '/boot/firmware/fixup_x.dat': Read-only file system^M

What was again the reason you do not boot from USB directly, but keep the bootfs on the SD card? The SD card is dying it seems, as you faced the corrupted cmdline.txt 9 days ago, now R/O remount, most likely due to an I/O or filesystem error.

Apologies for the delay in responding.

My initial setup (pre-dietpi) was a Rock64 booting and running from a USB HDD having used the ayufan bootloader. This had been running for 10 years and gone through several o/s upgrades. i noticed that the ayufan software had not been updated since 2021(?) and so deiced to refresh the whole system. Despite several attempts to get dietpi to boot from that same HDD it failed and the rock64 paid the ultimate price when the SD card holder disintegrated. This has made me wary of bootloader software!

My second system was a raspberry PI3b which again had been running from the o/s on a HDD and with the boot partition on the SD card. Again this had been running faultlessly for 10 years and is now the subject of updating to dietpi.. reliably.

The two worked together, Rock64 web/email server and Pi3b databases and NAS with two disks that did a periodic sync.

In my original attempt to “transfer rootfs” to the HDD I noticed that dietpi likes to use the entire disk. 2TB for the o/s is excessive IMHO and I’m more than glad I had a second 2TB disk which contained a copy of all of my data.

This lead me to see if dietpi could occupy a partition rather than the whole disk. my 2TB disks are partitioned as 20GB ext4 for O/S and the rest NTFS for data - NTFS is a hang up but it means that if everything fails almost any other system will be able to read that data (Windows, Linux etc..)

I have used several brand new SD Cards, I know they die but not this quickly and the previous one in the PI3b from which it booted ran for 10 years!

In my experience, the dietpi death always, 100% happens when there is a raspi-firmware update, irrespective of the age of the card.. 100%.. This is why I was able to capture the before and after upgrade data above. I saw the raspi-firmware update was in the apt upgrade list and I knew what was about to happen.

This thread then has at least shown that dietpi can now occupy an HDD partition and not the whole disk .. is that only in the dev branch?

If you are minded to, you could set up a similar system .. Pi3b, booting from SD card and running on USB SSD/stick .. everything will be fine until the next raspi-firmware update. - I would be interested to see any results of such a test.

My current system is a Raspberry 4b 4GB with a 250GB WD Green SSD running from SSD entirely.. a vanilla system if you like. The 2 2TB disks are also on this system and are copies of each other.

It is not the configuration I wanted, as I wanted to have the 2TB USB HDD disks on the Pi3b away from the web facing 4b.

Unless there is anything else I could try, I will have another attempt in the near future at transferring the system to the 2TB USB HDD but into the 20GB partition and hopefully keep the data. This time round using the Raspberry one time USB boot thingy.

It works without issues for almost everyone else. But the raspi-firmware upgrade is almost the only situation with significant writes to the /boot/firmware partition. So if the card/drive which holds this partition has any issues, the firmware upgrade has a high chance of triggering resulting I/O errors. However, the firmware upgrade is not causing the issues.

But to clarify: So the /boot/firmware partition is on the SD card, while the rootfs / is on the HDD, resp. a partition of the HDD? Since the RPi 3B supports native USB boot (after programming it once, which can be done via dietpi-config), I’d absolutely have /boot/firmware as first partition of the HDD, rootfs as 2nd partition (just as if you flash a DietPi image to the HDD), and then you can still shrink that 2nd partition to add a separate data partition, if wanted. But I personally see no real benefit if using a separate data partition, if it is on the same drive anyway. Just adds overhead. On Linux, whether dedicated partition or not, it is anyway just another directory. Ah, though NTFS was the argument. You might want to switch from ntfs-3g to the newer in-kernel ntfs3 driver: DietPi-Drive_Manager | Add native Paragon NTFS driver support · Issue #5129 · MichaIng/DietPi · GitHub
Need to check again whether Debian (Trixie) and the RPi kernel finally have that driver included, so it becomes worth implementing support for it into dietpi-drive_manager.

There was never an issue with it, was it? But you need to shrink the rootfs and add the partition yourself, as our images are full drive images.

Thanks for the clarification.

I’ll get round to this in a few days. I can repartition the disks as you suggest and maybe increase the space for the o/s while I’m at it…

Regards
Tim

Thanks for all your help guys. I have managed to get it all working now