Bug 713031 - mount -a sysfs already mounted or /sys busy
Summary: mount -a sysfs already mounted or /sys busy
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: dracut-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-14 02:27 UTC by Ralf Corsepius
Modified: 2012-01-23 09:21 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-23 09:21:13 UTC
Type: ---


Attachments (Terms of Use)
"[FAILDED]" boot message (197 bytes, text/plain)
2011-09-30 19:46 UTC, Gregory Lee Bartholomew
no flags Details
output of mount -a (356 bytes, text/plain)
2011-09-30 19:47 UTC, Gregory Lee Bartholomew
no flags Details
output of mount (2.13 KB, text/plain)
2011-09-30 19:47 UTC, Gregory Lee Bartholomew
no flags Details
fstab (760 bytes, text/plain)
2011-09-30 19:48 UTC, Gregory Lee Bartholomew
no flags Details

Description Ralf Corsepius 2011-06-14 02:27:38 UTC
Description of problem:
# mount -a
mount: sysfs already mounted or /sys/busy
mount: according to mtab, /sys is already mounted /on sys

Version-Release number of selected component (if applicable):
util-linux-2.19.1-1.fc15.i686

How reproducible:
Always

Steps to Reproduce:
1. login as root
2. run
mount -a

  
Actual results:
see above.

Expected results:
Silence. 

Additional info:
This is on a fresh f15 install.

Comment 1 Karel Zak 2011-06-14 08:20:55 UTC
This is because the entry in /etc/fstab (1st field) does not match with the way how /sys was mounted.

/etc/fstab (generated by anaconda):

    sysfs      /sys     sysfs   defaults        0 0
    ^^^^^

/proc/mounts (probably mounted by dracut):

    /sys      /sys      sysfs   rw,relatime 0 0
    ^^^^

The mount(8) command uses the first two fields to check for already mounted filesytems. These fields in fstab have to match with the same fields in the table of already mounted filesystems. 

My suggestion is to use the same patterns everywhere (in /etc/fstab, systemd and dracut). Copy & past from systemd (where is the most complete list of the pseudo filesystems ;-):

"proc",     "/proc",                  "proc",     
"sysfs",    "/sys",                   "sysfs",    
"devtmpfs", "/dev",                   "devtmpfs", 
"tmpfs",    "/dev/shm",               "tmpfs",    
"devpts",   "/dev/pts",               "devpts",   
"tmpfs",    "/run",                   "tmpfs",    
"tmpfs",    "/sys/fs/cgroup",         "tmpfs",    
"cgroup",   "/sys/fs/cgroup/systemd", "cgroup",  

Unfortunately dracut (modules.d/99base/init) uses:

  mount -t proc  -o nosuid,noexec,nodev /proc /proc >/dev/null 2>&1
  mount -t sysfs -o nosuid,noexec,nodev /sys  /sys >/dev/null 2>&1

should be

  mount -t proc  -o nosuid,noexec,nodev proc  /proc >/dev/null 2>&1
  mount -t sysfs -o nosuid,noexec,nodev sysfs /sys  >/dev/null 2>&1


Reassigning to Harald.

Comment 2 Andrew Haveland-Robinson 2011-07-20 04:10:19 UTC
Thanks Karel, I'd just like to add that the absolute path is:

/usr/share/dracut/modules.d/99base/init

Comment 3 Alexei Panov 2011-07-21 07:57:58 UTC
Thanks, Karel. Changes in init fix this bug. But need to update initrd.

Comment 4 Gregory Lee Bartholomew 2011-09-30 19:45:31 UTC
I'm still having this issue.

FYI,
gb

Comment 5 Gregory Lee Bartholomew 2011-09-30 19:46:24 UTC
Created attachment 525819 [details]
"[FAILDED]" boot message

Comment 6 Gregory Lee Bartholomew 2011-09-30 19:47:13 UTC
Created attachment 525820 [details]
output of mount -a

Comment 7 Gregory Lee Bartholomew 2011-09-30 19:47:55 UTC
Created attachment 525821 [details]
output of mount

Comment 8 Gregory Lee Bartholomew 2011-09-30 19:48:26 UTC
Created attachment 525822 [details]
fstab

Comment 9 Xtian Simon 2011-10-05 16:10:38 UTC
I have two results:
1) kernel-2.6.40-5.fc15
I have the same error. The proposed fix in comment #1 made no difference in the boot screen error.

2) kernel-2.6.40.3-0.fc15
I do not have this error. The boot screen skips the "mounting other file systems" line that is the error line in (1).

The kernel in (2) is a bug fix 720771. 

Off Topic. Despite the bug being closed, the kernel in (2) does not fix the original problem. It does (fix | ignore | not report) this bug!

Comment 10 Fedora Admin XMLRPC Client 2011-10-20 16:20:11 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.


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