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"
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.
umm, arent you supposed to do loop=/dev/loop0 or something ?
the temp/ directory does exist right? (it probably does, but it doesn't hurt to ask)
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 ...
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 ------------
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.
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 :/)