From owner-freebsd-usb@FreeBSD.ORG Thu Feb 28 07:58:25 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCB82106566C for ; Thu, 28 Feb 2008 07:58:25 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 6457B8FC21 for ; Thu, 28 Feb 2008 07:58:25 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.133.70] (account mc467741@c2i.net [62.113.133.70] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 826193216; Thu, 28 Feb 2008 08:58:23 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, "Achilov, Rashid" Date: Thu, 28 Feb 2008 08:59:25 +0100 User-Agent: KMail/1.9.7 References: <200802280649.m1S6nvmB095197@www.freebsd.org> <200802281336.28178.achilov-rn@askd.ru> In-Reply-To: <200802281336.28178.achilov-rn@askd.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802280859.25696.hselasky@c2i.net> Cc: Subject: Re: usb/121168: Kernel panic when try to unmount removed usbdrive X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2008 07:58:26 -0000 On Thursday 28 February 2008, Rashid N. Achilov wrote: > On Thursday 28 February 2008, Octavian wrote: > > >How-To-Repeat: > > > > mount_msdosfs /dev/da0s1 /mnt/usbdrive/ > > cd /mnt/usbdrive > > ---(remove usbdrive from port) > > umount -f /mnt/usbdrive > > > > kernel panic... > > O, God! Kernel panic when extracted MSDOS device without unmounting them > exist in FreeBSD till 2.2.5 version *ROFL* That ancient days, when you > mount floppy and extract without unmounting, kernel panics... This days > flopies were dead. But their place now occupied by USB Flash drives, which > you can easily extract without unmounting. And "I'll back" :-) - when you > extract mounted flashdrive, kernel panics again... > > For me, USB subsystem in FreeBSD works terrible. Inserting USB Flashdrive > can hang up or reboot system, inserting digital camera can freeze system > until USB cord will extracted, boot with inserted USB Flash dumps BTX > "registers over", USB wireless mices, bought with wireless keyboards, does > not works... It's too sad... What you are telling us is all well known and I suspect someone will fix this issue eventually. BTW: The FAT32 file system which is used on most memory sticks does not handle surprise removal very well. --HPS