Bug 10053 - /etc/mtab lock file causes hang at boot time
Summary: /etc/mtab lock file causes hang at boot time
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts   
(Show other bugs)
Version: 6.1
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2000-03-08 11:46 UTC by martin
Modified: 2014-03-17 02:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-03-20 17:26:30 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description martin 2000-03-08 11:46:05 UTC
The problem occurs with initscripts-4.54-1, but doesn't seem to be
fixed in 4.70-1.

Boot problem: The system didnt come up, not even in single-user mode.
(Btw: where is rescue.img in RedHat 6.1??? The docs say it's there, but it

The reason was an inexperienced user who had edited /etc/mtab instead of
/etc/fstab for entering mount points. The editor created a file
/etc/mtab[tilde] (sorry, I cant type the tilde in this window),
which, for some reason, is used as lockfile for /etc/mtab access.

The hang occurs after remounting root read-write, when the lines

# Enter root and /proc into mtab.
mount -f /
mount -f /proc

are executed. Later in the script, the lock file is removed, but that's
too late. If it was removed before executing the above lines, the
problem wouldn't occur.

Although editing /etc/mtab is admittedly stupid, I guess it can happen
that inexperienced users confuse fstab and mtab, so this little workaround
would improve stability.

Martin Wilck <martin@tropos.de>
Institute for Tropospheric Research, Permoserstr. 15, D-04318 Leipzig,
Tel. +49-341-2352151 / Fax +49-341-2352361

Comment 1 Bill Nottingham 2000-03-20 17:13:59 UTC
This is fixed as of the current rawhide initscripts.

Note You need to log in before you can comment on or make changes to this bug.