WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: My dmesg is flooded with error messages.  (Read 4013 times)

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 661
My dmesg is flooded with error messages.
« on: January 23, 2017, 09:57:38 AM »
I think it's easy fix. Just don't know where the mount -o loop command is.
I presume it in some of the files in /etc/init.d
I think it's the mount command tries first to mount the tcz files in F2FS filesystem.

Maybe it's a new function in busybox.. what i can see...it says...
Filesystem autodetection requires /proc...
Don't know how it's detection is made through proc.

I presume this could also be like default for not just picore, for even the others tiny core.

Like this:
sudo mount -t squashfs -o loop tczfile.tcz mountpoint

8 lines of this error messages by tcz file.
Code: (bash) [Select]
[ 2373.739716] F2FS-fs (loop18): Magic Mismatch, valid(0xf2f52010) - read(0x39ccf62b)
[ 2373.739731] F2FS-fs (loop18): Can't find valid F2FS filesystem in 1th superblock
[ 2373.739747] F2FS-fs (loop18): Magic Mismatch, valid(0xf2f52010) - read(0x1e353db1)
[ 2373.739762] F2FS-fs (loop18): Can't find valid F2FS filesystem in 2th superblock
« Last Edit: January 23, 2017, 10:05:33 AM by patrikg »

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 661
Re: My dmesg is flooded with error messages.
« Reply #1 on: January 23, 2017, 02:35:48 PM »
file /usr/bin/tce-bootload

I made it my self.. find it...at line 86...

Code: (python) [Select]
        fp.close()
        os.mkdir(root + '/tmp/tcloop/' + p[:-4])
        os.system('sudo mount -t squashfs -o loop ' + sys.argv[1] + '/optional/'
    except OSError:
        print("\nNot available 1:", p)
        continue

The dmesg is now in order...

Offline Zlika

  • Newbie
  • *
  • Posts: 29
Re: My dmesg is flooded with error messages.
« Reply #2 on: January 24, 2017, 07:38:57 AM »
Thank you for the fix. I hope it will be integrated in the next release.

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 661
Re: My dmesg is flooded with error messages.
« Reply #3 on: January 24, 2017, 03:31:48 PM »
When I investigated a little more this case, i found that my sentence in my
first post, is not relevant, because the -t squashfs is there. 

- I presume this could also be like default for not just picore, for even the others tiny core.


It seams that the picore uses micropython to do things such as mounting the tcz at boot.
Haven't seen that before, my bad.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: My dmesg is flooded with error messages.
« Reply #4 on: January 24, 2017, 03:55:41 PM »
Still, you found the cause for  dmesg's  output getting spammed. ;)
Download a copy and keep it handy: Core book ;)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: My dmesg is flooded with error messages.
« Reply #5 on: January 25, 2017, 03:22:58 AM »
@patrikg

Thanks, it is fixed in 8.1.6

Recently mount from util-linux was replaced with a BusyBox applet and while util-linux works fine without -t BusyBox need it to get rid of this message even if it can mount properly.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 661
Re: My dmesg is flooded with error messages.
« Reply #6 on: January 25, 2017, 01:31:20 PM »
Good that i found the thing..my self....learning a lot how to search in linux systems by doing this.
Just found -prune in find...maybe i will make a alias of this...
Exaple: find / -path /proc -prune -or -iname *findme*
or do it little crazy with for this:
grep loop $(file * | grep ASCII|cut -f1 -d':')

So if i understand you correctly this micropython thing is just a workaround for buggy busybox util-linux ?


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: My dmesg is flooded with error messages.
« Reply #7 on: January 25, 2017, 10:19:07 PM »
So if i understand you correctly this micropython thing is just a workaround for buggy busybox util-linux ?

No, it is to speed up boot.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 661
Re: My dmesg is flooded with error messages.
« Reply #8 on: January 28, 2017, 01:55:44 PM »
Now i find the explanation of the problem with busybox mount command.
It just tries all fs'es in /proc/filesystems.

Sorry for the stackoverflow link, but i describes it very well with link to busybox mount source code :)

http://stackoverflow.com/a/11398511


Offline richarde

  • Newbie
  • *
  • Posts: 10
Re: My dmesg is flooded with error messages.
« Reply #9 on: May 19, 2017, 07:42:03 AM »
Quote
Thanks, it is fixed in 8.1.6

Are there plans for an 8.1.6 release?  (The most recent I see on the releases page is 8.1.5).

Or is the current recommendation to follow the remastering instructions on the wiki to
- unpack
- modify /usr/bin/tce-bootload
- repack
?

Thanks,
Richard

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: My dmesg is flooded with error messages.
« Reply #10 on: May 19, 2017, 09:58:33 AM »
Quote
Thanks, it is fixed in 8.1.6

Are there plans for an 8.1.6 release?  (The most recent I see on the releases page is 8.1.5).

Or is the current recommendation to follow the remastering instructions on the wiki to
- unpack
- modify /usr/bin/tce-bootload
- repack
?

Thanks,
Richard

No 8.1.6 -> see 9.0
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."