Failed to load DietPi-Globals

Having issues with your DietPi installation or found a bug? Post it here.
chucklesmcgee
Posts: 46
Joined: Tue Jun 02, 2020 7:19 pm

Failed to load DietPi-Globals

Post by chucklesmcgee »

I used DietPi-Drive Manager to check and fix my boot disk, which I suspected had errors. After reboot, logging in via Putty I get

Code: Select all

-bash: /boot/dietpi/func/dietpi-globals: No such file or directory
[FAILED] DietPi-Login | Failed to load DietPi-Globals. Skipping DietPi login scripts..
And then other dietpi commands are not found.

Did I kill my boot disk? Any other options besides digging up the backup, which I suspect still has the same errors?
User avatar
Joulinar
Posts: 4249
Joined: Sat Nov 16, 2019 12:49 am

Re: Failed to load DietPi-Globals

Post by Joulinar »

Hi,

can you have a look to the folder

ls -la /boot/dietpi/func/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
chucklesmcgee
Posts: 46
Joined: Tue Jun 02, 2020 7:19 pm

Re: Failed to load DietPi-Globals

Post by chucklesmcgee »

Code: Select all

root@DietPi:~# ls -la /boot/dietpi/func/
ls: cannot access '/boot/dietpi/func/': No such file or directory
:cry:
User avatar
Joulinar
Posts: 4249
Joined: Sat Nov 16, 2019 12:49 am

Re: Failed to load DietPi-Globals

Post by Joulinar »

hmm that did not look healthy. what about DietPi script directory ls -la /boot/dietpi/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
chucklesmcgee
Posts: 46
Joined: Tue Jun 02, 2020 7:19 pm

Re: Failed to load DietPi-Globals

Post by chucklesmcgee »

Code: Select all

root@DietPi:~# ls -la /boot/dietpi/
ls: cannot access '/boot/dietpi/': No such file or directory
:-(
User avatar
Joulinar
Posts: 4249
Joined: Sat Nov 16, 2019 12:49 am

Re: Failed to load DietPi-Globals

Post by Joulinar »

Ok last check ls -la /
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
chucklesmcgee
Posts: 46
Joined: Tue Jun 02, 2020 7:19 pm

Re: Failed to load DietPi-Globals

Post by chucklesmcgee »

Code: Select all

root@DietPi:~# ls -la /
total 84
drwxr-xr-x  22 root root  4096 Mar  5 13:06 .
drwxr-xr-x  22 root root  4096 Mar  5 13:06 ..
lrwxrwxrwx   1 root root     5 Jun  2  2020 DietPi -> /boot
drwxr-xr-x   2 root root  4096 Feb  8 08:31 bin
drwxr-xr-x   2 root root  4096 Sep 25  2019 boot
drwxr-xr-x  17 root root  3680 Mar  5 13:13 dev
drwxr-xr-x 110 root root  4096 Mar  5 12:55 etc
-rw-r--r--   1 root root     0 Mar  5 13:06 forcefsck
drwxr-xr-x   6 root root  4096 Feb 17 17:06 home
drwxr-xr-x  17 root root  4096 Jun  2  2020 lib
drwx------  75 root root 16384 Sep 25  2019 lost+found
drwxr-xr-x   2 root root  4096 Aug  5  2020 media
drwxr-xr-x  10 root root  4096 Oct 19 08:36 mnt
drwxr-xr-x   4 root root  4096 Sep 19 08:44 noip-renew
drwxr-xr-x   8 root root  4096 Jan 12 08:11 opt
dr-xr-xr-x 151 root root     0 Dec 31  1969 proc
drwx------  20 root root  4096 Mar  5 13:12 root
drwxr-xr-x  27 root root   720 Mar  5 13:13 run
drwxr-xr-x   2 root root  4096 Feb  8 08:31 sbin
drwxr-xr-x   2 root root  4096 Aug  9  2020 srv
dr-xr-xr-x  12 root root     0 Dec 31  1969 sys
drwxrwxrwt   2 root root  4096 Oct 19 10:00 tmp
drwxr-xr-x  10 root root  4096 Jan  7  2020 usr
drwxr-xr-x  12 root root  4096 Oct 19 10:04 var
User avatar
Joulinar
Posts: 4249
Joined: Sat Nov 16, 2019 12:49 am

Re: Failed to load DietPi-Globals

Post by Joulinar »

ok you are missing the entire DietPi script folder. But this we already know. It would be possible to download all scripts but no guarantee that this is working. There might be more thinks missing. Do you know if you already updated to v7? Or what was your last version?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
chucklesmcgee
Posts: 46
Joined: Tue Jun 02, 2020 7:19 pm

Re: Failed to load DietPi-Globals

Post by chucklesmcgee »

I believe it was at 6.33- I was encountering issues with checksum corruption when I was trying to update previously.
User avatar
Joulinar
Posts: 4249
Joined: Sat Nov 16, 2019 12:49 am

Re: Failed to load DietPi-Globals

Post by Joulinar »

did you already run a fsck on reboot:

Code: Select all

> /forcefsck
reboot
Check the results, either with cat /run/initramfs/fsck.log or journalctl -t systemd-fsck.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply