Package: mount Version: 2.13.1.1-1 Severity: normal
`mount -o loop' runs out of loop devices when /etc/mtab is a symlink to /proc/mounts. I know it's documented in mount(8), but please consider that lenny/squeeze have moved to the setup where /etc/mtab is symlinked (only new Lenny installs though). The changes are documented in the following bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494001. $ls -l /etc/mtab lrwxrwxrwx 1 root root 12 Май 30 23:07 /etc/mtab -> /proc/mounts $dd if=/dev/zero of=img bs=10240 count=10 10+0 records in 10+0 records out 102400 bytes (102 kB) copied, 0,000302873 s, 338 MB/s $mkfs.ext2 img mke2fs 1.41.3 (12-Oct-2008) img is not a block special device. Proceed anyway? (y,n) y Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 16 inodes, 100 blocks 5 blocks (5.00%) reserved for the super user First data block=1 1 block group 8192 blocks per group, 8192 fragments per group 16 inodes per group Writing inode tables: done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 30 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. #losetup -a #ls /dev/loop* /dev/loop0 /dev/loop2 /dev/loop4 /dev/loop6 /dev/loop1 /dev/loop3 /dev/loop5 /dev/loop7 #for i in `seq 1 9`; do echo $i; mount img /mnt/tmp/ -oloop && umount /mnt/tmp/; done 1 2 3 4 5 6 7 8 9 mount: could not find any free loop device #losetup -a /dev/loop0: [fd03]:1032215 (/home/ledestin/tmp/img) /dev/loop1: [fd03]:1032215 (/home/ledestin/tmp/img) /dev/loop2: [fd03]:1032215 (/home/ledestin/tmp/img) /dev/loop3: [fd03]:1032215 (/home/ledestin/tmp/img) /dev/loop4: [fd03]:1032215 (/home/ledestin/tmp/img) /dev/loop5: [fd03]:1032215 (/home/ledestin/tmp/img) /dev/loop6: [fd03]:1032215 (/home/ledestin/tmp/img) /dev/loop7: [fd03]:1032215 (/home/ledestin/tmp/img) -- System Information: Debian Release: 5.0.1 APT prefers stable APT policy: (600, 'stable'), (500, 'proposed-updates') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686 (SMP w/4 CPU cores) Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R) Shell: /bin/sh linked to /bin/bash Versions of packages mount depends on: ii libblkid1 1.41.3-1 block device id library ii libc6 2.7-18 GNU C Library: Shared libraries ii libselinux1 2.0.65-5 SELinux shared libraries ii libuuid1 1.41.3-1 universally unique id library mount recommends no packages. Versions of packages mount suggests: ii nfs-common 1:1.1.2-6lenny1 NFS support files common to client -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org