I am running Debian 9.11 (4.14.108-ti-r124) on BBB and it runs fine for about a week and then Bash no longer can find commands and it throws errors upon every subsequent command. Commands result in one of two errors depending upon the command. Here are two recent examples:
-bash: /bin/ping: Input/output error
$debian:/opt/tools$ reboot
-bash: reboot: command not found
Has anyone else seen this problem? I am unsure where to create issues for Debian Stretch on ARM/BBB.
The device /dev/mmcblk0 is usually the SD card. Also the BBB has 4 GB of eMMC, not 32 GB as available your root file system. I still suspect that you’re running off the SD card, and it’s failing
I agree with Tarmo in that your root is showing what looks like a 32GB SD card and not the 4GB eMMC.
you can run ‘df -h’ to see the space in a more user friendly format.
Both reboot and ping map to ‘/sbin’ and ‘/bin’ so you could try the full path to the tools to see if you can still run the commands directly.
Ex:
sudo /sbin/reboot
Also, unless you have modified the sudoers config, reboot is a root function so you would typically need to run this as ‘sudo’ if you are logged in as the debian user.
Ex: sudo reboot
To see if there are any issues being reported on the system, your can run ‘dmesg’ or view the messages in ‘/var/log/messages’ and see if any device related errors are being reported.
You are both correct. I have six BBBs running and forgot this one was still using an SD card due to some Docker images I am running. The others are all on Debian 9.11 in eMMC.
I ran fdisk and it shows the SD card is indeed failing. I am going to dd off as much as I can before it completely dies. I wish the Debian images were a tad smaller as I loathe using SD cards for any duration.