LinuxQuestions.org
Review your favorite Linux distribution.
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 11-13-2006, 01:18 PM   #1
costavi
LQ Newbie
 
Registered: Nov 2006
Distribution: ubuntu
Posts: 3

Rep: Reputation: 0
Question Is it possible to disable power supply to an USB storage device when unmounting?


I noticed a difference in the way the "unmounting" of USB storage devices is done in Linux and Windows.
Under Windows the device is detached from the filesystem and the power supply to the device is disabled, so that the device is switched off, then you can remove it.
Under Linux (at least in the major distributions), you "unmount" the device from the filesystem, but the device is still on-line, in fact you can mount it again from command line if you want, without removing and inserting it again in the USB slot.
I wonder if it is possible to make a 'Windows like' unmounting under Linux, which I think would be safer for small external 2.5'' hard drives receiving power supply from the USB bus.
Does anyone know how to do it (if possible)?
 
Old 11-13-2006, 01:39 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
Under Windows the device is detached from the filesystem and the power supply to the device is disabled, so that the device is switched off, then you can remove it.
Well, not every day you can (or at least I was able to) try to do it and fail, in case Windows does somekind of half-paralyzing crash. But yes, now that you mention it, it seems like this is what happens. Having said that I must say I have 100% surely faced a situation (even multiple times) where a USB-mp3-player-mass-storage-cadget was unmounted (or I meant to do it that way) and after that it didn't mount -- and yes, reason was that the cadget was powerless and I had to de/re-attach it to get it mounted again. Since I found myself again in a situation where I have absolutely no USB devices around (as usual, if I happened need one) I can't try out but does it make difference if you
Code:
umount /dev/sda1
or
Code:
eject /dev/sda1
I'm not sure about this as this is probably the first time I ever think this matter from this angle; both of those do the trick of umounting the filesystem, but ejecting will cause cds, for example, pop the drive tray open which umount won't do. Probably doesn't make a difference for USB storage devices, but try out

The thing I was trying to say was yes; it should be possible.
 
Old 11-14-2006, 04:23 AM   #3
costavi
LQ Newbie
 
Registered: Nov 2006
Distribution: ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
Unhappy

Eventually I tried with a USB pendrive and with a USB 2.5'' hard drive. The command:

eject <devicename>

normally unmount the device , but nothing more, the power is still on and I can remount the device without re-inserting it in the USB slot.
 
  


Reply

Tags
linuxhardware


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
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 08:32 AM
Unmounting usb-device with konqueror matrem Linux - Software 1 04-13-2005 03:37 PM
usb storage device R++ Linux - Hardware 7 04-11-2005 03:38 PM
Assign one USB-storage device to one device file Misel Linux - Hardware 1 08-28-2004 04:52 AM
how can I mount this device: da0: <USB 2.0 Storage Device alkad_mzu *BSD 2 11-15-2003 07:15 PM

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

All times are GMT -5. The time now is 09:11 AM.

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