From: "Brian Sullivan" <BrianSullivan@insiteone.com>
Cc: <axp-kernel-list@redhat.com>
Subject: RE: mount/umount causes panic
Date: Mon, 13 Jan 2003 10:34:59 -0500 [thread overview]
Message-ID: <DFELJMIBKKBPFPEGHOOGAELIDDAA.BrianSullivan@insiteone.com> (raw)
In-Reply-To: <000801c2bade$babe3990$020b10ac@pitzeier.priv.at>
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
next prev parent reply other threads:[~2003-01-13 15:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-01-11 11:32 Walter Harms
2003-01-13 12:05 ` Brian Sullivan
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox