[Bug 721683] New: Cannot mount "/tmp" from swap
https://bugzilla.novell.com/show_bug.cgi?id=721683 https://bugzilla.novell.com/show_bug.cgi?id=721683#c0 Summary: Cannot mount "/tmp" from swap Classification: openSUSE Product: openSUSE 12.1 Version: Beta 1 Platform: i686 OS/Version: SuSE Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: nrickert@ameritech.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20100101 Firefox/7.0 I attempted to mount "/tmp" from swap. For this, I added to "/etc/fstab": none /tmp tmpfs defaults 1 2 With that line there, the system failed to complete booting. The system appeared to hang just after mounting "/" as read/write. There was one additional line of output about being unable to break the loop. If I wait long enough, I then get a shell, but I am unable to reboot or shutdown from the shell (it goes into a hang again). Removing that line from "/etc/fstab" allows normal bootup. Note that this did work with M5 (using "init"). However, when I tried "systemd" with M5, it hung at the same point. It is possible that this problem is related to bug 721666 (swapon not done). Reproducible: Always Steps to Reproduce: 1.Add the indicated line to "/etc/fstab" 2.Reboot Actual Results: System hangs. Expected Results: Boot should complete normally. -- 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=721683 https://bugzilla.novell.com/show_bug.cgi?id=721683#c Stephan Kulow <coolo@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=721683 https://bugzilla.novell.com/show_bug.cgi?id=721683#c1 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Cannot mount "/tmp" from |Cannot mount "/tmp" from |swap |tmpfs --- Comment #1 from Frederic Crozat <fcrozat@suse.com> 2011-10-18 10:33:56 UTC --- a similar issue has been reported upstream : http://lists.freedesktop.org/archives/systemd-devel/2011-October/003657.html Systemd doesn't play with stacked mounted for now.. -- 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=721683 https://bugzilla.novell.com/show_bug.cgi?id=721683#c2 --- Comment #2 from Neil Rickert <nrickert@ameritech.net> 2011-10-18 12:43:43 UTC --- Thanks. I'm not sure that it is exactly the same problem, since I am not mount "/tmp" then mounting it again on top, and I am having problems on startup, not on shutdown. Is there some other way of mounting "/tmp" as tmpfs? Since "/var/run" and others are mounted that way, is there a file where I can add a line to have "/tmp" mounted that way without causing problems? (The idea is to do this in conjunction with encrypted swap, so that nothing in "/tmp" is never stored unencrypted on disk). -- 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=721683 https://bugzilla.novell.com/show_bug.cgi?id=721683#c3 --- Comment #3 from Frederic Crozat <fcrozat@suse.com> 2011-10-18 12:52:14 UTC --- you could try to create a tmpfs.mount file in /etc/systemd/system. Try something like : [Unit] Description=tmpfs /tmp Before=local-fs.target [Mount] What=tmpfs Where=/tmp Type=tmpfs Option=mode=755,nosuid,nodev,noexec -- 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=721683 https://bugzilla.novell.com/show_bug.cgi?id=721683#c4 --- Comment #4 from Neil Rickert <nrickert@ameritech.net> 2011-10-20 16:01:33 UTC --- Thanks for the suggestion (for "tmpfs.mount"). Unfortunately, it did not seem to work. I did find the same problem reported elsewhere: https://bugzilla.redhat.com/show_bug.cgi?id=717794 -- 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=721683 https://bugzilla.novell.com/show_bug.cgi?id=721683#c5 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #5 from Frederic Crozat <fcrozat@suse.com> 2011-10-27 14:49:36 UTC --- found it : passno was set to 2 (ie fsck is tried to be run on a tmpfs, which is not a good idea). fixed in Base/System systemd *** This bug has been marked as a duplicate of bug 726791 *** http://bugzilla.novell.com/show_bug.cgi?id=726791 -- 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=721683 https://bugzilla.novell.com/show_bug.cgi?id=721683#c6 Neil Rickert <nrickert@ameritech.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Platform|i686 |x86-64 Resolution|DUPLICATE | --- Comment #6 from Neil Rickert <nrickert@ameritech.net> 2011-11-04 17:05:32 UTC --- This problem is back, with 12.1-rc2, though perhaps it is actually a different problem. It now only affects 64 bit systems. Installed rc2. Things went fine. I then added the line: none /tmp tmpfs defaults 0 0 to "/etc/fstab". On two systems where I installed 32 bit, that worked fine. In fact, I actually tested with "1 2" as those last two parameters, and that also worked fine, as it should. Today, I installed 64 bit. I tried adding the same line. But, even when using the "0 0" as shown above, systemd goes into emergency mode. While in emergency mode, I am able to comment out that line from "/etc/fstab" and reboot. With the line commented out, the system boots normally. To repeat - this is a problem with 64 bit installs of rc2. It does not affect 32 bit installs. -- 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=721683 https://bugzilla.novell.com/show_bug.cgi?id=721683#c7 --- Comment #7 from Frederic Crozat <fcrozat@suse.com> 2011-11-07 14:39:21 UTC --- just tested and it works fine in 64bits with RC2.. if you still have issue, attach dmesg when booting with systemd.log_level=debug systemd.log_target=kmsg -- 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=721683 https://bugzilla.novell.com/show_bug.cgi?id=721683#c8 Neil Rickert <nrickert@ameritech.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #8 from Neil Rickert <nrickert@ameritech.net> 2011-11-07 22:41:34 UTC --- It was user error on my part. Sorry about that. I mistakenly wrote "tempfs" rather than "tmpfs" in the fstab file. -- 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