Dietpi-postboot.service - Failed

Hi

DietPi v8.14.2
Device model : RPi B (armv6l)

I have moved root filesystem to Usb flash drive, the Boot partition is on SD Card

lsblk shows:

root@DietPi:~# lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda           8:0    1 28.9G  0 disk
└─sda1        8:1    1 28.9G  0 part /
mmcblk0     179:0    0  1.9G  0 disk
├─mmcblk0p1 179:1    0  128M  0 part /boot
└─mmcblk0p2 179:2    0  1.7G  0 part

dietpi-services status shows:

root@DietPi:~# dietpi-services status

 DietPi-Services
─────────────────────────────────────────────────────
 Mode: status

[ INFO ] DietPi-Services | proftpd               inactive (dead)
[ INFO ] DietPi-Services | cron                  inactive (dead)
[  OK  ] DietPi-Services | dropbear              active (running) since Sat 2023-02-18 17:44:37 GMT; 20h ago
[ INFO ] DietPi-Services | dietpi-vpn            inactive (dead)
[ INFO ] DietPi-Services | dietpi-cloudshell     inactive (dead)
[  OK  ] DietPi-Services | dietpi-ramlog         active (exited) since Sat 2023-02-18 17:44:37 GMT; 20h ago
[  OK  ] DietPi-Services | dietpi-preboot        active (exited) since Sat 2023-02-18 17:44:41 GMT; 20h ago
[FAILED] DietPi-Services | ● dietpi-postboot.service - DietPi-PostBoot
     Loaded: loaded (/etc/systemd/system/dietpi-postboot.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/dietpi-postboot.service.d
             └─dietpi.conf
     Active: failed (Result: exit-code) since Sat 2023-02-18 17:44:48 GMT; 20h ago
    Process: 389 ExecStart=/boot/dietpi/postboot (code=exited, status=209/STDOUT)
   Main PID: 389 (code=exited, status=209/STDOUT)
        CPU: 9ms

Feb 18 17:44:46 DietPi systemd[1]: Started DietPi-PostBoot.
Feb 18 17:44:48 DietPi systemd[389]: dietpi-postboot.service: Failed to set up standard output: No such device
Feb 18 17:44:48 DietPi systemd[389]: dietpi-postboot.service: Failed at step STDOUT spawning /boot/dietpi/postboot: No such device
Feb 18 17:44:48 DietPi systemd[1]: dietpi-postboot.service: Main process exited, code=exited, status=209/STDOUT
Feb 18 17:44:48 DietPi systemd[1]: dietpi-postboot.service: Failed with result 'exit-code'.
[ INFO ] DietPi-Services | dietpi-wifi-monitor   inactive (dead)

what does it mean how to fix it?

There seems to be some more issues as other services are not running as well. How did you transfer RootFS?

Can you check for kernel error messages

dmesg -l err,crit,alert,emerg

As well some system logs

journalctl -u proftpd
journalctl -u cron

rsync -axv / /usb/mnt

kernel error messages:

root@DietPi:~# dmesg -l err,crit,alert,emerg
[    2.963276] Warning: unable to open an initial console.
[   11.603916] sd 0:0:0:0: [sda] No Caching mode page found
[   11.603974] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   39.646274] vc_sm_cma_vchi_init: failed to open VCHI service (-1)
[   39.646325] [vc_sm_connected_init]: failed to initialize shared memory service
[   41.481978] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1)

system logs:

root@DietPi:~# journalctl -u proftpd
-- Journal begins at Sun 2023-02-19 21:09:47 GMT, ends at Tue 2023-02-21 08:31:06 GMT. --
-- No entries --

root@DietPi:~# journalctl -u cron
-- Journal begins at Sun 2023-02-19 21:09:47 GMT, ends at Tue 2023-02-21 08:31:06 GMT. --
-- No entries --

ok can you revert your change pls. Once your system is running on original configuration, you should have a look to drive manager. Usually there should be an option to move RootFS.

1 Like