[Bug 726926] New: systemd goes to emergency mode with missing usb stick (bad fstab entry)
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c0 Summary: systemd goes to emergency mode with missing usb stick (bad fstab entry) Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- Blocker: --- - boot 12.1-beta1 install system from VFAT usb stick (either full 12.1-beta1 DVD or NET-install) - install the system (default settings) installation will create a mount point /windows/C for the VFAT usb stick - reboot with usb stick removed (it's "primary hard disk" on my system, so "boot harddisk" does not work with usb stick inserted:-(( so usb stick is not available anymore and can't be mounted to /windows/C as automatically configured and I ended up in "emergency mode" I just reproduced the problem with your test-systemd with this fstab entry on my notebook (no internal disk sdb) /dev/sdb1 /c vfat defaults 0 0 with existing directory /c and missing usb stick. dmesg debug info and screen shot will be attached... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c1 --- Comment #1 from Harald Koenig <koenig@linux.de> 2011-10-27 19:37:12 UTC --- Created an attachment (id=459222) --> (http://bugzilla.novell.com/attachment.cgi?id=459222) dmesg with debug output -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c2 --- Comment #2 from Harald Koenig <koenig@linux.de> 2011-10-27 19:37:40 UTC --- Created an attachment (id=459223) --> (http://bugzilla.novell.com/attachment.cgi?id=459223) screen dump after boot in emergency mode -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |fcrozat@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c3 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fcrozat@suse.com Component|Basesystem |Installation AssignedTo|fcrozat@suse.com |bnc-team-screening@forge.pr | |ovo.novell.com QAContact|qa@suse.de |jsrain@suse.com --- Comment #3 from Frederic Crozat <fcrozat@suse.com> 2011-10-31 12:33:40 UTC --- sounds like an installer bug, it should add "removable" device as "defaults" but as "noauto". try changing fstab from /dev/sdb1 /c vfat defaults 0 0 to /dev/sdb1 /c vfat noauto 0 0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c4 --- Comment #4 from Harald Koenig <koenig@linux.de> 2011-10-31 15:24:16 UTC --- (In reply to comment #3)
sounds like an installer bug, it should add "removable" device as "defaults" but as "noauto".
maybe
try changing fstab from
will try & report later. BUT: please consider this as an *example* for problematic/broken fstab entries which will cause *severe* trouble when using systemd -- and there will be *many* similar cases (remember the /var/nscd tmpfs, others will follow...) IMHO systemd should either - not (more or less completely) "block" the system startup, or - at least give much better diagnosis output what went wrong and maybe give some hints how to "fix" the system startup. right now there is no message "mounting /home failed", "check fstab entry for /c" or similar which gives the user a chance to understand and fix the problem... funnily systemd now starts up my notebook with /home/ missing (not consistent with the behavior in this case -- but IMHO a better fallback as the "emerceny mode" loop)... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c5 --- Comment #5 from Frederic Crozat <fcrozat@suse.com> 2011-10-31 15:39:30 UTC --- consider there is no "way" to detect between a block device not being available because it is not on the system (removable device) and just because the hardware is slow to respond. The real cause should be fixed (ie removable device shouldn't be added as "auto" or should use automount). regarding "hinting", it should be reported upstream (bugzilla.freedesktop.org). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |yast2-maintainers@suse.de |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c6 Lukas Ocilka <locilka@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fehr@suse.com AssignedTo|yast2-maintainers@suse.de |aschnell@suse.com Summary|systemd goes to emergency |systemd goes to emergency |mode with missing usb stick |mode with USB stick missing |(bad fstab entry) |after reboot (incorrect | |fstab entry) --- Comment #6 from Lukas Ocilka <locilka@suse.com> 2011-11-01 13:00:52 UTC --- Arvin, Thomas, please see comments #3 and #5 (for a quick overview) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c7 Thomas Fehr <fehr@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |koenig@linux.de --- Comment #7 from Thomas Fehr <fehr@suse.com> 2011-11-02 10:50:48 UTC --- Is it sure that the line /dev/sdb1 /c vfat defaults 0 0 Was added by yast2-storage? Please attach y2log files. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c8 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |coolo@suse.com, | |lnussel@suse.com --- Comment #8 from Ludwig Nussel <lnussel@suse.com> 2011-11-02 14:45:09 CET --- I think that entry just served as quick test for the /windows/* entries without actually having to perform an installation. IMHO yast should simply no longer add any /windows mount points at all anymore. The file managers allow to mount any partition via udisks just fine anyways. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c9 --- Comment #9 from Thomas Fehr <fehr@suse.com> 2011-11-02 14:16:50 UTC --- Of course this can be done quite easily if someone decides to remove /windows mount point from /etc/fstab. But IMHO after RC2 it is a little bit late for such decisions. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c10 Harald Koenig <koenig@linux.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|koenig@linux.de | --- Comment #10 from Harald Koenig <koenig@linux.de> 2011-11-02 22:07:43 UTC --- (In reply to comment #7)
Is it sure that the line
/dev/sdb1 /c vfat defaults 0 0
Was added by yast2-storage?
yes and no. *that* specifc line does not come from installation, I added it again to my notebok from what I've seen on earlier server installations (as the original mount point always was /windows/C). in the mean time I've changed my installation/boot method for that server, so *now* that fstab entry does not show up anymore. but there have I've sent y2logs for earlier reports from the time where this was of my "minor" problems at that time -- maybe this can help ?! bug #723777 attachment (id=456144) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c11 Thomas Fehr <fehr@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from Thomas Fehr <fehr@suse.com> 2011-11-03 10:13:27 UTC --- I changed yast2-storage now so that all non-root mount points that are on either USB, ISCSI, FCOE get a "nofail" added to their fstab options. This way it should be prevented that some non-essential filesystem on removable media or network prevents the system from booting. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=726926 https://bugzilla.novell.com/show_bug.cgi?id=726926#c12 --- Comment #12 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-11-03 18:00:18 CET --- This is an autogenerated message for OBS integration: This bug (726926) was mentioned in https://build.opensuse.org/request/show/90054 Factory / yast2-storage -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com