Bug#367605: broken loop mount support
Bastian Blank wrote: > Okay, two problems: > - It fail to create the loop device. Please provide a strace output. As > I can't reproduce it on my system, if /dev/loop/0 exists, I don't have > any idea what happens. > - The second error is missleading, as it never tries to mount it. Running strace on the boot floppy, the relevant problem seems to be it failing on an ioctl to the loop device. It tries all 7 devices and each fails like this: stat64("/dev/loop/0", {st_mode=S_IFBLK|0640, st_rdev=makedev(7,0), ...}) = 0 open("/dev/loop/0", O_RDWR|O_LARGEFILE) = 4 iotcl(4, 0x4c05, 0xbb9c)= -1 EINVAL (Invalid argument) close(4)= 0 After repeating through to loop/7, it returns to loop/0: stat64("/dev/loop/0", 0xbc84) = -1 ENOENT (No such file or directory) All the loop devices still exist on exit. Weird huh? -- see shy jo signature.asc Description: Digital signature
Bug#367605: broken loop mount support
Joey Hess a écrit : Package: busybox-floppy-udeb Version: 1:1.1.2-1 Severity: important Tags: d-i # mount -o loop /mnt/tmp-initrd /initrd mount: Couldn't setup loop device mount: Mounting (null) on /initrd failed: No such file or directory FWIW, this is on the d-i i386 boot floppy, I've checked that the loop module is loaded, that the file exists, and that /dev/loop/[0-7] exist. if usb is forever excluded in boot floppy, we can now set initrd in root floppy as a cpio archive, and use the busybox cpio command. the consequence is: - we do not need loop device (and udeb) because it does not mount initrd => free space in boot floppy - it does not copy the initrd contents in mnt => we reduce a lot the memory size i did a patch a long time ago, but i will try to find it sylvain smime.p7s Description: S/MIME Cryptographic Signature
Bug#367605: broken loop mount support
On Tue, May 16, 2006 at 10:58:03PM -0500, Joey Hess wrote: > # mount -o loop /mnt/tmp-initrd /initrd > mount: Couldn't setup loop device > mount: Mounting (null) on /initrd failed: No such file or directory Okay, two problems: - It fail to create the loop device. Please provide a strace output. As I can't reproduce it on my system, if /dev/loop/0 exists, I don't have any idea what happens. - The second error is missleading, as it never tries to mount it. Bastian -- Where there's no emotion, there's no motive for violence. -- Spock, "Dagger of the Mind", stardate 2715.1 signature.asc Description: Digital signature
Bug#367605: broken loop mount support
Package: busybox-floppy-udeb Version: 1:1.1.2-1 Severity: important Tags: d-i # mount -o loop /mnt/tmp-initrd /initrd mount: Couldn't setup loop device mount: Mounting (null) on /initrd failed: No such file or directory FWIW, this is on the d-i i386 boot floppy, I've checked that the loop module is loaded, that the file exists, and that /dev/loop/[0-7] exist. I've also reproduced it on a 2.6 system outside of d-i: [EMAIL PROTECTED]:/home/joey/src/d-i/installer/build/tmp/floppy_boot/tree>./bin/busybox mount -o loop ../../floppy_root/initrd /mnt mount: Couldn't setup loop device mount: Mounting (null) on /mnt failed: No such file or directory -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.16-1-686 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) -- see shy jo signature.asc Description: Digital signature