From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Oliver Pitzeier" Newsgroups: gmane.linux.redhat.axp.kernel Subject: RE: mount/umount causes panic Date: Mon, 13 Jan 2003 09:35:23 +0100 Organization: UPtime system solutions Sender: axp-kernel-list-admin@redhat.com Message-ID: <000801c2bade$babe3990$020b10ac@pitzeier.priv.at> References: 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: 8bit X-Trace: main.gmane.org 1042447562 24679 80.91.224.249 (13 Jan 2003 08:46:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2003 08:46:02 +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 18Y0EK-0006Pf-00 for ; Mon, 13 Jan 2003 09:46:00 +0100 Original-Received: from listman.redhat.com (localhost.localdomain [127.0.0.1]) by listman.redhat.com (Postfix) with ESMTP id 0A3FB3F44E; Mon, 13 Jan 2003 03:47:14 -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 726683EBD2 for ; Mon, 13 Jan 2003 03:46:08 -0500 (EST) Original-Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id h0D8k8U01493 for axp-kernel-list@listman.redhat.com; Mon, 13 Jan 2003 03:46:08 -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 h0D8k8a01489 for ; Mon, 13 Jan 2003 03:46:08 -0500 Original-Received: from mail.uptime.at (mail.uptime.at [62.116.87.11]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id h0D8I2B29410 for ; Mon, 13 Jan 2003 03:18:03 -0500 Original-Received: from dagobert (fwsbp.uptime.at [62.116.87.2]) (authenticated bits=0) by mail.uptime.at (8.12.5/8.12.5) with ESMTP id h0D8d2CO016352; Mon, 13 Jan 2003 09:39:11 +0100 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-MailScanner: Nothing found baby X-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4, required 5, AWL, IN_REP_TO, NOSPAM_INC, QUOTED_EMAIL_TEXT, SPAM_PHRASE_00_01) X-MIME-Autoconverted: from quoted-printable to 8bit by int-mx1.corp.redhat.com id h0D8k8a01489 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:90 X-Report-Spam: http://spam.gmane.org/gmane.linux.redhat.axp.kernel:90 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