Date: Wed, 18 Jul 2007 18:30:44 +0200 From: Momchil Ivanov <idiotbg@gmail.com> To: freebsd-stable@freebsd.org, LoN_Kamikaze@gmx.de, josh@tcbug.org Subject: Re: removing external usb hdd without unmounting causes reboot? Message-ID: <200707181830.48727.idiotbg@gmail.com> In-Reply-To: <200707181541.l6IFf4ht051775@lurza.secnetix.de> References: <200707181541.l6IFf4ht051775@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707181830.48727.idiotbg>