Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question dmesg output on all ttys


    whenever i try to do anything in one of the virtual terminals dmesg cuts in and outputs some funny nonsense about my Internet connection, if i want to know about my internet connection i would use the command. Is there anyway that i could disable it from printing to the ttys?

    I also have another problem regarding an external laptop HDD. I swapped out my windows drive from my laptop to an external USB case, but my Dapper system cannot read or write to it! So i can't even mount it. when i put it back into the laptop it is recognized, is this some sort of usb error? i don't have this problem with my other external i took from my tower.

    If anyone could give any thoughts about this i would be much obliged. Thanks

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    # echo "4 4 1 4" > /proc/sys/kernel/printk

    HTH
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  3. #3
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,454
    Could we have an expansion on that please? It looks interesting. I can see that you're passing arguments to the kernel's print-out function but what does "4 4 1 4" actually represent?
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    I found something.

    /proc/sys/kernel/printk
    The four values in this file are console_loglevel, default_mes-
    sage_loglevel, minimum_console_level and default_con-
    sole_loglevel. These values influence printk() behavior when
    printing or logging error messages. See syslog(2) for more info
    on the different loglevels. Messages with a higher priority
    than console_loglevel will be printed to the console. Messages
    without an explicit priority will be printed with priority
    default_message_level. minimum_console_loglevel is the minimum
    (highest) value to which console_loglevel can be set.
    default_console_loglevel is the default value for con-
    sole_loglevel.
    proc(5)

  6. #5
    I did some searching around after that "# echo "4 4 1 4" > /proc/sys/kernel/printk"
    and found that in my /etc/sysctl.conf a line similar is there, see:

    # Uncomment the following to stop low level messages to console
    kernel/printk = 4 4 1 7

    and with that helpful post by rcgreen it makes sense to change my 7 to a 4 but when i checked the actual file it states:

    [kernel]$ cat printk
    6 4 1 7

    So i'm thinking that something must have overwritten the value from my config file

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •