Bug 519763 - any mount failure renders system unbootable, and no option to type root passwd
Summary: any mount failure renders system unbootable, and no option to type root passwd
Status: CLOSED DUPLICATE of bug 531047
Alias: None
Product: Fedora
Classification: Fedora
Component: sysvinit
Version: 12
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2009-08-27 17:55 UTC by Jim Meyering
Modified: 2013-03-13 20:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-05-28 21:10:58 UTC
Type: ---

Attachments (Terms of Use)

Description Jim Meyering 2009-08-27 17:55:24 UTC
Description of problem: 
I put an invalid LABEL= directive in /etc/fstab (on non-system partition), which provoked a mount failure at next boot.  However, upon mount failure, when I got the "Give root password for maintenance (or type control-D to continue):" message, nothing I type works.
Each keypress makes it print "invalid password" and repeat the prompt.  Even Control-D.  Thus, the system was unusable, and I had to repair /etc/fstab via a live-CD.

Version-Release number of selected component (if applicable):

How reproducible: every time

Steps to Reproduce:
1. echo 'LABEL=no-such /nowhere ext4 defaults 1 3' >> /etc/fstab
2. reboot
Actual results: typing anything at the "Give root password..." prompt is ineffective

Expected results: typing ^D or root password has the desired effect

Additional info:

Comment 1 Bill Nottingham 2009-08-27 18:31:13 UTC
I added something like that to my fstab, and I'm able to log in with sulogin fine.

Comment 2 Jim Meyering 2009-08-27 18:43:09 UTC
Thanks for checking, Bill.

Is selinux in enforcing mode for you?
It is for me.  Haven't yet tried without.

Comment 3 Jim Meyering 2009-08-27 18:48:40 UTC
also, in sulogin.c, I see that read failure (right after that prompt) is ignored.
Might be worth diagnosing when read returns -1:

	if (read(0, pass, sizeof(pass) - 1) <= 0)
		ret = NULL;
	else {
		for(i = 0; i < sizeof(pass) && pass[i]; i++)
			if (pass[i] == '\r' || pass[i] == '\n') {
				pass[i] = 0;

Comment 4 Bill Nottingham 2009-08-27 19:08:59 UTC
Might try booting w/o 'rhgb quiet', if you're booting that way at the moment.

Comment 5 Jim Meyering 2009-08-27 20:20:24 UTC
I've just rebooted a few times.  I tried removing "rhgb quiet".  and later with enforcing=0.  Neither helped or showed me any more information than I had already seen (I usually hit down-arrow, so I can watch dmesg output go by).

I presume the above read syscall is failing.
Any suggestion on how I can determine how/why?

Comment 6 Bill Nottingham 2009-08-27 20:24:01 UTC
The obvious-but-cheesy way would be to slap a strace in front of all the sulogin calls in rc.sysinit.

Comment 7 Jim Meyering 2009-08-28 07:16:39 UTC
I've just tried that, by replacing each of the three sulogin lines by
strace -o /root/sulog sulogin in /etc/rc.sysinit.

However, that left me with a rolling reboot.  Why?
(and i didn't see any diagnostic -- could have missed it, though)

At first I suspected it was the use of "strace" rather than
"/usr/bin/strace", but I ruled that out when I saw the
". /etc/init.d/functions" line at the top.  It sets PATH
to include /usr/bin.

Suggestions welcome.
[hmm... still always with selinux enabled.
 I've lost the habit of trying with it disabled.  will try that next]

For now, I've restored rc.sysinit and fstab, rebooted (this is
my primary system, after all) and am back to regularly-scheduled work.

Comment 8 Andrew Schultz 2009-11-22 17:35:30 UTC
I encountered this same problem after updating to F12.  About half the time, the system thinks one of my disks is hosed (and encounters this problem).  The other half, it thinks the disk is fine (and boots normally).  Additionally, I tried single-user mode on one of the lucky boot-ups and found that my login shell was also broken.  I couldn't see anything I typed.  I could see output from commands, but the newlines were missing.  So if I typed

cat /etc/fstab

I got my fstab, wrapped a few times.

Comment 9 Bug Zapper 2010-04-28 10:01:27 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 

Comment 10 Michal Jaegermann 2010-05-28 10:10:56 UTC
This bug is present and doing just fine in Fedora 12 too.  I just got bitten by it.  See bug 531047 with a number of comments there.  One should likely be closed as a duplicate.

Comment 11 Bill Nottingham 2010-05-28 21:10:58 UTC

*** This bug has been marked as a duplicate of bug 531047 ***

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