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

Re: Failed to load DietPi-Globals

Post by chucklesmcgee »

Code: Select all

e2fsck: 
root@DietPi:~# e2fsck -f /dev/mmcblk0p2
e2fsck 1.44.5 (15-Dec-2018)
e2fsck: No such file or directory while trying to open /dev/mmcblk0p2
Possibly non-existent device?

Code: Select all

root@DietPi:~# mount -o remount, rw /
root@DietPi:~#
That runs without error, there's no output and it just goes to the next prompt
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: Failed to load DietPi-Globals

Post by Joulinar »

do you use SD card or was RootFS transferred to an USB device?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2780
Joined: Sat Nov 18, 2017 6:21 pm

Re: Failed to load DietPi-Globals

Post by MichaIng »

Looks like a USB drive when /dev/mmcblk0p2 does not exist. Okay when remounting in R/W mode worked, then you should be able to force fsck on reboot now. I mean strangely it was already present before, but let's retry:

Code: Select all

findmnt -no SOURCE / # just to verify SD card vs USB drive
> /forcefsck
reboot
journalctl -t systemd-fsck
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:~# findmnt -no SOURCE
/dev/sda2
devtmpfs
tmpfs
devpts
mqueue
sysfs
securityfs
tmpfs
cgroup2
cgroup
cgroup
cgroup
cgroup
cgroup
cgroup
cgroup
cgroup
cgroup
none
debugfs
configfs
proc
systemd-1
tmpfs
tmpfs

Code: Select all

root@DietPi:~# > /forcefsck
-bash: /forcefsck: Read-only file system
User avatar
MichaIng
Site Admin
Posts: 2780
Joined: Sat Nov 18, 2017 6:21 pm

Re: Failed to load DietPi-Globals

Post by MichaIng »

Please do the remount first again:

Code: Select all

mount -o remount,rw /
> /forcefsck
reboot
journalctl -t systemd-fsck
If that does not work, you need to plug that drive into a different Linux system to run fsck from.
chucklesmcgee
Posts: 46
Joined: Tue Jun 02, 2020 7:19 pm

Re: Failed to load DietPi-Globals

Post by chucklesmcgee »

Didn't work, I'll try another system
chucklesmcgee
Posts: 46
Joined: Tue Jun 02, 2020 7:19 pm

Re: Failed to load DietPi-Globals

Post by chucklesmcgee »

Ok, I plugged the drive into an RPi2 running dietpi. Used dietpi-drive_manager, chose to scan and fix- it found and corrected some errors. Moved it back, but nothing's changed. What's next- do I have to run fsck?
User avatar
MichaIng
Site Admin
Posts: 2780
Joined: Sat Nov 18, 2017 6:21 pm

Re: Failed to load DietPi-Globals

Post by MichaIng »

Did you run fsck multiple times? Sometimes is needs more than one loop to fix everything. But probably it's better to format the file system or the whole drive freshly, when if keeps causing issues like that. I.e. you could copy all content outside, re-create the partition table and partitions from scratch and copy content back in. Let me know if this is an option and I'll instruct you. As two partitions are required, it cannot be done with dietpi-drive_manager.
Post Reply