Red Hat axp-kernel-list: Alpha Linux kernel
 help / color / mirror / Atom feed
From: "Oliver Pitzeier" <o.pitzeier@uptime.at>
Cc: <BrianSullivan@insiteone.com>
Subject: RE: mount/umount causes panic
Date: Mon, 13 Jan 2003 09:35:23 +0100	[thread overview]
Message-ID: <000801c2bade$babe3990$020b10ac@pitzeier.priv.at> (raw)
In-Reply-To: <DFELJMIBKKBPFPEGHOOGGEHCDDAA.BrianSullivan@insiteone.com>

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

  reply	other threads:[~2003-01-13  8:35 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 [this message]
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
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