From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Brian Sullivan" Newsgroups: gmane.linux.redhat.axp.kernel Subject: RE: mount/umount causes panic Date: Mon, 13 Jan 2003 10:34:59 -0500 Sender: axp-kernel-list-admin@redhat.com Message-ID: References: <000801c2bade$babe3990$020b10ac@pitzeier.priv.at> Reply-To: axp-kernel-list@redhat.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1042473078 25811 80.91.224.249 (13 Jan 2003 15:51:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2003 15:51:18 +0000 (UTC) Cc: Return-path: Original-Received: from listman.redhat.com ([66.187.233.211]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Y6rr-0006hn-00 for ; Mon, 13 Jan 2003 16:51:15 +0100 Original-Received: from listman.redhat.com (localhost.localdomain [127.0.0.1]) by listman.redhat.com (Postfix) with ESMTP id 5F1BC3FC11; Mon, 13 Jan 2003 10:50:23 -0500 (EST) Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 799B03F53C for ; Mon, 13 Jan 2003 10:34:59 -0500 (EST) Original-Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id h0DFYxc25084 for axp-kernel-list@listman.redhat.com; Mon, 13 Jan 2003 10:34:59 -0500 Original-Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id h0DFYwa25078 for ; Mon, 13 Jan 2003 10:34:58 -0500 Original-Received: from wallexch.insiteone.com ([63.165.199.4]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id h0DF6qB11394 for ; Mon, 13 Jan 2003 10:06:52 -0500 Original-Received: from brian ([63.172.166.227]) by wallexch.insiteone.com with Microsoft SMTPSVC(5.0.2195.5329); Mon, 13 Jan 2003 10:37:11 -0500 Original-To: "Oliver Pitzeier" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <000801c2bade$babe3990$020b10ac@pitzeier.priv.at> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-OriginalArrivalTime: 13 Jan 2003 15:37:11.0250 (UTC) FILETIME=[A3901320:01C2BB19] X-Loop: axp-kernel-list@redhat.com Errors-To: axp-kernel-list-admin@redhat.com X-BeenThere: axp-kernel-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Alpha Kernel issues List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.linux.redhat.axp.kernel:92 X-Report-Spam: http://spam.gmane.org/gmane.linux.redhat.axp.kernel:92 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