Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147848 - Mounting an ISO9960 image defined in fstab via the loopback option fails
Summary: Mounting an ISO9960 image defined in fstab via the loopback option fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-16 12:59 UTC by Ville Aakko
Modified: 2006-09-17 02:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ville Aakko 2006-09-16 12:59:49 UTC
I've been mounting as a user CD-, floop and HD-images for ages under Debian (and also tried this under Gentoo). I have these entries in my fstab:

/data/.image.CD         /cdimage        auto            loop,noauto,user,ro,umask=007,gid=disk 0 0
/data/.image.1          /image/1        auto            loop,noauto,user,umask=007,gid=disk 0 0
/data/.image.2          /image/2        auto            loop,noauto,user,umask=007,gid=disk 0 0
/data/.image.3          /image/3        auto            loop,noauto,user,umask=007,gid=disk 0 0
/data/.image.4          /image/4        auto            loop,noauto,user,umask=007,gid=disk 0 0


And, I have a handy script that creates the correct symlink and then mounts the file (tough this is irrelevant, the results are same if you point directly to the image files in fstab).

But, I've noticed that recently, mounting a ISO9660 image defined in fstab doesn't work most of the time (actually, I'm not sure this has ever worked properly in Gentoo, but I sure had no such problems when I used Debian). If the mount fails, I get the following error:

mount: wrong fs type, bad option, bad superblock on /dev/loop2,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

I get this in syslog:
Sep 16 22:40:44 localhost kernel: UDF-fs: No VRS found

However, using mount -o loop (as root) still works (the images I try to mount appear then mounted as ISO96660). I've no idea what actually causes it to fail, as under sometimes the ISO9660 images do mount correctly. Forexample, I can not mount install-x86-minimal-2006.0.iso at all as a user (but can as root if using -o loop and not giving both the file and mountpoint to mount). Also, there is a ISO9660 image file that doesn't mount if I have two HD images already mounted (but does if I don't). 

There seems to be some bugs with the file system detection, though even if I replace "auto" with "iso9660" or "iso9660,udf" I still get the same behaviour. I've noticed no problems with image files containg VFAT or NTFS, I've only had problems with ISO9660.

Stpes to reproduce:
1. get a ISO9960 image, for example 'wget ftp://trumpetti.atm.tut.fi/gentoo/releases/x86/2006.1/installcd/install-x86-minimal-2006.1.iso'
2. make an entry in /etc/fstab pointing to the image file, with options user and loop
3. try to mount the image as a user - 'mount /mount/point'

Actual results:
Usually the mount does not work with the errors described above. Sometimes it does. What is actually required to make the mount fail is unknown.

Expected results:
The file should mount always.
Comment 1 Ville Aakko 2006-09-16 13:00:23 UTC
emerge --info
Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo-r13VillenUbiili-1 i686)
=================================================================
System uname: 2.6.16-gentoo-r13VillenUbiili-1 i686 AMD Athlon(tm)  3100+
Gentoo Base System version 1.12.4
Last Sync: Tue, 12 Sep 2006 17:00:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/java-config/vms/ /etc/rc.d /etc/revdep-rebuild /etc/terminfo /etc/wget"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/"
LANG="fi_FI.UTF-8"
LINGUAS="fi en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise /usr/portage/local/layman/zugaina"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext 7zip S3TC X a52 aac aalib adsl aio alsa amazon audacious bash-completion berkdb bitmap-fonts bittorrent bmpx bzip2 cairo cddb cdparanoia cdr crypt css dbus dga directfb dri dvb dvbplayer dvd dvdr dvdread dxr3 elibc_glibc emboss enca encode exif fam fbcon ffmpeg firefox flac fluidsynth font-server fortran ftp gdbm gif gimp gphoto2 gpm gstreamer gzip hal iconv id3 imagemagick input_devices_keyboard input_devices_mouse ipv6 irssi isdnlog java javascript jpeg kde kdm kernel_linux kipi ladspa lame latin1 lcms ldap libcaca libg++ linguas_en_GB linguas_fi lirc lirc_devices_serial live lm_sensors lzo mad mdb mikmod mixer mjpeg mmkeys mmx mmxext mng modplug mp3 mp4 mp4live mpd-mad mpeg mpeg2 mplayer msn musepack music ncurses nls nodrm nptl nptlonly nsplugin nvram ogg oggvorbis openal opengl pam pdf png ppds pppd ps python qt3 qt4 quicktime readline real reflection reiser4 reiserfs rtc rtsp samplerate sdl sdl-sound session sid speex spell sse ssl stream subtitles svg symlink tcpd theora tiff timidity transcode trayicon truetype truetype-fonts type1 type1-fonts udev unicode unzip usb userland_GNU userlocales v4l vcd vcdimager vdr video_cards_fglrx video_cards_radeon video_cards_vesa vorbis win32codecs wma x264 xanim xml xorg xpm xrandr xscreensaver xv xvid xvmc zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 SpanKY gentoo-dev 2006-09-17 02:30:33 UTC
`man mount` -> umask is not a valid option for iso9660 filesystems