DietPi folder empty

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: DietPi folder empty

Post by Fourdee »

marionos wrote:@Fourdee

You were correct, I took my old Sandisk UHS 16GB and ... The result was the same...
But luckily I found and old image of v145 and writen it to both.
GoodRAM - no luck (No Ethernet controller found error)
Sandisk - It works!!!
Try a full format on the SD card prior to v6.2 image write, on the Sandisk:
https://github.com/Fourdee/DietPi/issue ... -283030267
However, now I am facing an issue with NTPD: Waiting for completion of time sync (7/30) and so on untill 30/30.
We are aware of this and we are looking into it:
https://github.com/Fourdee/DietPi/issues/1580

In the mean time, set NTP back to "Boot + daily" and try changing the NTPD mirror in:
dietpi-config > Networking Options: NAS/MISC > NTPD mirror
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
pilobasualdo
Posts: 1
Joined: Thu Mar 08, 2018 6:33 pm

Re: DietPi folder empty

Post by pilobasualdo »

Hi, I'm having the same problem after a reboot: The DietPi folder is empty
Running on C2 with latest Dietpi package (installed it yesterday).
For a quick solution: is there any way to replace the Dietpi system files or should I just re install Dietpi on the SD?

Code: Select all

root@DietPi:/# mount -o remount,rw /dev/nvme0n1p2 /
root@DietPi:/# systemctl start dietpi-ramdisk
Job for dietpi-ramdisk.service failed. See 'systemctl status dietpi-ramdisk.service' and 'journalctl -xn' for details.
root@DietPi:/# systemctl status dietpi-ramdisk.service
● dietpi-ramdisk.service - DietPi-RAMdisk
   Loaded: loaded (/etc/systemd/system/dietpi-ramdisk.service; enabled)
   Active: failed (Result: exit-code) since Thu 2018-03-08 14:24:54 -03; 7s ago
  Process: 648 ExecStart=/bin/bash -c /boot/dietpi/dietpi-ramdisk 0 &>> /var/tmp/dietpi/logs/dietpi-ramdisk.log (code=exited, status=1/FAILURE)

Mar 08 14:24:54 DietPi systemd[1]: Starting DietPi-RAMdisk...
Mar 08 14:24:54 DietPi bash[648]: /bin/bash: /var/tmp/dietpi/logs/dietpi-ramdisk.log: No such file or directory
Mar 08 14:24:54 DietPi systemd[1]: dietpi-ramdisk.service: control process exited, code=exited status=1
Mar 08 14:24:54 DietPi systemd[1]: Failed to start DietPi-RAMdisk.
Mar 08 14:24:54 DietPi systemd[1]: Unit dietpi-ramdisk.service entered failed state.
root@DietPi:/# systemctl status dietpi-ramlog -l
● dietpi-ramlog.service - DietPi-RAMlog
   Loaded: loaded (/etc/systemd/system/dietpi-ramlog.service; enabled)
   Active: failed (Result: exit-code) since Thu 2018-03-08 14:20:47 -03; 4min 54s ago
  Process: 482 ExecStart=/bin/bash -c /boot/dietpi/dietpi-ramlog 0 &>> /var/tmp/dietpi/logs/dietpi-ramlog.log (code=exited, status=1/FAILURE)

Mar 08 14:20:47 DietPi bash[482]: /bin/bash: /var/tmp/dietpi/logs/dietpi-ramlog.log: No such file or directory
Mar 08 14:20:47 DietPi systemd[1]: dietpi-ramlog.service: control process exited, code=exited status=1
Mar 08 14:20:47 DietPi systemd[1]: Failed to start DietPi-RAMlog.
Mar 08 14:20:47 DietPi systemd[1]: Unit dietpi-ramlog.service entered failed state.

root@DietPi:/# cat /etc/dietpi/logs/dietpi-ramdisk.log
cat: /etc/dietpi/logs/dietpi-ramdisk.log: No such file or directory

root@DietPi:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/mmcblk0p2   15G  1.5G   13G  11% /
udev             10M     0   10M   0% /dev
tmpfs           344M  5.6M  338M   2% /run
tmpfs           859M     0  859M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           859M     0  859M   0% /sys/fs/cgroup
tmpfs            10M     0   10M   0% /DietPi
tmpfs            20M  8.0K   20M   1% /var/log
tmpfs           858M     0  858M   0% /tmp
/dev/mmcblk0p1  128M   46M   82M  36% /boot

User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: DietPi folder empty

Post by Fourdee »

pilobasualdo wrote:Hi, I'm having the same problem after a reboot: The DietPi folder is empty
Running on C2 with latest Dietpi package (installed it yesterday).
For a quick solution: is there any way to replace the Dietpi system files or should I just re install Dietpi on the SD?

Code: Select all

root@DietPi:/# cat /etc/dietpi/logs/dietpi-ramdisk.log
cat: /etc/dietpi/logs/dietpi-ramdisk.log: No such file or directory

Hi

Please paste results:

Code: Select all

ls -lha /var/tmp/dietpi/logs
If it doesn't exist, create it and reboot:

Code: Select all

mkdir -p /var/tmp/dietpi/logs
reboot
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
DonLiborio
Posts: 19
Joined: Mon May 15, 2017 8:34 pm

Re: DietPi folder empty

Post by DonLiborio »

I'm having the same problem. I tried to use dietpi-software to install the Plex server. The SD card may have filled up, lots of error messages about not having space. So the install failed and then when I rebooted I got the same empty dietpi folder error. After making some space the error persists.

Raspberry pi 3, 32GB SD card, DietPi v6.3

root@DietPi:~# ls -lha /var/tmp/dietpi/logs
total 296K
drwxr-xr-x 2 root root 4.0K Mar 7 11:52 .
drw-rw---- 3 dietpi dietpi 4.0K Feb 18 13:59 ..
-rw-r--r-- 1 root root 217K Mar 7 07:58 dietpi-firstrun-setup.log
-rw-r--r-- 1 root root 1.9K Mar 8 18:32 dietpi-ramdisk.log
-rw-r--r-- 1 root root 1.1K Mar 8 18:32 dietpi-ramlog.log
-rw-r--r-- 1 root root 173 Mar 8 18:29 dietpi-software_apt.log
-rw-r--r-- 1 root root 44K Mar 7 11:54 dietpi-update.log
-rw-r--r-- 1 root root 211 Feb 18 13:39 fs_expand.log
-rw-r--r-- 1 root root 1.8K Feb 18 13:39 fs_partition_resize.log
Attachments
Capture.PNG
DonLiborio
Posts: 19
Joined: Mon May 15, 2017 8:34 pm

Re: DietPi folder empty

Post by DonLiborio »

I found what was wrong but not why it happened.

/etc/fstab was BLANK and the filesystem was read only. I copied the fstab file from the image and everything seems fine.

Then I installed plexserver without issue. The only thing I can think of is that I had a manual entry on fstab to load a samba share. Now I'm mounting it through diepi-config and I left fstab as it was.
Fffrank
Posts: 12
Joined: Tue May 01, 2018 5:46 am

Re: DietPi folder empty

Post by Fffrank »

I'm a new user but unfortunately I believe I just joined this club. Installed DietPi on a fresh Odroid C2 w/ a Sandisk 128gb card. Had things up and running and was tinkering with it. Connected an external USB drive and rebooted -- and directory is now empty. Boots and I can login but can't run any dietpi commands.

Code: Select all

dietpi@DietPi:~$ sudo ls -lha /var/tmp/dietpi/logs
total 80K
drwxr-xr-x 2 root   root   4.0K Apr 29 13:34 .
drw-rw---- 3 dietpi dietpi 4.0K Jan 10 07:16 ..
-rw-r--r-- 1 root   root    28K Apr 29 13:37 dietpi-firstrun-setup.log
-rw-r--r-- 1 root   root   1.7K Apr 30 10:59 dietpi-ramdisk.log
-rw-r--r-- 1 root   root    940 Apr 30 10:59 dietpi-ramlog.log
-rw-r--r-- 1 root   root      0 Apr 30 11:37 dietpi-software_apt.log
-rw-r--r-- 1 root   root    28K Apr 29 13:35 dietpi-update.log
-rw-r--r-- 1 root   root    213 Dec 31  1969 fs_expand.log
-rw-r--r-- 1 root   root   1.8K Dec 31  1969 fs_partition_resize.log
Post Reply