Suppress EXT3-fs warning on mount
        Posted  
        
            by STM
        on Server Fault
        
        See other posts from Server Fault
        
            or by STM
        
        
        
        Published on 2010-06-08T09:40:53Z
        Indexed on 
            2010/06/08
            9:42 UTC
        
        
        Read the original article
        Hit count: 408
        
I am familiar with output suppress on Unix machines, ie:
cat /file/that/doesnt/exist > /dev/null 2>&
However I can't seem to suppress the output of mount when an ext3 filesystem is mounted for the nth time, and it recommends an fsck. As it happens, fscks are run regularly by another machine, so these warning messages are needlessly interrupting the flow of output to my pretty bash script. These are the errors:
# mount -t ext3 /dev/sda1 /mnt > /dev/null 2>&
kjournald starting. Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Can anyone shed some light on this? I'm clearly blocking both fd's, but somehow output is still getting through.
This is GNU Bash v2.05a
© Server Fault or respective owner