Bug 834896
Summary: | 'mount' command hangs if you try to mount an extended partition | |||
---|---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Steven Dake <sdake> | |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | |
Status: | CLOSED UPSTREAM | QA Contact: | ||
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | unspecified | CC: | dyasny, mbooth, rjones, sandro, virt-maint, walkerrichardj | |
Target Milestone: | --- | Keywords: | Reopened | |
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 835019 (view as bug list) | Environment: | ||
Last Closed: | 2013-02-21 16:16:54 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 835019, 835084 | |||
Bug Blocks: |
Description
Steven Dake
2012-06-24 17:40:29 UTC
Here is a simple reproducer: guestfish -x <<EOF sparse test1.img 100M run part-init /dev/sda mbr part-add /dev/sda p 32 127 part-add /dev/sda e 128 -32 part-add /dev/sda l 140 499 part-add /dev/sda l 501 -64 part-list /dev/sda mount /dev/sda2 / EOF It hangs at the last (mount) line where it's trying to mount the extended partition. Of course that makes no sense, but it shouldn't hang. You can get additional debug information by adding the '-v' flag to the guestfish command line. guestfsd is just executing this command: mount -o /dev/vda2 /sysroot/ So it appears to be a kernel bug. > mount -o /dev/vda2 /sysroot/
I should have written:
mount -o '' /dev/vda2 /sysroot/
Affected systems: Distro Kernel Affected? Fedora 16 3.1.0-7.fc16.x86_64 N Fedora 16 3.4.2-1.fc16.x86_64 Y Fedora 17 3.4.0-1.fc17.x86_64 Y Rawhide 3.5.0-0.rc2.git0.1.fc18.x86_64 Y Rawhide 3.5.0-0.rc3.git0.2.fc18.x86_64 Y RHEL 6 2.6.32-221.el6.x86_64 N So it appears to be a bug that has been introduced to the kernel between 3.1.0 and 3.4.2 (unfortunately rather a large range of versions!) Next step is to work out where exactly in kernel or userspace it is spinning. This has been fixed in the kernel and the fixes have been backported to earlier kernel stable branches. On that basis I'm closing this bug. If you still have this bug, update your kernel. Is it possible that this issue has been reintroduced? $ uname -a Linux tiphares.ethz.ch 3.7.6-102.fc17.x86_64 #1 SMP Mon Feb 4 17:40:25 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux But oz-install will give me: Traceback (most recent call last): File "/bin/oz-install", line 143, in <module> guest.generate_install_media(force_download) File "/usr/lib/python2.7/site-packages/oz/RedHat.py", line 732, in generate_install_media return self._iso_generate_install_media(fetchurl, force_download) File "/usr/lib/python2.7/site-packages/oz/Guest.py", line 1565, in _iso_generate_install_media self._copy_iso() File "/usr/lib/python2.7/site-packages/oz/Guest.py", line 1269, in _copy_iso gfs.mount_options('ro', "/dev/sda", "/") File "/usr/lib/python2.7/site-packages/guestfs.py", line 2743, in mount_options return libguestfsmod.mount_options (self._o, options, device, mountpoint) RuntimeError: mount_options: /dev/vda on / (options: 'ro'): mount: wrong fs type, bad option, bad superblock on /dev/vda, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so (In reply to comment #5) > Is it possible that this issue has been reintroduced? > > $ uname -a > Linux tiphares.ethz.ch 3.7.6-102.fc17.x86_64 #1 SMP Mon Feb 4 17:40:25 UTC > 2013 x86_64 x86_64 x86_64 GNU/Linux > > But oz-install will give me: > > Traceback (most recent call last): > File "/bin/oz-install", line 143, in <module> > guest.generate_install_media(force_download) > File "/usr/lib/python2.7/site-packages/oz/RedHat.py", line 732, in > generate_install_media > return self._iso_generate_install_media(fetchurl, force_download) > File "/usr/lib/python2.7/site-packages/oz/Guest.py", line 1565, in > _iso_generate_install_media > self._copy_iso() > File "/usr/lib/python2.7/site-packages/oz/Guest.py", line 1269, in > _copy_iso > gfs.mount_options('ro', "/dev/sda", "/") > File "/usr/lib/python2.7/site-packages/guestfs.py", line 2743, in > mount_options > return libguestfsmod.mount_options (self._o, options, device, mountpoint) > RuntimeError: mount_options: /dev/vda on / (options: 'ro'): mount: wrong fs > type, bad option, bad superblock on /dev/vda, > missing codepage or helper program, or other error > In some cases useful info is found in syslog - try > dmesg | tail or so While it's possible, it doesn't seem likely. That error can mean many different things. Enable debugging http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs and open a new bug if you think there is a problem http://libguestfs.org/guestfs-faq.1.html#getting-help-and-reporting-bugs |