Package: util-linux
Version: 2.20.1-5.3
Dear Maintainer,
At boot we mount a few Linux distro ISO images to offer them via PXE,
but something strange is going on during the mount process and only half
of the specified mounts get mounted.
See those steps to reproduce:
- Mount 8 ISO images via fstab
/root/3c90x.iso /mnt/1 iso9660 loop 0 0
/root/3c90x.iso /mnt/2 iso9660 loop 0 0
...
/root/3c90x.iso /mnt/8 iso9660 loop 0 0
- "mount -a" will only mount 4 images
root@client1:~# mount -a
mount: block device /root/3c90x.iso is write-protected, mounting read-only
mount: block device /root/3c90x.iso is write-protected, mounting read-only
mount: block device /root/3c90x.iso is write-protected, mounting read-only
mount: block device /root/3c90x.iso is write-protected, mounting read-only
mount: could not find any free loop device
mount: could not find any free loop device
mount: could not find any free loop device
mount: could not find any free loop device
root@client1:~# df -h -P |grep loop
/dev/loop1 2.2M 2.2M 0 100% /mnt/1
/dev/loop3 2.2M 2.2M 0 100% /mnt/2
/dev/loop5 2.2M 2.2M 0 100% /mnt/3
/dev/loop7 2.2M 2.2M 0 100% /mnt/4
- Now if you run *again* mount -a it will mount 2 more:
root@client1:~# mount -a
mount: block device /root/3c90x.iso is write-protected, mounting read-only
mount: block device /root/3c90x.iso is write-protected, mounting read-only
mount: could not find any free loop device
mount: could not find any free loop device
root@client1:~# df -h -P |grep loop
/dev/loop1 2.2M 2.2M 0 100% /mnt/1
/dev/loop3 2.2M 2.2M 0 100% /mnt/2
/dev/loop5 2.2M 2.2M 0 100% /mnt/3
/dev/loop7 2.2M 2.2M 0 100% /mnt/4
/dev/loop2 2.2M 2.2M 0 100% /mnt/5
/dev/loop6 2.2M 2.2M 0 100% /mnt/6
Running again mount -a will mount 1 more (on loop4) after which all loop
devices are in use. Not sure why loop0 is not being used by the way.
We can work around this by specifying max_loop=16 in the modprobe.d conf
but guess it's a bug after all.
Regards,
Geert
-- System Information:
Debian Release: 7.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-4-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages util-linux depends on:
ii debconf [debconf-2.0] 1.5.49
ii dpkg 1.16.12
ii initscripts 2.88dsf-41+deb7u1
ii install-info 4.13a.dfsg.1-10
ii libblkid1 2.20.1-5.3
ii libc6 2.13-38+deb7u1
ii libncurses5 5.9-10
ii libselinux1 2.1.9-5
ii libslang2 2.2.4-15
ii libtinfo5 5.9-10
ii libuuid1 2.20.1-5.3
ii lsb-base 4.1+Debian8+deb7u1
ii tzdata 2013i-0wheezy1
ii zlib1g 1:1.2.7.dfsg-13
util-linux recommends no packages.
Versions of packages util-linux suggests:
pn dosfstools <none>
ii kbd 1.15.3-9
ii util-linux-locales 2.20.1-5.3
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]