Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Dec 2005 14:23:46 +0100
From:      Thomas Linton <th.linton@gmail.com>
To:        Dinesh Nair <dinesh@alphaque.com>
Cc:        freebsd-questions@freebsd.org, Ivan Roth <ivan.roth@free.fr>
Subject:   Re: How to safty unplug a USB Stick
Message-ID:  <b9b400cd0512200523y7874ededia65194ba59b21a68@mail.gmail.com>
In-Reply-To: <43A7BDBB.1020103@alphaque.com>
References:  <b9b400cd0512190338u6ce2abf0p89efe8b4f3ed2a0b@mail.gmail.com> <43A6A2E0.9050109@free.fr> <b9b400cd0512191544l147e9d5dyfdf284b85baa540b@mail.gmail.com> <43A7BDBB.1020103@alphaque.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <dinesh@alphaque.com> 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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b9b400cd0512200523y7874ededia65194ba59b21a68>