You are not logged in.

#1 2012-05-30 17:16:13

headkase
Member
Registered: 2011-12-06
Posts: 1,975

[Solved] How to Suppress Kernel Boot Error Messages?

In

/var/log/errors.log

I get this output while booting:

May 26 00:28:30 localhost kernel: [    6.943801] sd 6:0:0:0: [sdb] No Caching mode page present
May 26 00:28:30 localhost kernel: [    6.943802] sd 6:0:0:0: [sdb] Assuming drive cache: write through
May 26 00:28:30 localhost kernel: [    6.945795] sd 6:0:0:0: [sdb] No Caching mode page present
May 26 00:28:30 localhost kernel: [    6.945797] sd 6:0:0:0: [sdb] Assuming drive cache: write through
May 26 00:28:30 localhost kernel: [    6.950164] sd 6:0:0:0: [sdb] No Caching mode page present
May 26 00:28:30 localhost kernel: [    6.950166] sd 6:0:0:0: [sdb] Assuming drive cache: write through

sdb is an external USB 2.0 2TB harddrive formatted as NTFS.  My /etc/fstab line for it is:

/dev/sdb1 /media/Win_USB ntfs-3g uid=1000,gid=users,fmask=113,dmask=0022 0 0

My

/etc/udev/rules.d/

directory is empty.

The drive works correctly both under Arch and under Windows 7 in this machine's dual-boot.  Googling so far has shown that the above errors are nothing out of the ordinary.

I would like to suppress just those error messages on boot and also do not write them to errors.log.

I do not even have a clue for what I should be searching for to do that.  Perhaps someone can helpfully point me to the correct page in the Wiki?

Edit, and "fdisk -l" returns:

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6bf2b3a4

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63  3907024064  1953512001    7  HPFS/NTFS/exFAT

For sdb.

Last edited by headkase (2012-05-30 17:54:29)

Offline

#2 2012-05-30 17:53:11

headkase
Member
Registered: 2011-12-06
Posts: 1,975

Re: [Solved] How to Suppress Kernel Boot Error Messages?

D'oh.  It seems like you always find the solution just after you make a post.

From Here led to Here I set "loglevel=3" in my kernel boot line.

From /boot/grub/menu.lst, my new kernel line looks like this:

kernel /vmlinuz-linux root=/dev/sda4 ro loglevel=3

At loglevel=4 the messages reappear.

Now those annoying messages are not shown.

Last edited by headkase (2012-05-30 19:02:55)

Offline

#3 2012-06-04 21:17:53

konos5
Member
Registered: 2011-03-16
Posts: 56

Re: [Solved] How to Suppress Kernel Boot Error Messages?

Hi,

I have the same problem.

However I am not certain if we have to suppress the warning or figure out what's causing the problem and sort it out.

Offline

#4 2012-06-04 23:52:21

headkase
Member
Registered: 2011-12-06
Posts: 1,975

Re: [Solved] How to Suppress Kernel Boot Error Messages?

You should always find the source of the problem and correct the issue.  I suppressed the errors because while googling I found that removable media often produces those errors when in actuality there is nothing wrong.  If the errors were for a different reason then the correct thing to do would be to find the cause and correct it.

Offline

#5 2012-06-05 17:34:52

konos5
Member
Registered: 2011-03-16
Posts: 56

Re: [Solved] How to Suppress Kernel Boot Error Messages?

Thanks for the quick reply.
Could you provide a link to your source so that we can verify your suggestion?

Offline

#6 2012-06-05 19:15:45

headkase
Member
Registered: 2011-12-06
Posts: 1,975

Re: [Solved] How to Suppress Kernel Boot Error Messages?

konos5,

What are your errors?  If they are different than what I posted in this thread then you'd be better off starting your own thread.  If they are the same then if you want confirmation go to the almighty Google.

Offline

#7 2012-08-11 18:00:06

erikw
Member
From: Lund, Sweden
Registered: 2012-07-17
Posts: 17
Website

Re: [Solved] How to Suppress Kernel Boot Error Messages?

I have this problem too but loglevel=4 does not hide them for me. Also after you're logged in and you plug the usb flashdisk in the error messages are spit out on my VT. I would really like to suppress these  since I can not find the cause for them and the disk works fine.

Offline

#8 2012-08-11 19:41:28

x-rix
Member
From: Berlin, Germany
Registered: 2012-08-08
Posts: 32

Re: [Solved] How to Suppress Kernel Boot Error Messages?

erikw wrote:

I have this problem too but loglevel=4 does not hide them for me.

You misread.

headkase wrote:

From Here led to Here I set "loglevel=3" in my kernel boot line.

From /boot/grub/menu.lst, my new kernel line looks like this:

kernel /vmlinuz-linux root=/dev/sda4 ro loglevel=3

At loglevel=4 the messages reappear.

See above; you need loglevel=3.


Life's not fair, but the root password helps.
- The BOFH

Offline

Board footer

Powered by FluxBB