All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Small <tim@seoss.co.uk>
To: Alexey Orishko <alexey.orishko@gmail.com>, linux-ide@vger.kernel.org
Subject: Re: printouts about removable disk in the kernel log
Date: Thu, 30 Apr 2015 10:49:47 +0100	[thread overview]
Message-ID: <5541FABB.3060702@seoss.co.uk> (raw)
In-Reply-To: <CAL_Kpj2BAO781yXF-q2Q1AHoxXZpSXeOHfxDc7uoyeEURJZ5qg@mail.gmail.com>

On 28/04/15 16:49, Alexey Orishko wrote:

> [334203.113976] ata4: hard resetting link
> [334203.836637] ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
> ..
> 
> When a removable disk is connected, kernel log is overwhelmed with
> messages about
> disk and its partition like in example above. Messages in the kernel
> log stop after disk
> was removed (ejected). The messages are not really informative and I
> wonder if they can be
> switched off.


Doing something like:

echo 1 > /sys/block/sdc/device/delete

prior to unplugging the drive will reduce messages on unplug (and will
also spin down the disk etc.).  On some kernel versions it will also
stop the kernel speed limiting the interface (if that's a concern).

Personally I use something like "logcheck" to handle this sort of thing,
and add exclusion patterns for stuff I don't want to hear about.

Tim.


  reply	other threads:[~2015-04-30 10:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-28 15:49 printouts about removable disk in the kernel log Alexey Orishko
2015-04-30  9:49 ` Tim Small [this message]
2015-05-01 17:00   ` Alexey Orishko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5541FABB.3060702@seoss.co.uk \
    --to=tim@seoss.co.uk \
    --cc=alexey.orishko@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.