[SGVLUG] ejecting a usb memory stick before unmounting

sean at seanodonnell.com sean at seanodonnell.com
Sat Feb 18 19:51:10 PST 2006


hmm, as far as I know, those types of devices are simply USB-powered, so to
power it off would require you to physically unplug it, or turn off your
computer.

The unfortunate part is that it does consume your power (albeit very little),
even if it's not mounted (and the computer is on).

I'd be interested to find out if there's a command that I can send to my Fuji
E510 Camera to power it off when it's (unmounted and) plugged in.

# something like:
$ halt -d /dev/sda1

I always forget to turn it off after I copy over my photos and begin
browsing/editing. Luckily I have rechargeable batteries, but still. =)

-Sean

Quoting Robert <mrflash818 at geophile.net>:

> Greetings,
>
> How does a person "eject" a USB memory stick in debian prior to removing it.
>
> I wrote two scripts for mounting/unmounting:
>
> mountUSB:
> sudo mount /dev/sda1 /mnt/usb
>
> umountUSB:
> sudo umount /mnt/usb
>
> And they both work. But I notice that my USB memory stick stays powered up
> even though mount shows it is unmounted.
>
> What can I add to my umountUSB script so that the USB memory stick will
> power off?
>
>
> Thanks,
> Me
>
>
> --
> "Knowledge is Power" -- Francis Bacon
>
> Robert Leyva
> mrflash818 at geophile.net
>
>
>



More information about the SGVLUG mailing list