You are not logged in.

#1 2011-09-23 12:42:51

danielstrong52
Member
Registered: 2010-08-12
Posts: 6

[SOLVED] Attaching USB prints kernel messages to tty

I have just done a fresh Arch install on a new machine of mine, an HP pavilion dv6 laptop, and I am having a slight problem. Whenever I plug in a USB drive, I get the following message printed on all ttys:

[  661.068925] sd 7:0:0:0: [sdc] No Caching mode page present
[  661.096820] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[  661.127142] sd 7:0:0:0: [sdc] No Caching mode page present
[  661.155156] sd 7:0:0:0: [sdc] Assuming drive cache: write through

although of course sdc may equally be sdd, etc.
The full relevant section of dmseg is as follows:

[  660.739574] scsi 7:0:0:0: Direct-Access     SanDisk  Cruzer Micro     8.02 PQ: 0 ANSI: 0 CCS
[  660.739821] sd 7:0:0:0: Attached scsi generic sg3 type 0
[  660.741201] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[  661.067932] sd 7:0:0:0: [sdc] 15695871 512-byte logical blocks: (8.03 GB/7.48 GiB)
[  661.068925] sd 7:0:0:0: [sdc] No Caching mode page present
[  661.096820] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[  661.127142] sd 7:0:0:0: [sdc] No Caching mode page present
[  661.155156] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[  661.184628]  sdc: sdc1

Now, from what I understand from some internet searching, the message is relatively harmless (correct me if I'm wrong). However, it certainly is a pain to have it printed to the tty all the time.
Also, someone on the IRC suggesteed i check syslog was running. It is, so that's not the problem.

Thanks in advance,

Dan

Last edited by danielstrong52 (2011-09-23 13:05:36)


"A knowledge of the existence of something we cannot penetrate, of the manifestations of the profoundest reason and the most radiant beauty, which are only accessible to our reason in their most elementary forms—it is this knowledge and this emotion that constitute the truly religious attitude; in this sense, and in this alone, I am a deeply religious man."
-- Albert Einstein

Offline

#2 2011-09-23 12:47:34

creatid
Member
From: Netherlands
Registered: 2009-12-19
Posts: 75
Website

Re: [SOLVED] Attaching USB prints kernel messages to tty

I'm having a similar issue and it appears with wpa_supplicant as well.
A few updates ago it started outputting messages to tty during startup and when I lose the wireless connection.

I haven't really researched since it is only a minor annoyance, but I suspect it has something to do with udev.

Offline

#3 2011-09-23 12:52:45

Gusar
Member
Registered: 2009-08-25
Posts: 3,606

Re: [SOLVED] Attaching USB prints kernel messages to tty

The message is harmless, yes. Add quiet to the kernel commandline in grub. If that doesn't do it, try adding dmesg -n 3 to /etc/rc.local. In the past, /etc/rc.sysinit had dmesg -n 3 (or dmesg -n 8 if VERBOSE was set in /etc/rc.conf), but this functionality was removed.

Offline

#4 2011-09-23 13:04:18

danielstrong52
Member
Registered: 2010-08-12
Posts: 6

Re: [SOLVED] Attaching USB prints kernel messages to tty

Quiet in grub (well, grub2) didn't do it (in fact I think it was already set by default), but dmesg -n 3 did the trick. Thanks.


"A knowledge of the existence of something we cannot penetrate, of the manifestations of the profoundest reason and the most radiant beauty, which are only accessible to our reason in their most elementary forms—it is this knowledge and this emotion that constitute the truly religious attitude; in this sense, and in this alone, I am a deeply religious man."
-- Albert Einstein

Offline

#5 2011-09-23 13:09:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Attaching USB prints kernel messages to tty

I think it's because VERBOSE setting in rc.conf was deprecated, as Gusar said.

[2011-07-31 18:35] warning: /etc/rc.conf installed as /etc/rc.conf.pacnew
[2011-07-31 18:35] VERBOSE= in rc.conf no longer has any effect.
[2011-07-31 18:35] Please append 'quiet' to your kernel command line.

Add 'quiet' to the kernel boot line. If that doesn't work, try 'loglevel=3'. If that doesn't work - 'loglevel=2' and report upstream if some app is still printing informational messages when it should be only printing warnings and errors.

Offline

#6 2011-09-23 15:14:09

creatid
Member
From: Netherlands
Registered: 2009-12-19
Posts: 75
Website

Re: [SOLVED] Attaching USB prints kernel messages to tty

I already had "quiet" in menu.lst so I tried dmesg -n 3 and can confirm that it supresses the wpa_supplicant messages.

Thanks Gusar

Offline

Board footer

Powered by FluxBB