[SGVLUG] ejecting a usb memory stick before unmounting

Robert mrflash818 at geophile.net
Sat Feb 18 18:25:02 PST 2006


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