Hi all, I’ve just removed my SD card to make an image backup and upon restarting my setup, I get this error.
-bash: /DietPi/dietpi/func/dietpi-globals: No such file or directory
grep: /DietPi/dietpi.txt: No such file or directory
-bash: /DietPi/dietpi/dietpi-login: No such file or directory
I’m running an Odroid C2, with DietPi base and Home Assistant installed.
Hoping someone can help me with this, as I made quite a few changes since my last backup (only 3 days ago)
Hi, this is what I’m getting and really dont know how to fix it. I appreciate the help:
-- Logs begin at Wed 2019-10-16 10:28:41 CEST, end at Wed 2019-10-16 10:32:53 CEST. --
Oct 16 10:28:45 DietPi systemd[1]: Starting DietPi-RAMdisk...
Oct 16 10:28:45 DietPi dash[221]: /bin/dash: 1: /boot/dietpi/func/dietpi-ramdisk: Exec format error
Oct 16 10:28:45 DietPi systemd[1]: diet
pi-ramdisk.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Oct 16 10:28:45 DietPi systemd[1]: diet
pi-ramdisk.service: Failed with result 'exit-code'.
Oct 16 10:28:45 DietPi systemd[1]: Fail
ed to start DietPi-RAMdisk.
If this works well now, please try to start the service: systemctl start dietpi-ramdisk
Verify via tail -1 /var/tmp/dietpi/logs/dietpi-ramdisk.log.
If this works as well, please reboot.
Thanks for replying mate. Dash gives success. I downloaded the script.
/boot/dietpi/func/dietpi-ramdisk 0
Gives:
Wed Oct 16 14:01:11 CEST 2019 | DietPi-RAMdisk: Copying DietPi to RAM...
Wed Oct 16 14:01:11 CEST 2019 | DietPi-RAMdisk: DietPi is already in RAM. Aborting...
Seferi
Not required so far, although it looks like some data corruption if bash sees our globals script as binary… It is a plain text bash script.
However RAMdisk HAS indeed been loaded and at least the main script meta data look fine.
Which DietPi version do you use? I guess v6.25?
If so please try the following to have all together updated to v6.26 and hopefully fixed:
Thanks mate. I updated as you described and after reboot I’m getting:
-bash: /DietPi/dietpi/func/dietpi-globals: No such file or directory
[FAILED] DietPi-Login | Failed to load DietPi-Globals. Skipping DietPi login scripts...
Seferi
Wow, head -5 /boot/dietpi/func/dietpi-ramdisk didn’t output anything? I believe your SDcard is somehow damaged then. Strange that the meta data still shows a file size. What happens if you open the file in an editor? nano /boot/dietpi/func/dietpi-ramdisk.
Not sure how to fix best. We could do a last attempt to re-download all matching DietPi scripts to your SDcard and manually sync to RAMdisk, however high likely they will be damaged again after reboot or such. I am just wondering that neither systemd nor kernel (dmesg) reports any related errors .
Ah or did you actually already check it: dmesg | tail -10
[620929.358025] systemd[1]: Detected architecture arm.
[620929.705095] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[620929.705134] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[620930.254821] systemd[1]: getty@tty1.service: Current command vanished from the unit file, execution of the command list won’t be resumed.
[620930.888029] systemd-journald[104]: Received SIGTERM from PID 1 (systemd).
[620930.896879] systemd[1]: Stopping Journal Service…
[620930.901047] systemd[1]: systemd-journald.service: Succeeded.
[620930.904612] systemd[1]: Stopped Journal Service.
[620930.928448] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[620930.940447] systemd[1]: Starting Journal Service…
I’m probably gonna get a new sdcard if you think thats the problem. Sorry for the late reply.