* 2.4.1ac17 hang on mounting loopback fs
@ 2001-02-17 9:52 Nate Eldredge
2001-02-17 20:31 ` Alan Cox
2001-02-17 20:42 ` Nate Eldredge
0 siblings, 2 replies; 7+ messages in thread
From: Nate Eldredge @ 2001-02-17 9:52 UTC (permalink / raw)
To: linux-kernel
This one should be easy to track down, it's reproducible (2 for 2 so
far).
Kernel 2.4.1ac17 compiled by gcc 2.95.2.
Scenario: In single-user mode; only user process running is /bin/bash
(pid 1). Only fs'es mounted are / (ro), /spare (rw) (both ext2),
/proc.
# mount -t ext2 -o loop /spare/i486-linuxaout.img /spare/mnt
loop: enabling 8 loop devices
then it hangs. No ctrl-C etc.
I did Ctrl+ScrollLock. The entry for mount had the following (copied
manually):
mount D C7E33E78 5012 23 1 (NOTLB)
Call trace: c012f17a c0130167 c0151dc1 c01267af c0133102 c013331c
c0108e84 c0133e65 c0133c9c [maybe 3cac] c013401c c0108d43
Appropriate lines of System.map, in order:
c012f110 T __wait_on_buffer
c0130124 T bread
c0151d0c T ext2_read_super
c0126740 T kmalloc
c0132ffc t read_super
c01331d0 t get_sb_bdev
c0108e50 t error_code
c0133cec T do_mount
c0133c4c t copy_mount_options [in either case]
c0133fa0 T sys_mount
c0108d10 T system_call
The image file in question is ext2, about 20 MB, 1K blocksize. loop.o
is compiled as a module.
Incidentally this also happened under more normal circumstances, when
it tried to mount the fs from fstab. I haven't yet booted without
mounting that fs.
Btw, this machine has a FIC PA-2013 motherboard with VIA chipset, and
I have CONFIG_IDEDMA_PCI_AUTO enabled. But this doesn't seem like the
other trouble such machines were having.
I'm happy to provide more info, test patches, etc. Please CC me
directly if convenient as I can only read the list through a web
gateway, which is slow.
--
Nate Eldredge
neldredge@hmc.edu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.4.1ac17 hang on mounting loopback fs
2001-02-17 9:52 2.4.1ac17 hang on mounting loopback fs Nate Eldredge
@ 2001-02-17 20:31 ` Alan Cox
2001-02-17 20:42 ` Nate Eldredge
1 sibling, 0 replies; 7+ messages in thread
From: Alan Cox @ 2001-02-17 20:31 UTC (permalink / raw)
To: Nate Eldredge; +Cc: linux-kernel
> # mount -t ext2 -o loop /spare/i486-linuxaout.img /spare/mnt
> loop: enabling 8 loop devices
Loop does not currently work in 2.4. It might partly work by luck but thats it.
This will change as and when the new loop patches go in. Until then if you need
loop use 2.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.4.1ac17 hang on mounting loopback fs
2001-02-17 9:52 2.4.1ac17 hang on mounting loopback fs Nate Eldredge
2001-02-17 20:31 ` Alan Cox
@ 2001-02-17 20:42 ` Nate Eldredge
2001-02-18 0:01 ` Ville Herva
1 sibling, 1 reply; 7+ messages in thread
From: Nate Eldredge @ 2001-02-17 20:42 UTC (permalink / raw)
To: Alan Cox; +Cc: Nate Eldredge, linux-kernel
Alan Cox writes:
> > # mount -t ext2 -o loop /spare/i486-linuxaout.img /spare/mnt
> > loop: enabling 8 loop devices
>
> Loop does not currently work in 2.4. It might partly work by luck
> but thats it. This will change as and when the new loop patches go
> in. Until then if you need loop use 2.2
I see. Thank you. I can live without it until then.
Btw, I applied Jens Axboe's loop-3 patch as suggested by Ville Herva.
It applied with some fuzz and offset. However, when I booted it, the
kernel oopsed when I tried to mount the first ordinary ext2 partition
(no loopback involved). I can post the oops if anyone cares, but I
presume that loop-3 and 2.4.1ac17 are just incompatible.
--
Nate Eldredge
neldredge@hmc.edu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.4.1ac17 hang on mounting loopback fs
2001-02-17 20:42 ` Nate Eldredge
@ 2001-02-18 0:01 ` Ville Herva
2001-02-18 0:19 ` Pete Toscano
0 siblings, 1 reply; 7+ messages in thread
From: Ville Herva @ 2001-02-18 0:01 UTC (permalink / raw)
To: Nate Eldredge; +Cc: linux-kernel
On Sat, Feb 17, 2001 at 12:42:42PM -0800, you [Nate Eldredge] claimed:
> Alan Cox writes:
> > > # mount -t ext2 -o loop /spare/i486-linuxaout.img /spare/mnt
> > > loop: enabling 8 loop devices
> >
> > Loop does not currently work in 2.4. It might partly work by luck
> > but thats it. This will change as and when the new loop patches go
> > in. Until then if you need loop use 2.2
>
> I see. Thank you. I can live without it until then.
>
> Btw, I applied Jens Axboe's loop-3 patch as suggested by Ville Herva.
> It applied with some fuzz and offset. However, when I booted it, the
> kernel oopsed when I tried to mount the first ordinary ext2 partition
> (no loopback involved). I can post the oops if anyone cares, but I
> presume that loop-3 and 2.4.1ac17 are just incompatible.
I'm not sure if it'll apply any more cleanly (and work), but the newest is
loop-4 at
ftp://ftp.kernel.org/pub/linux/kernel/people/axboe/patches/2.4.2-pre1
(It should work with 2.4.1pre1, at least).
-- v --
v@iki.fi
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.4.1ac17 hang on mounting loopback fs
2001-02-18 0:01 ` Ville Herva
@ 2001-02-18 0:19 ` Pete Toscano
2001-02-18 3:28 ` Thomas Molina
0 siblings, 1 reply; 7+ messages in thread
From: Pete Toscano @ 2001-02-18 0:19 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]
hmmm... I've been trying to play with GRUB on my 2.4.2-pre4 system. For
safety's sake, I wanted to make a bookdisk with mkbootdisk. After
reading this, I see now why mkbootdisk was locking in the D state with
the loop mounted... Would this also explain not being able to seek
forward while writing a floppy?
I was trying to make the GRUB boot disk by writing the stage 1 and 2
loaders to the floppy (as per the GRUB docs) with dd:
[root@bubba grub]# dd of=/dev/fd0 if=stage1 bs=512 count=1
1+0 records in
1+0 records out
[root@bubba grub]# dd of=/dev/fd0 if=stage2 bs=512 seek=1
dd: advancing past 1 blocks in output file `/dev/fd0': Permission denied
With 2.4.1, I get a different error message, but, AFAICT, the same
result.
pete
Alan Cox writes:
> > # mount -t ext2 -o loop /spare/i486-linuxaout.img /spare/mnt
> > loop: enabling 8 loop devices
>
> Loop does not currently work in 2.4. It might partly work by luck
> but thats it. This will change as and when the new loop patches go
> in. Until then if you need loop use 2.2
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.4.1ac17 hang on mounting loopback fs
2001-02-18 0:19 ` Pete Toscano
@ 2001-02-18 3:28 ` Thomas Molina
2001-02-18 5:15 ` Pete Toscano
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Molina @ 2001-02-18 3:28 UTC (permalink / raw)
To: Pete Toscano; +Cc: linux-kernel
On Sat, 17 Feb 2001, Pete Toscano wrote:
> reading this, I see now why mkbootdisk was locking in the D state with
> the loop mounted... Would this also explain not being able to seek
> forward while writing a floppy?
>
> I was trying to make the GRUB boot disk by writing the stage 1 and 2
> loaders to the floppy (as per the GRUB docs) with dd:
>
> [root@bubba grub]# dd of=/dev/fd0 if=stage1 bs=512 count=1
> 1+0 records in
> 1+0 records out
> [root@bubba grub]# dd of=/dev/fd0 if=stage2 bs=512 seek=1
> dd: advancing past 1 blocks in output file `/dev/fd0': Permission denied
Different problem. Add conv=notrunc to the dd command to make it work.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-02-18 5:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-17 9:52 2.4.1ac17 hang on mounting loopback fs Nate Eldredge
2001-02-17 20:31 ` Alan Cox
2001-02-17 20:42 ` Nate Eldredge
2001-02-18 0:01 ` Ville Herva
2001-02-18 0:19 ` Pete Toscano
2001-02-18 3:28 ` Thomas Molina
2001-02-18 5:15 ` Pete Toscano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®