LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-05-2021, 07:43 AM   #1
Copitano
LQ Newbie
 
Registered: Feb 2021
Posts: 7

Rep: Reputation: Disabled
Angry dmesg does not work


I have a RPi 3B+ connected with a 4 port USB HUB with adapter.
Yesterday after restart of the Pi i had trouble finding ttyUSB0 and ttyUSB1 that where connected directly to the Pi.
Connected to Pi:
16GB USBstick (mounted) USBbackup
4 port USB HUB
mbus to serial converter for Kamstrup 602 heatmeter
RFXcomXL
After restart MBus converter and RFXcom where disconnected. I now connected them to the external USB HUB.
dmesg at first could not find ttyUSB's After another restart it did and i could fix the problem. Now when i typ any dmesg command in conmmandline (Putty) nothing shows however mbus and RFX work in domoticz.
How can i fix this dmesg not showing anything?

Last edited by Copitano; 02-05-2021 at 07:44 AM.
 
Old 02-05-2021, 07:51 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Just guessing, your SD card may be dying.
 
Old 02-05-2021, 05:29 PM   #3
Copitano
LQ Newbie
 
Registered: Feb 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
I don't think so because I have been using an eMMC module instead of SD since mid-December.
 
Old 02-05-2021, 05:34 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
OK, there must be other logs. I have no Pi running right now, so I cannot check where the kernel log goes, but it must be there somewhere.
 
Old 02-05-2021, 06:05 PM   #5
Copitano
LQ Newbie
 
Registered: Feb 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Okay, I can see what i can find out.

Last edited by Copitano; 02-05-2021 at 06:23 PM.
 
Old 02-05-2021, 06:51 PM   #6
Copitano
LQ Newbie
 
Registered: Feb 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Found a file named kern.log in /var/log.
its a log list and mostly looks like this:
Code:
Feb  4 21:47:54 raspberrypi kernel: [1892287.451360] ieee80211 phy0: brcmf_run_escan: error (-110)
Feb  4 21:47:54 raspberrypi kernel: [1892287.451384] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
Feb  4 21:48:54 raspberrypi kernel: [1892347.451783] ieee80211 phy0: brcmf_run_escan: error (-110)
Feb  4 21:48:54 raspberrypi kernel: [1892347.451809] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
Feb  4 21:49:54 raspberrypi kernel: [1892407.452206] ieee80211 phy0: brcmf_run_escan: error (-110)
Feb  4 21:49:54 raspberrypi kernel: [1892407.452240] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
However i found reboot info at Feb 4 21:51:10. Thats where trouble started.
Wat should i look for in the file?
 
Old 02-05-2021, 06:59 PM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Any block device or filesystem errors. Maybe running fsck is in order, perhaps there was some filesystem corruption. Just guessing.
 
Old 02-05-2021, 08:13 PM   #8
Copitano
LQ Newbie
 
Registered: Feb 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
I'm going to investigate further tomorrow. Now sleep first.
 
Old 02-07-2021, 08:40 AM   #9
Copitano
LQ Newbie
 
Registered: Feb 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Talking

Sometimes life can be simple if you don't overlook the most obvious solution. Once in a while I swap the eMMC for an SD with an image of the entire system. I did that today. After replacing the eMMC module and restarting it, all USB ports are found again with dmesg | grep -i usb. Solved!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dmesg error, "probe fails with error -5," device does not work, but module still loads MALDATA Linux - Hardware 1 03-02-2019 02:18 AM
Difference between ouput of dmesg and content of /var/log/dmesg Sayan Acharjee Linux - General 1 09-21-2011 10:42 AM
dmesg vs /var/log/dmesg drManhattan Linux - Newbie 2 08-07-2011 05:28 AM
dmesg (command) and /var/log/dmesg are different? Oxagast Linux - Software 2 07-10-2006 05:50 AM
/bin/dmesg > /dmesg-boot not Working in Knoppix 3.4 suguru Debian 2 07-04-2004 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration