Bug 427183
Summary: | In repair mode, mount gives false information | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Chris Pepper <pepper> |
Component: | util-linux | Assignee: | Karel Zak <kzak> |
Status: | CLOSED ERRATA | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 5.1 | CC: | ddumas, jeff, syeghiay |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-01-20 20:45:25 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Chris Pepper
2008-01-02 03:46:46 UTC
It would be nice to check /etc/mtab against /proc/uptime and detect the situation when the mtab file is not up to date. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. Fixed. The mount(8) prints mount: warning /etc/mtab is not writeable (e.g. read-only filesystem). It's possible that information reported by mount(8) are not up to date. For actual information about system mount points check the /proc/mounts file. when /etc/mtab is not writeable Cool, but s/are not/is not/ to match singular "information". An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-0070.html The new warning is always printed when "mount" is run as non-root, which may be confusing to users. Furthermore, the extra output is likely to confuse scripts that parse the output of the "mount" command. The second problem could be lessened by sending the warning to the standard error rather than the standard output, but it would be best to print the warning only when "mount" is run by the super user. (In reply to comment #14) > The new warning is always printed when "mount" is run as non-root, which may be > confusing to users. Jeff, what do you mean with "always"? The warning should be printed only when mtab is not writeable and the file is not symlink to /proc/mounts. Note that mtab is read-only then your system is repair mode (=so very rarely) only. This is on a system where /etc/redhat-release says: Red Hat Enterprise Linux Server release 5.3 (Tikanga) with mount from the util-linux-2.13-0.50.el5 RPM. Even in run-level 5, /etc/mtab is a regular file rather than a symbolic link: % vdir /etc/mtab -rw-r--r-- 1 root root 4200 Jan 31 11:25 /etc/mtab I get the warning when running the "mount" command from my own account, but not as root. With kernel-2.6.18-128.el5 the format of /proc/mounts is different from /etc/mtab, so a symbolic link between them could cause parsing problems for existing scripts. |