LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-20-2004, 02:16 PM   #1
wpyh
Member
 
Registered: Jun 2004
Location: Beijing
Distribution: Slackware 9.1 but FUBAR with packages I compile myself, and OpenBSD (not exactly a distro) on QEMU
Posts: 153

Rep: Reputation: 35
Question How To Power Off USB Flash Disk?


Dear all,

I have a usb flash disk, and it has a nice LED indicating power and/or activity. The weird thing is that, whenever I use it on my friend's machine with Windows XP, after doing the "Safely remove hardware..." thingy, the LED goes out, indicating that the disk is powered off.

But when I use it on my own computer, I don't know how to power it off -- There is no "Safely remove hardware..." since I am not using Windows :P I only know that everytime I mount it I have to unmount it again before taking it off or I risk data loss. But is there a way to turn it off? Sure would be nice
 
Old 06-20-2004, 04:49 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Easy. Login as su, root, or sudo. Then sync. Next umount it. Then take it out. Though you should use the sync in the option argument of mount. For example

mount -t vfat -o sync /dev/sda1 /dev/usbdisk

That way you do not have to worry about data loss. It will write directly to the USB flash disk.
 
Old 06-20-2004, 04:52 PM   #3
fluppi
Member
 
Registered: Oct 2003
Location: Switzerland (Europe)
Distribution: OpenSuSE, RedHat, Knoppix, IRIX + MacOSX
Posts: 198

Rep: Reputation: 31
My USB Flach Stick allways blink too.
After unmount, the data are safe, I think the automounter, usb scanner or whatever is running checks for new devices and so blinks the led.

Maybe it stop blinking after you stop all these deamons ?
 
Old 06-20-2004, 10:35 PM   #4
wpyh
Member
 
Registered: Jun 2004
Location: Beijing
Distribution: Slackware 9.1 but FUBAR with packages I compile myself, and OpenBSD (not exactly a distro) on QEMU
Posts: 153

Original Poster
Rep: Reputation: 35
No, I don't think I need the sync option since I always practice unmounting and then waiting for the prompt to come back (or the device to stop working, whichever is later) before I remove the device.

For fluppi, yes, it actually goes off when I removed the usb-ohci module (after removing the usb-storage module, that is). I know it is safe to remove it, but it just feels a bit weird -- removing a powered-on device :P I know I always do that with my zip drive too, but with the disk ejected in that case.

But if I remove the usb-ohci module, then literally usb is not accessible. Is there any way to just switch the power off to just one usb device, then switching it on again after the device has been removed? (Like the Windows behaviour)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cutting power to usb flash drives hobylinux Linux - Hardware 5 08-09-2007 09:14 PM
USB flash disk taoweijia Linux - Hardware 2 12-28-2005 04:30 AM
USB Flash Drive - can't cut power malone1234 Linux - Hardware 4 08-19-2005 06:32 AM
USB flash disk help bakazer Solaris / OpenSolaris 1 06-24-2005 09:30 AM
USB Flash Disk zillah Fedora 3 05-22-2005 03:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration