From owner-freebsd-questions Wed Sep 11 11:37:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C8D137B400 for ; Wed, 11 Sep 2002 11:37:19 -0700 (PDT) Received: from atkielski.com (atkielski.com [161.58.232.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06AC043E6A for ; Wed, 11 Sep 2002 11:37:19 -0700 (PDT) (envelope-from anthony@atkielski.com) Received: from contactdish (ASt-Lambert-101-2-1-14.abo.wanadoo.fr [193.251.59.14]) by atkielski.com (8.11.6) id g8BIbHh19606; Wed, 11 Sep 2002 20:37:17 +0200 (CEST) Message-ID: <014d01c259c2$41992c00$0a00000a@atkielski.com> From: "Anthony Atkielski" To: "FreeBSD Questions" Subject: Stuck "mt status" command -- how do I kill it? Date: Wed, 11 Sep 2002 20:37:16 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I gave a "mt status" command on a DAT drive that was still loading the tape. For whatever reason--not sure if it was hardware or software--the command hung, with the light flashing on the tape drive. Try as I might, I couldn't get past this command, which I issued on the console. CTRL/C did no good. I tried logging in as root from another terminal and killing the process for the mt command with -9, but nothing happened. A ps command reported the process as being in state D. I tried issuing the same command from another terminal, and that hung too, but I was able to kill it just by disconnecting (not an option on the console). I finally killed the calling shell on the console, which logged it off. That didn't kill the process running mt, but it did free the console. At that point I was out of ideas so I rebooted, which made the problem go away. Was there any other option besides a reboot in this case? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message