Red Hat axp-kernel-list: Alpha Linux kernel
 help / color / mirror / Atom feed
* mount/umount causes panic
@ 2003-01-10 20:18 Brian Sullivan
  2003-01-13  8:35 ` Oliver Pitzeier
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Sullivan @ 2003-01-10 20:18 UTC (permalink / raw)


I have a directory full of ISO files. I have a simple shell script that
loops through the ISO files. Each ISO is mounted, a directory listing is
done, and then it is umounted. Each ISO is in good condition. When I run the
script however the kernel panics after 30 to 50 ISOs (never crashes on the
same ISO twice, seems random). The kernel panic is hollering about
"Attempted to kill init". Why would the mount or umount command causes a
panic? I'm running Red Hat 7.3 and 8.0 with the latest patched. Here is the
shell script:

SLOTLIST=`ls slot*`
for SLOT in $SLOTLIST
do
    echo "Moving $SLOT to reader..."
    mv $SLOT reader01

    echo "Mounting..."
    mount reader01

    ls /mnt/cdsim1/D*
    #sleep 50

    echo "Un-Mounting..."
    umount -d reader01

    echo "Moving $SLOT back..."
    mv reader01 $SLOT

done
~

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mount/umount causes panic
@ 2003-01-11 11:32 Walter Harms
  2003-01-13 12:05 ` Brian Sullivan
  0 siblings, 1 reply; 5+ messages in thread
From: Walter Harms @ 2003-01-11 11:32 UTC (permalink / raw)



	what kernel ? (cat /proc/version)
	does it crash also when you mount/umount the some image
	over and over again ?
	
	walter
        



- - - - - - - - - - - - - - Original Message - - - - - - - - - - - - - -
From: Brian Sullivan <BrianSullivan@insiteone.com>
Subject: mount/umount causes panic
Date: 01/10/03 21:18

I have a directory full of ISO files. I have a simple shell script that
loops through the ISO files. Each ISO is mounted, a directory listing is
done, and then it is umounted. Each ISO is in good condition. When I run the
script however the kernel panics after 30 to 50 ISOs (never crashes on the
same ISO twice, seems random). The kernel panic is hollering about
"Attempted to kill init". Why would the mount or umount command causes a
panic? I'm running Red Hat 7.3 and 8.0 with the latest patched. Here is the
shell script:

SLOTLIST=`ls slot*`
for SLOT in $SLOTLIST
do
    echo "Moving $SLOT to reader..."
    mv $SLOT reader01

    echo "Mounting..."
    mount reader01

    ls /mnt/cdsim1/D*
    #sleep 50

    echo "Un-Mounting..."
    umount -d reader01

    echo "Moving $SLOT back..."
    mv reader01 $SLOT

done
~



_______________________________________________
Axp-kernel-list mailing list
Axp-kernel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/axp-kernel-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: mount/umount causes panic
  2003-01-10 20:18 mount/umount causes panic Brian Sullivan
@ 2003-01-13  8:35 ` Oliver Pitzeier
  2003-01-13 15:34   ` Brian Sullivan
  0 siblings, 1 reply; 5+ messages in thread
From: Oliver Pitzeier @ 2003-01-13  8:35 UTC (permalink / raw)
  Cc: BrianSullivan

Brian Sullivan:
> [ ... ] When I run the script however the 
> kernel panics after 30 to 50 ISOs (never crashes on the same 
> ISO twice, seems random). The kernel panic is hollering about 
> "Attempted to kill init".
[ ... ]

Well, I'm not really sure why this problem could happen, but I believe it's not
AXP-kernel specific...

However... I guess moving the ISO back and forward on your harddisk may be the
problem...

> SLOTLIST=`ls slot*`
> for SLOT in $SLOTLIST
> do
>     echo "Moving $SLOT to reader..."
>     mv $SLOT reader01
> 
>     echo "Mounting..."
>     mount reader01
> 
>     ls /mnt/cdsim1/D*
>     #sleep 50
> 
>     echo "Un-Mounting..."
>     umount -d reader01
> 
>     echo "Moving $SLOT back..."
>     mv reader01 $SLOT
> 
> done

Try it this way:

# modprobe loop
for SLOT in slot*; do
  echo "Mounting..."
  mount -o loop=/dev/loop0 $SLOT /mnt/cdsim1

  ls /mnt/cdsim1/D*

  echo "Unmounting..."
  umount /mnt/cdsim1
done

This is shorter, and easier to read. I guess it's also faster. :o)
(Well I also let the "-d" at the umount line go away. I'm not sure if you really
need it...)
(The modprobe line cannot be bad at all in such a script...)

Best regards,
 Oliver

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: mount/umount causes panic
  2003-01-11 11:32 Walter Harms
@ 2003-01-13 12:05 ` Brian Sullivan
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Sullivan @ 2003-01-13 12:05 UTC (permalink / raw)


Kernel Version: 2.4.18-19.7.x
It does not happen with the same ISO each time.

-----Original Message-----
From: axp-kernel-list-admin@redhat.com
[mailto:axp-kernel-list-admin@redhat.com]On Behalf Of Walter Harms
Sent: Saturday, January 11, 2003 6:32 AM
To: axp-kernel-list@redhat.com
Subject: Re: mount/umount causes panic



	what kernel ? (cat /proc/version)
	does it crash also when you mount/umount the some image
	over and over again ?

	walter




- - - - - - - - - - - - - - Original Message - - - - - - - - - - - - - -
From: Brian Sullivan <BrianSullivan@insiteone.com>
Subject: mount/umount causes panic
Date: 01/10/03 21:18

I have a directory full of ISO files. I have a simple shell script that
loops through the ISO files. Each ISO is mounted, a directory listing is
done, and then it is umounted. Each ISO is in good condition. When I run the
script however the kernel panics after 30 to 50 ISOs (never crashes on the
same ISO twice, seems random). The kernel panic is hollering about
"Attempted to kill init". Why would the mount or umount command causes a
panic? I'm running Red Hat 7.3 and 8.0 with the latest patched. Here is the
shell script:

SLOTLIST=`ls slot*`
for SLOT in $SLOTLIST
do
    echo "Moving $SLOT to reader..."
    mv $SLOT reader01

    echo "Mounting..."
    mount reader01

    ls /mnt/cdsim1/D*
    #sleep 50

    echo "Un-Mounting..."
    umount -d reader01

    echo "Moving $SLOT back..."
    mv reader01 $SLOT

done
~



_______________________________________________
Axp-kernel-list mailing list
Axp-kernel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/axp-kernel-list



_______________________________________________
Axp-kernel-list mailing list
Axp-kernel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/axp-kernel-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: mount/umount causes panic
  2003-01-13  8:35 ` Oliver Pitzeier
@ 2003-01-13 15:34   ` Brian Sullivan
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Sullivan @ 2003-01-13 15:34 UTC (permalink / raw)
  Cc: axp-kernel-list

Interesting theory. I gave it a shot and it appeared to work. I then
realized I ran the new script as the user "root". For the heck of it I then
ran my original script (the one that crashes the kernel) and it too worked.
I was very puzzled by this. I logged out of root and logged back in as a
normal user and once again my original script caused the kernel panic. So it
appears that as root the panic does not occur. This is very odd. If there
was some sort of permission problem I would expect the mount to fail and
just state a permission failure, not some sort of kernel panic. I appreciate
your thoughts. You have any other suggestions based on the new details?

-----Original Message-----
From: Oliver Pitzeier [mailto:o.pitzeier@uptime.at]
Sent: Monday, January 13, 2003 3:35 AM
To: axp-kernel-list@redhat.com
Cc: BrianSullivan@insiteone.com
Subject: RE: mount/umount causes panic


Brian Sullivan:
> [ ... ] When I run the script however the
> kernel panics after 30 to 50 ISOs (never crashes on the same
> ISO twice, seems random). The kernel panic is hollering about
> "Attempted to kill init".
[ ... ]

Well, I'm not really sure why this problem could happen, but I believe it's
not
AXP-kernel specific...

However... I guess moving the ISO back and forward on your harddisk may be
the
problem...

> SLOTLIST=`ls slot*`
> for SLOT in $SLOTLIST
> do
>     echo "Moving $SLOT to reader..."
>     mv $SLOT reader01
>
>     echo "Mounting..."
>     mount reader01
>
>     ls /mnt/cdsim1/D*
>     #sleep 50
>
>     echo "Un-Mounting..."
>     umount -d reader01
>
>     echo "Moving $SLOT back..."
>     mv reader01 $SLOT
>
> done

Try it this way:

# modprobe loop
for SLOT in slot*; do
  echo "Mounting..."
  mount -o loop=/dev/loop0 $SLOT /mnt/cdsim1

  ls /mnt/cdsim1/D*

  echo "Unmounting..."
  umount /mnt/cdsim1
done

This is shorter, and easier to read. I guess it's also faster. :o)
(Well I also let the "-d" at the umount line go away. I'm not sure if you
really
need it...)
(The modprobe line cannot be bad at all in such a script...)

Best regards,
 Oliver

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-01-13 15:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-10 20:18 mount/umount causes panic Brian Sullivan
2003-01-13  8:35 ` Oliver Pitzeier
2003-01-13 15:34   ` Brian Sullivan
  -- strict thread matches above, loose matches on Subject: below --
2003-01-11 11:32 Walter Harms
2003-01-13 12:05 ` Brian Sullivan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox