# First Run on running system

**URL:** <https://dietpi.com/forum/t/first-run-on-running-system/24508>\
**Category:** General Discussion\
**Created:** [8 October 2025 09:52 UTC](https://dietpi.com/forum/t/first-run-on-running-system/24508 "2025-10-08T09:52:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![fow0ryl](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/f/df788c/32.png) [@fow0ryl](https://dietpi.com/forum/u/fow0ryl)\
**Post date:** [8 October 2025 09:52 UTC](https://dietpi.com/forum/t/first-run-on-running-system/24508/1 "2025-10-08T09:52:21Z")

</div>

Hello,  
is it possible to force a first run setup on already running system?  
Are all values defined in /boot/dietpi.txt (re)applied?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [8 October 2025 10:10 UTC](https://dietpi.com/forum/t/first-run-on-running-system/24508/2 "2025-10-08T10:10:30Z")

</div>

Can you provide a little more background information on what exactly you want to achieve with this?

---

<div class="post-metadata">

**Author:** ![fow0ryl](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/f/df788c/32.png) [@fow0ryl](https://dietpi.com/forum/u/fow0ryl)\
**Post date:** [8 October 2025 10:55 UTC](https://dietpi.com/forum/t/first-run-on-running-system/24508/3 "2025-10-08T10:55:46Z")

</div>

I have running some dietpi-lxc containers on proxmox.  
Sadly there is only a VM of dietpi available for proxmox.  
So you have do the conversion step from VM to CT every time you like to install a new CT …

Because of this I decided to create a template from a running dietpi-lxc. Works so far, but I get all configuration like done before.

Sometimes this is not what I want.  
I would like to have a CT, but just like a fresh dietpi installation…  
Maybe there is a file or something else that indicates that the first run setup is done, and I just have to remove this file 🙂

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [9 October 2025 18:04 UTC](https://dietpi.com/forum/t/first-run-on-running-system/24508/4 "2025-10-09T18:04:05Z")

</div>

you would need to enable the first run service

```auto
systemctl enable dietpi-firstboot

```

adjust `/boot/dietpi/.install_stage` to `-1`  
and maybe remove `/boot/dietpi/.installed` as well

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [9 October 2025 19:58 UTC](https://dietpi.com/forum/t/first-run-on-running-system/24508/5 "2025-10-09T19:58:14Z")

</div>

Another idea would be to run the [dietpi-installer](https://raw.githubusercontent.com/MichaIng/DietPi/refs/heads/master/.build/images/dietpi-installer) on the system, shutdown, and create the template then. This would be cleanest, resetting it to the stage of a fresh image that was never booted.

To only rerun all first boot setup steps (also re-applying settings from `dietpi.txt` or dialogs), enabling the `dietpi-firstboot` is fine. Not even needed to change the `.install_stage`, since `dietpi-firstboot` sets it to `0` anyway, triggering first run update and setup prompts on next login. Does not hurt to leave `/boot/dietpi/.installed` in place then, to indicate installed software correctly, even if you installed something else, switched from Dropbear to OpenSSH or such.

---

<div class="post-metadata">

**Author:** ![fow0ryl](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/f/df788c/32.png) [@fow0ryl](https://dietpi.com/forum/u/fow0ryl)\
**Post date:** [10 October 2025 11:05 UTC](https://dietpi.com/forum/t/first-run-on-running-system/24508/6 "2025-10-10T11:05:24Z")

</div>

Hello,  
first of all, thank you for your support.

Enabling the firstboot service works fine so far.

But I get this error after reboot.

```auto
tune2fs: Datei oder Verzeichnis nicht gefunden while trying to open /dev/loop8
Couldn’t find valid filesystem superblock.

```

Looks like the firstboot process stops after this error….

is it possible to supress calling tune2fs in a lxc container ?

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [13 October 2025 18:20 UTC](https://dietpi.com/forum/t/first-run-on-running-system/24508/7 "2025-10-13T18:20:30Z")

</div>

This is fixed for DietPi v9.18. v9.17 enabled image generation without ext4 journal, generating it on first boot after filesystem expansion. Since the journal is essential to protect against data loss on crashes etc, it is checked on first login. But containers usually have no access to the block devices, hence cannot create a journal and cannot really check whether one exists either … though maybe there is another way than using `tune2fs` 🤔.

However, v9.18 shows an info but allows you to continue the setup if the rootfs block device does not exist.

Workaround:

```sh
sudo sed -i 's/! tune2fs/tune2fs/' /boot/dietpI/dietpi-login

```

EDIT: Testing some ways to check for a journal within a container. Can you show the output of these commands please?

```auto
dmesg | grep "EXT4-fs (${G_ROOTFS_DEV#/dev/}): .* with [a-z]* data mode"
grep -E '^(journal_checksum|data=)' "/proc/fs/ext4/${G_ROOTFS_DEV#/dev/}/options"

```

---

<div class="post-metadata">

**Author:** ![fow0ryl](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/f/df788c/32.png) [@fow0ryl](https://dietpi.com/forum/u/fow0ryl)\
**Post date:** [13 October 2025 21:09 UTC](https://dietpi.com/forum/t/first-run-on-running-system/24508/8 "2025-10-13T21:09:48Z")

</div>

Output of this is nothing …  
`dmesg | grep "EXT4-fs (${G_ROOTFS_DEV#/dev/}): .* with [a-z]* data mode"`

I guess because dmesg ist not allowed

```auto
dmesg: read kernel buffer failed: Die Operation ist nicht erlaubt

```

but this works …

```auto
grep -E '^(journal_checksum|data=)' "/proc/fs/ext4/${G_ROOTFS_DEV#/dev/}/options"
journal_checksum
data=ordered

```

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [11 January 2026 21:10 UTC](https://dietpi.com/forum/t/first-run-on-running-system/24508/9 "2026-01-11T21:10:41Z")

</div>

Closed on 11 January 2026 21:10 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
