Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37000 - mounting iso-image fails
Summary: mounting iso-image fails
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-02 00:56 UTC by Tero Knuutila
Modified: 2004-10-03 00:23 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 Tero Knuutila 2004-01-02 00:56:08 UTC
When I run:
  mount -vv -o loop -t iso9660 fdbootcd.iso temp/
I get:

mount: going to use the loop device /dev/loop0
set_loop(/dev/loop0,fdbootcd.iso,0): success
mount: setup loop device successfully
del_loop(/dev/loop0): success
mount: Not a directory


Reproducible: Always
Steps to Reproduce:
1. su
2. mount -vv -o loop -t iso9660 fdbootcd.iso temp/
3.

Actual Results:  
I got an error "mount: Not a directory" and it gets not mounted.


Expected Results:  
mount iso-image to temp/

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test11)
=================================================================
System uname: 2.6.0-test11 i686 AMD Duron(tm) processor
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-Os -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt encode foomaticdb gif gtk2 jpeg libg++ mad mikmod
mpeg ncurses nls pdflib png quicktime spell xml2 xmms xv zlib alsa gdbm berkdb
slang readline arts tetex svga java X sdl gpm tcpd pam libwww ssl perl python
esd imlib oggvorbis motif opengl mozilla cdr qt kde cups tcltk gnome gtk truetype"
Comment 1 Tero Knuutila 2004-01-02 01:07:41 UTC
Forgot to tell: my mount is from util-linux-2.11z-r8 package. I used to have util-linux-2.something and it had the same bug. I have also tested 2.4 kernel, it  does no thelp. Now I run 2.6.0-test11 kernel.
Comment 2 SpanKY gentoo-dev 2004-01-02 05:13:06 UTC
umm, arent you supposed to do loop=/dev/loop0 or something ?
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2004-01-02 12:36:03 UTC
the temp/ directory does exist right? (it probably does, but it doesn't hurt to ask)
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2004-01-05 15:37:47 UTC
Nah, his mount command is fine - I do though think the temp/ might not exist
as Seemant commented, or some weirdness there abouts.

Can you please do (if temp/ really do exist):

  # strace -ff -e open mount -vv -o loop -t iso9660 fdbootcd.iso temp/

and attach the log. Remember to emerge strace if you do not have it already
merged ...
Comment 5 Tero Knuutila 2004-01-08 10:16:09 UTC
Hi!

temp exists: Here's cut'n paste from ls and strace:

root /home/tkn# ls -la temp/
total 6
drwxr-xr-t    2 tkn      users          48 Jan  8 20:09 .
drwx------   90 tkn      users        5272 Jan  8 20:12 ..
root /home/tkn# strace -ff -e open mount -vv -o loop -t iso9660 fdbootcd.iso temp/
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/dev/null", O_RDWR|O_LARGEFILE)   = 3
open("/dev/loop0", O_RDONLY|O_LARGEFILE) = 3
mount: going to use the loop device /dev/loop0
open("fdbootcd.iso", O_RDWR|O_LARGEFILE) = 3
open("/dev/loop0", O_RDWR|O_LARGEFILE)  = 4
open("/proc/crypto/cipher/(null)-cbc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
set_loop(/dev/loop0,fdbootcd.iso,0): success
mount: setup loop device successfully
open("/dev/loop0", O_RDONLY|O_LARGEFILE) = 3
del_loop(/dev/loop0): success
mount: Not a directory

------------
Comment 6 Tero Knuutila 2004-02-18 04:00:43 UTC
Hi!

I just downloaded another .iso image AND mounted it succesfully. 
So this bug only shows itself with some iso files.

Example of iso img which reveals bug:
www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/beta9rc1/fdbootcd.iso

Just try to mount that on loop dev and you will (propably) see same error as I do.
Comment 7 SpanKY gentoo-dev 2004-10-03 00:23:54 UTC
try util-linux-2.12b

if that fails, please post an URL to an iso which fails with 2.12b (the one you posted is gone now :/)