User avatar
micksulley
Posts: 166
Joined: Sat Mar 03, 2012 11:48 am
Location: Melton Mowbray, England

Help to diagnose a crash please

Wed May 08, 2019 5:40 pm

Hi,
I have a Pi 2 Model B v1.1 running headless for a control system, it boots from a hard drive. It has been running for several years, but on a couple of occasions it has crashed. It has just happened again and I am going through the logs looking for the cause.
I have noticed this in var/log/messages

Code: Select all

May  6 06:39:01 pi-solar rsyslogd-2359: action 'action 17' resumed (module 'builtin:ompipe') [try http://www.rsyslog.com/e/2359 ]
May  7 06:25:09 pi-solar rsyslogd: [origin software="rsyslogd" swVersion="8.4.2" x-pid="618" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
May  8 06:25:09 pi-solar rsyslogd: [origin software="rsyslogd" swVersion="8.4.2" x-pid="618" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
May  8 17:17:24 pi-solar rsyslogd: [origin software="rsyslogd" swVersion="8.4.2" x-pid="623" x-info="http://www.rsyslog.com"] start
May  8 17:17:24 pi-solar usbmount[275]: /dev/sda does not contain a filesystem or disklabel
May  8 17:17:24 pi-solar usbmount[405]: /dev/sda2 does not contain a filesystem or disklabel
May  8 17:17:24 pi-solar usbmount[441]: executing command: mount -tvfat -osync,noexec,nodev,noatime,nodiratime /dev/sda1 /media/usb0
May  8 17:17:24 pi-solar usbmount[441]: executing command: run-parts /etc/usbmount/mount.d
May  8 17:17:24 pi-solar usbmount[447]: executing command: mount -text4 -osync,noexec,nodev,noatime,nodiratime /dev/sda5 /media/usb1
May  8 17:17:24 pi-solar usbmount[447]: executing command: run-parts /etc/usbmount/mount.d
May  8 17:17:24 pi-solar usbmount[461]: executing command: mount /dev/sda6
May  8 17:17:24 pi-solar kernel: [    0.000000] Booting Linux on physical CPU 0xf00
The last line there is it booting up again after I power cycled it, but the lines above "/dev/sda does not contain a filesystem or disklabel" and again for sda2 and the following lines look a bit worrying to me.
I don't know exactly what they mean, and search results are all related to start up problems rather than a crash on a running system. Can anyone give me advise on this? Does it sound like a disk starting to fail or can there be some other explanation?

Thanks
Mick

epoch1970
Posts: 4159
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Help to diagnose a crash please

Wed May 08, 2019 6:20 pm

Which OS is that? (and partition table)

On a headless machine I'm not sure usbmount is required...

"disklabel" is another name for "partition table". Unless sda is completely broken or the USB link is dead, I would say usbmount is drunk.
The thing went on to remount what looks like the boot (FAT) partition to /media/usb0 which is not a good idea. That partition is normally mounted under /boot. That in itself shouldn't crash the system I think.
I don't know about the other partitions.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

W. H. Heydt
Posts: 11288
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Help to diagnose a crash please

Wed May 08, 2019 6:35 pm

A Pi2Bv1.1 cannot be configured to boot directly from a USB mass storage device. Either the OP has at least a minimal SD card in play, or the Pi is a Pi2Bv1.2 or P3B/Pi3B+.

User avatar
micksulley
Posts: 166
Joined: Sat Mar 03, 2012 11:48 am
Location: Melton Mowbray, England

Re: Help to diagnose a crash please

Wed May 08, 2019 9:18 pm

Sorry, yes it has a minimal SD card to boot to the hard drive. Running raspbian jessie

User avatar
micksulley
Posts: 166
Joined: Sat Mar 03, 2012 11:48 am
Location: Melton Mowbray, England

Re: Help to diagnose a crash please

Thu May 09, 2019 11:03 am

To close this off, it crashed again last night, convinced myself it was a failed hard drive, swapped it and suspected the new one had failed as well, plus several ssh authentication errors. Finally I replaced the power supply and it has been fine since.

Many, many posts here suggest checking the power supply, I had used a high quality Meanwell unit for that reason, but it seems there is an intermittent problem with my wiring.

Thanks for the help
Mick

Return to “Troubleshooting”