[Bug 840662] New: Unable to mount NTFS filesystems under guestfs - /bin/mount: No such file or directory
https://bugzilla.novell.com/show_bug.cgi?id=840662 https://bugzilla.novell.com/show_bug.cgi?id=840662#c0 Summary: Unable to mount NTFS filesystems under guestfs - /bin/mount: No such file or directory Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 4 Platform: x86-64 OS/Version: openSUSE 12.3 Status: NEW Severity: Major Priority: P5 - None Component: KVM AssignedTo: ohering@suse.com ReportedBy: mlatimer@suse.com QAContact: jdouglas@suse.com Found By: Development Blocker: --- The fuse subsystem seems to be hard-coded to execute /bin/mount, instead of just mount. This prevents NTS filesystems from being mounted under guestfs, as the initramfs is currently missing the /bin/mount symlink to /usr/bin/mount. Tracing guestfs during the problem shows: .. libguestfs: trace: mount_ro "/dev/sda2" "/" guestfsd: main_loop: new request, len 0x40 mount -o ro /dev/sda2 /sysroot/ fuse: failed to execute /bin/mount: No such file or directory guestfsd: error: /dev/sda2 on / (options: 'ro'): fuse: failed to execute /bin/mount: No such file or directory guestfsd: main_loop: proc 73 (mount_ro) took 0.14 seconds Adding a symlink from /bin/mount to /usr/bin/mount in the guestfs initramfs resolves the problem, and NTFS filesystems work correctly. (The problem exists in guestfs-data-1.22.5-61.14.) -- 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=840662 https://bugzilla.novell.com/show_bug.cgi?id=840662#c1 Olaf Hering <ohering@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Olaf Hering <ohering@suse.com> 2013-09-18 10:50:49 CEST --- I think the issue is that fuse uses an absolute path. Dont they know about PATH? I will have a look. -- 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=840662 https://bugzilla.novell.com/show_bug.cgi?id=840662#c2 Olaf Hering <ohering@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ohering@suse.com AssignedTo|ohering@suse.com |mszeredi@novell.com --- Comment #2 from Olaf Hering <ohering@suse.com> 2013-09-18 11:43:14 CEST --- This was added with this commit http://sourceforge.net/p/fuse/fuse/ci/4c3d9b19576c228e1a3c6eab9a6942d9431f6c... Is there any benefit of the absolute path vs. just mount? I dont see any. -- 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=840662 https://bugzilla.novell.com/show_bug.cgi?id=840662#c3 --- Comment #3 from Olaf Hering <ohering@suse.com> 2013-09-18 11:45:00 CEST --- In the meantime I could add an explicit %program: /bin/mount entry to libguestfs.mkinitrd.boot.sh, but I think the real issue has to be fixed in fuse itself. -- 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=840662 https://bugzilla.novell.com/show_bug.cgi?id=840662#c4 --- Comment #4 from Olaf Hering <ohering@suse.com> 2013-09-18 11:52:35 CEST --- fixed packages can be found here, Mike, can you try the new guestfs-data.rpm from this prj? https://build.opensuse.org/project/show/home:olh:bug840662:Factory -- 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=840662 https://bugzilla.novell.com/show_bug.cgi?id=840662#c5 Miklos Szeredi <mszeredi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mszeredi@novell.com --- Comment #5 from Miklos Szeredi <mszeredi@novell.com> 2013-09-18 09:56:38 UTC --- Yes, if the fuse binary is privileged and is calling mount(8) directly and not through fusermount, then searching PATH would be okay. I'll see if I can cook up a patch. -- 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=840662 https://bugzilla.novell.com/show_bug.cgi?id=840662#c6 Miklos Szeredi <mszeredi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |mlatimer@suse.com --- Comment #6 from Miklos Szeredi <mszeredi@novell.com> 2013-09-18 10:09:29 UTC --- Hmm, but why is mount(8) being called at all? In 12.3 /etc/mtab should be a symlink and fuse should not be calling mount(8) at all. So I'm a bit confused. Is there a non-symlink /etc/mtab in your environment? If so, why? -- 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=840662 https://bugzilla.novell.com/show_bug.cgi?id=840662#c7 --- Comment #7 from Olaf Hering <ohering@suse.com> 2013-09-18 15:29:53 CEST --- guestfsd is running inside the initrd, and I see nothing in the initrd that creates such a symlink. libguestfs.mkinitrd.boot.sh could create this link if that solves the bug. -- 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=840662 https://bugzilla.novell.com/show_bug.cgi?id=840662#c8 --- Comment #8 from Miklos Szeredi <mszeredi@novell.com> 2013-09-18 14:13:54 UTC --- I don't know how it's normally created, I can't find it in any script under my /etc in 12.3. Systemd magic perhaps? Anyway./etc/mtab should be a symlink to /proc/self/mounts and that should solve the issue. -- 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=840662 https://bugzilla.novell.com/show_bug.cgi?id=840662#c9 Mike Latimer <mlatimer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|mlatimer@suse.com | --- Comment #9 from Mike Latimer <mlatimer@suse.com> 2013-09-18 21:38:09 UTC --- (In reply to comment #4)
fixed packages can be found here, Mike, can you try the new guestfs-data.rpm from this prj?
https://build.opensuse.org/project/show/home:olh:bug840662:Factory
Unfortunately, I get a 404 error when I try to go to the download repo for libguestfs in the above project... (In reply to comment #8)
I don't know how it's normally created, I can't find it in any script under my /etc in 12.3. Systemd magic perhaps?
In the guestfs initramfs, there is a /boot/91-mtab script which appears to try and create the symlink. However, it references /etc as /root/etc, which doesn't seem to be correct under guestfs. Either way, this script doesn't seem run anyway (under guestfs). (It is being sourced in run_all.sh, but I don't think we run anything after 21-guestfs.sh.)
Anyway./etc/mtab should be a symlink to /proc/self/mounts and that should solve the issue.
I manually added an `ln -sf /proc/self/mounts /etc/mtab` to /boot/21-guestfs.sh, and this does work around the problem. I also explicitly called /boot/91-mtab.sh from 21-guestfs.sh (after changing /root/etc to /etc) and this also worked around the issue. -- 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=840662 https://bugzilla.novell.com/show_bug.cgi?id=840662#c10 Olaf Hering <ohering@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #10 from Olaf Hering <ohering@suse.com> 2013-09-19 15:48:34 CEST --- (In reply to comment #9)
I manually added an `ln -sf /proc/self/mounts /etc/mtab` to /boot/21-guestfs.sh, and this does work around the problem. I also explicitly called /boot/91-mtab.sh from 21-guestfs.sh (after changing /root/etc to /etc) and this also worked around the issue.
I have added "ln -sfbn ../proc/self/mounts /etc/mtab" to libguestfs.mkinitrd.boot.sh and commited this change. Closing. -- 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=840662 https://bugzilla.novell.com/show_bug.cgi?id=840662#c11 --- Comment #11 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-09-23 16:00:16 CEST --- This is an autogenerated message for OBS integration: This bug (840662) was mentioned in https://build.opensuse.org/request/show/200193 Factory / libguestfs -- 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