Failed to load DietPi-Globals

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

Re: Failed to load DietPi-Globals

Post by chucklesmcgee »

Code: Select all

root@DietPi:~# > /forcefsck
-bash: /forcefsck: Read-only file system
I'm probably doing something dumb...
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: Failed to load DietPi-Globals

Post by Joulinar »

not really, this just indicates that there are issues on your file system as your device has mounted it r/o. usually this only happen to protect data on a corrupted fs. Can you do a reboot and check following afterwards

Code: Select all

dmesg -l err,crit,alert,emerg
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
chucklesmcgee
Posts: 51
Joined: Tue Jun 02, 2020 7:19 pm

Re: Failed to load DietPi-Globals

Post by chucklesmcgee »

Code: Select all

root@DietPi:~# dmesg -l err,crit,alert,emerg
[    0.438102] bcm2708_fb soc:fb: Unable to determine number of FBs. Disabling driver.
[    5.674352] sd 1:0:0:0: [sdb] No Caching mode page found
[    5.674358] sd 1:0:0:0: [sdb] Assuming drive cache: write through
root@DietPi:~# journalctl -t systemd-fsck
-- Logs begin at Fri 2021-03-05 13:12:57 CST, end at Fri 2021-03-05 13:46:59 CST
. --
-- No entries --
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: Failed to load DietPi-Globals

Post by Joulinar »

strange that the check was not executed. at least there is a forcefsck file already on your rootFS

Code: Select all

-rw-r--r--   1 root root     0 Mar  5 13:06 forcefsck
can you share your mounts

Code: Select all

cat /proc/mounts
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
chucklesmcgee
Posts: 51
Joined: Tue Jun 02, 2020 7:19 pm

Re: Failed to load DietPi-Globals

Post by chucklesmcgee »

Code: Select all

/dev/root / ext4 ro,relatime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1899144k,nr_inodes=147012,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup2 /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegat   e 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=   systemd 0 0
none /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpu   acct 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_eve   nt 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,ne   t_cls,net_prio 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=38,pgrp=1,timeout=0,min   proto=5,maxproto=5,direct 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
User avatar
MichaIng
Site Admin
Posts: 3097
Joined: Sat Nov 18, 2017 6:21 pm

Re: Failed to load DietPi-Globals

Post by MichaIng »

If it's not an RPi, the file system check is done within the initramfs and the results can be seen via: cat /run/initramfs/fsck.log
Although that /dev/root does indicate an RPi, is it true?
chucklesmcgee
Posts: 51
Joined: Tue Jun 02, 2020 7:19 pm

Re: Failed to load DietPi-Globals

Post by chucklesmcgee »

Code: Select all

root@DietPi:~# /dev/root
-bash: /dev/root: No such file or directory
root@DietPi:~# cat /run/initramfs/fsck.log
cat: /run/initramfs/fsck.log: No such file or directory
I'm not sure what's going on.
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: Failed to load DietPi-Globals

Post by Joulinar »

@chucklesmcgee
Questions is what SBC you are running?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
chucklesmcgee
Posts: 51
Joined: Tue Jun 02, 2020 7:19 pm

Re: Failed to load DietPi-Globals

Post by chucklesmcgee »

A RPi4 4GB
User avatar
MichaIng
Site Admin
Posts: 3097
Joined: Sat Nov 18, 2017 6:21 pm

Re: Failed to load DietPi-Globals

Post by MichaIng »

Since the rootfs is mounted R/O, can you try to run fsck on it?

Code: Select all

e2fsck -f /dev/mmcblk0p2
mount -o remount,rw / doesn't work either, does it?

Else you need to attach the SD card to another Linux system and check it there.
Post Reply