HDMI output gets stuck after booting up on the flashing cursor on a black screen. So the computer seems unresponsive, but I can still ssh into it from network. Is there a way to finish the boot process and load the GUI remotely via ssh? Or am I looking at a reinstall the os situation.
I ran into the same issue and found a possible cause and solution.
The cause was a completely full boot disk(SD card). This happened when an external drive unmounted during a download of a huge file. I am not quite sure why it happened, I just know that it did.
Apparently, the system just created a new sub-directory in my
/home/media/ directory and continued to download the file once the external drive failed. This lead to a full SD card with no space to run non-essential system functions. Basically it puts the device in self-preservation mode.
You can check if this is your issue fairly easily through SSH. Log into your device and type:
This displays all of your mounted disks, as well as the capacity of each including their mount point.
Filesystem Size Used Avail Use% Mounted on /dev/root 28G 27.6G 422M 99% / devtmpfs 459M 0 459M 0% /dev tmpfs 463M 0 463M 0% /dev/shm tmpfs 463M 6.7M 457M 2% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 463M 0 463M 0% /sys/fs/cgroup /dev/mmcblk0p6 63M 20M 43M 32% /boot /dev/sda1 1.9T 30G 1.8T 2% /media/USBHDD1 tmpfs 93M 0 93M 0% /run/user/1000 /dev/mmcblk0p5 30M 398K 28M 2% /media/pi/SETTINGS
The first line is where you should center your attention. If your first line is different you are looking for the line that begins with
Filesystem Size Used Avail Use% Mounted on /dev/root 28G 27.6G 422M 99% /
90% or above, your root system does not have enough space to run X Windows on boot. It will instead go into self-preserve mode and keep the most minimal of system functions spinning. You are still able to ssh in, but running most commands will lead to errors.
If you find this is your situation as well, there are many ways to fix the issue. I started by identifying which files were filling up the disk. You can find files by size using the
find command along with some parameters:
sudo find / -xdev -type f -size +100M
This will list all files on your system that are larger than 100 megabytes.
pi@raspberrypi:~ $ sudo find / -xdev -type f -size +100M /home/pi/media/directory/largefile_01.ext /home/pi/media/directory/largefile_02.ext /home/pi/media/directory/largefile_04.ext
You can change the
+100M to any size you like to help you find the problem files.
Once you identify the files that are too big for the drive you can either remove them or transfer them to another external drive. When you have freed up enough space on your boot disk, reboot and you should see things back to normal.