eliminating "mounted filesystem" messages from syslog

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat eliminating "mounted filesystem" messages from syslog
# 1  
Old 10-10-2012
eliminating "mounted filesystem" messages from syslog

Hello all, perhaps this is an odd request, but I have the requirement none the less. Every time I mount a filesystem (at least an ext4 filesystem), I get a line indicating such in the syslog:

Oct 9 22:26:28 sulaco kernel: EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts:

I would like to not have these in the syslog. This is an encrypted filesystem that I would like to have no indication whatsoever that it exists. The OS lives on a regular non-encrypted volume. Obviously, messages in syslog indicating a mount of a Device Mapper (dm-1) filesystem will give away the existence of the encrypted volume.

Can someone advice on how to prevent these messages from being reported to syslog? Aside from shutting down syslog altogether, of course.

Thanks
# 2  
Old 10-12-2012
Hi Lupin,

To do this you will have to edit the "/etc/syslog.conf" file, this determines where the system messages go.

In RedHat you will find the information if you use;

Code:
man syslog
man syslogd
man 5 syslog.conf
man 1 logger

Regards

Dave
This User Gave Thanks to gull04 For This Post:
# 3  
Old 10-12-2012
If you would rather not modify syslog configuration for fear of losing other messages, since it's coming from the kernel you can use the loglevel kernel parameter at boot time (setting it to KERN_WARNING or KERN_ERR should do it). More Informaton on Kernel parameters.

A better question would be why you would want to not see this message, usually being able to tell when a particular filesystem was mounted is a good thing. Does doing a "grep -v" to filter out those messages not suffice?
This User Gave Thanks to thmnetwork For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies

2. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

3. Red Hat

Related to "NAS" some file system (mounted volumes) were not writable

Dear friends, I have been facing an issue with one of my red hat unix machine, suddenly lost to switch sudo users. My all colleagues lost to switch to access sudo users. Then, we have realized its related to NAS issue which does not allowing to write the file. because of this we got so many... (1 Reply)
Discussion started by: Chand
1 Replies

4. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. OS X (Apple)

"Permission Denied" while modifying mounted files on MAC

Hi, I have two machines 1. MacOSx (Users --> userMac , IP - a.b.c.d) 2. FreeBSD (Users --> userBSD, IP- p.q.r.s) I want to modify some files of FreeBSD on my MacOS. So, I mounted the FreeBSD folder on my Mac as follows. $ sudo mount -o -P p.q.r.s:/usr/home/user... (5 Replies)
Discussion started by: akash.mahakode
5 Replies

7. Solaris

Help with zone in "mounted" state

Greetings Forumers! I have a zone in a "mounted state and cannot do anything with it: # zoneadm list -cv ID NAME STATUS PATH BRAND IP 0 global running / native shared 4 zone1 running... (11 Replies)
Discussion started by: bluescreen
11 Replies

8. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
Login or Register to Ask a Question