From owner-freebsd-questions@FreeBSD.ORG Tue Dec 20 13:23:48 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B276A16A41F for ; Tue, 20 Dec 2005 13:23:48 +0000 (GMT) (envelope-from th.linton@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7EA243D5A for ; Tue, 20 Dec 2005 13:23:47 +0000 (GMT) (envelope-from th.linton@gmail.com) Received: by nproxy.gmail.com with SMTP id p48so482825nfa for ; Tue, 20 Dec 2005 05:23:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LW+IqlDn9dtTYuXaMA4ci+Ow4TdQ7DBXGn1hehbuNd0e+hRSb9TENmtjzx7ytMpVfq61+0Fy6Xzl/NbSWDQjuP6zCg4/40HKlr/L4RJm1UQ9FmucyrhZ/ExRYDbioAFPZhXFUkx1yOpxGhP7lTwWgr7xv0h4zb1swax0hJjo9fw= Received: by 10.48.31.14 with SMTP id e14mr302032nfe; Tue, 20 Dec 2005 05:23:46 -0800 (PST) Received: by 10.48.229.16 with HTTP; Tue, 20 Dec 2005 05:23:46 -0800 (PST) Message-ID: Date: Tue, 20 Dec 2005 14:23:46 +0100 From: Thomas Linton To: Dinesh Nair In-Reply-To: <43A7BDBB.1020103@alphaque.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43A6A2E0.9050109@free.fr> <43A7BDBB.1020103@alphaque.com> Cc: freebsd-questions@freebsd.org, Ivan Roth Subject: Re: How to safty unplug a USB Stick X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 13:23:48 -0000 I don't have FS problems. After a umount the USB stick has still the Power LED on. Under Linux an "eject" turns the Power LED off. I tried /usr/ports/sysutils/eject without success (freeBSD 5.4) I went a little bit through the source of an linux "eject" and the *BSD "eject". The Linux Verion is using "cdrom.h" and *BSD "cdio.h".=20 I think that both "eject's" are actually doing the same (*BSD: ioctl(fd,CDIOEJECT); Linux ioctl (fd,CDROMEJECT)). I'm not a kernel/driver programmer, but I think the umass Driver or SCSI Driver (because "eject /dev/cd0" also doesn't work ) doesn't accept a CDIOEJECT. On 12/20/05, Dinesh Nair wrote: > > > On 12/20/05 07:44 Thomas Linton said the following: > > Besides umount, to keep the FS consistant, I belive it would be necessa= ry > to > > actually turn off the USB stick before you remove it. With Windows and > Linux > > there is also a way to safety remove -power off- a USB stick. > > i've just unmounted and then pulled out various usb sticks, CF cards and > sony memory sticks and have not seen any filesystem problems when i stick > them back in again. never had to use camcontrol eject. > > -- > Regards, /\_/\ "All dogs go to heaven." > dinesh@alphaque.com (0 0) http://www.alphaque.com/ > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D----oOO--(_)--OOo----=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ > | for a in past present future; do = | > | for b in clients employers associates relatives neighbours pets; do = | > | echo "The opinions here in no way reflect the opinions of my $a $b." = | > | done; done = | > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >