From owner-freebsd-stable@FreeBSD.ORG Wed Jul 18 16:30:51 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A583B16A400 for ; Wed, 18 Jul 2007 16:30:51 +0000 (UTC) (envelope-from idiotbg@gmail.com) Received: from smtp.studnetz.uni-leipzig.de (smtp.studnetz.uni-leipzig.de [139.18.143.252]) by mx1.freebsd.org (Postfix) with ESMTP id 393E313C48D for ; Wed, 18 Jul 2007 16:30:51 +0000 (UTC) (envelope-from idiotbg@gmail.com) Received: from localhost (localhost [127.0.0.1]) by smtp.studnetz.uni-leipzig.de (Postfix) with ESMTP id 7B00C258; Wed, 18 Jul 2007 18:30:50 +0200 (CEST) X-Virus-Scanned: by amavisd-new at studnetz-ul Received: from smtp.studnetz.uni-leipzig.de ([127.0.0.1]) by localhost (smtp.studnetz.uni-leipzig.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KUfQptsgJFy6; Wed, 18 Jul 2007 18:30:50 +0200 (CEST) Received: from [192.168.63.4] (a144026.studnetz.uni-leipzig.de [139.18.144.26]) by smtp.studnetz.uni-leipzig.de (Postfix) with ESMTP id 13BB4251; Wed, 18 Jul 2007 18:30:49 +0200 (CEST) From: Momchil Ivanov To: freebsd-stable@freebsd.org, LoN_Kamikaze@gmx.de, josh@tcbug.org Date: Wed, 18 Jul 2007 18:30:44 +0200 User-Agent: KMail/1.9.6 References: <200707181541.l6IFf4ht051775@lurza.secnetix.de> In-Reply-To: <200707181541.l6IFf4ht051775@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1265518.WP56TgVvPf"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200707181830.48727.idiotbg@gmail.com> Cc: Subject: Re: removing external usb hdd without unmounting causes reboot? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 16:30:51 -0000 --nextPart1265518.WP56TgVvPf Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 18 July 2007 17:41:04 Oliver Fromme wrote: > As Josh wrote, it's expected. The problem is known > to exist for a long time already (probably as long > as FreeBSD itself exists), and if there was an easy > solution, certainly someone would have fixed it. > > Just remember to always umount first, and you're safe. > In the early 90s I panicked a FreeBSD machine by > removing a floppy disk that was mounted. I did that > mistake only once -- afterwards I always remembered. > > If you have problems remembering, another work-around > is to use the auto mounter daemon (amd(8)). It umounts > file systems automatically that are not in use. > Another nice feature of amd(8) is that you don't have > to mount the file system either -- Simply plug the USB > stick in, then access it, and amd(8) will automatically > mount it for you. > > Best regards > Oliver I started the thread just because it hit me today. I wanted to disconnect m= y=20 mouse and forgot that the hdd is connected to the same hub, I realized that= =20 after having unplugged the usb hub and saw the system freeze. I know that=20 this has been an issue for a long time. With cdroms it`s easy, the tray won= `t=20 open until you umount the cd fs, floppies......... nowadays they have been= =20 replaced by usb sticks, but they have no trays as cdroms do :) moreover=20 people use other usb storages too and unplugging those is just as simple as= =20 unpluging the cable. I think this is a critical problem and needs to be addressed, avoiding it=20 doesn`t solve it. As technology advances I think FreeBSD has to advance too. You said you=20 paniced a system in the early 90s, which is more than 10 years from now. In= =20 the past floppy disks were maybe the only problem, but nowadays as storage = is=20 cheap more and more people use USB storage devices, and these are easy to=20 unplug. It`s even worse if you have a laptop, since it`s easier to connect= =20 everything to a hub (mouse, hdds, other usb stuff) and connect/disconnect i= t. In the days before common storage devices (hard drives) where fixed inside = the=20 computer`s case, so unpluging a hard drive when the computer was running wa= s=20 considered as "insane", so panicing is ok. Nowadays things have changed. US= B=20 (maybe Firewire too, have no experience with that) offers a simple way to=20 connect/disconnect devices to your computer (here I have to note: not just= =20 one!), having a laptop and 1,2,3 or even more external storage devices is=20 something usual. That`s why I think this particular problem needs to be addressed. Thanks for the tip about amd(8) I will give it a try. =2D-=20 PGP KeyID: 0x3118168B Keyserver: pgp.mit.edu Key fingerprint BB50 2983 0714 36DC D02E =A0158A E03D 56DA 3118 168B =20 --nextPart1265518.WP56TgVvPf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGnkA04D1W2jEYFosRApWeAKCUpMbhzRb7RfZ57u5wsXa6ssprzQCbB7Xg zxcXV6bgn7JONu8h8xuptoQ= =f6Ex -----END PGP SIGNATURE----- --nextPart1265518.WP56TgVvPf--