LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 12-11-2003, 06:06 PM   #1
blixel
LQ Newbie
 
Registered: Sep 2003
Posts: 22

Rep: Reputation: 15
Safe shutdown of external USB hard-drive?


Is there a better way to "safely" shut down external USB / Firewire hard-drives (and thumbdrives) other than just unmounting them and turning them off? In Windows there is a "safely remove hardware" icon in the systray. I'm not sure exactly what it does but it seems to do something that Linux isn't doing. When I plug in my USB thumbdrive, it has an LED on it that will blink to let you know the O/S recognizes it. In Windows, when I safely remove the USB thumbdrive via the systray, the LED stops blinking and I unplug it. In Linux, when I unmount the USB thumbdrive, the LED keeps blinking.

When I unmount my external USB hard-drives and power them down, I get a bunch of errors in my syslog (see below). So is there a way to tell Linux to safely remove the hardware?

Dec 11 19:00:22 fedora kernel: usb.c: USB disconnect on device 00:02.2-3 address 2
Dec 11 19:00:22 fedora kernel: Device 08:00 not ready.
Dec 11 19:00:22 fedora kernel: I/O error: dev 08:00, sector 0
Dec 11 19:00:22 fedora kernel: Device 08:00 not ready.
Dec 11 19:00:22 fedora kernel: I/O error: dev 08:00, sector 0
Dec 11 19:00:22 fedora kernel: Device 08:00 not ready.
Dec 11 19:00:22 fedora kernel: I/O error: dev 08:00, sector 0
Dec 11 19:00:22 fedora kernel: Device 08:00 not ready.
Dec 11 19:00:22 fedora kernel: I/O error: dev 08:00, sector 0
[ cut ] (it goes on)
 
Old 12-12-2003, 10:17 AM   #2
bureado
Member
 
Registered: Oct 2003
Location: Caracas
Distribution: Knoppix 3.3 (Debian sarge/sid)
Posts: 72

Rep: Reputation: 15
It's very unlikely that Linux kernel will fry your USB devices. In Windows, devices are started at the bootup (that's why there's a waittime and maybe blinking or beeping of devices) and they are mounted and 'online' all the time, even when you aren't using them. It means that if someone breaks in your computer, it will be able to control your mounted device because there aren't even permissions for them. I'm not a Windows code expert, but in my case (an ADSL Speedtouch USB modem) what Windows does is completely shut down the USB power source for that location so it really turns off the device. In Linux, mounting and unmounting works only for filesystems so Modems and other devices won't be affected by 'mount'. Nevertheless, the error that you are getting in syslog seems to be that some application is looking for the device and it isn't found, it doesn't mean that there's a failure in the USB shutdown or something. Also, when you are initing some devices you might get timeout advices or other errors that are completely harmless, they just mean that the process is lasting more than the expected (i.e. a connection with an ISP provider might be more or less lengthy depending on the line conditions of an xDSL suscriber, but the drivers are told that process might last only some seconds, so it 'timeouts')

You are looking for a USB module hacker answer. He/She can tell you what does the USB module exactly and what it's really happening to your hardware.
 
Old 12-12-2003, 10:27 AM   #3
amphibious
Member
 
Registered: Sep 2003
Location: cincinnati, oh, usa
Distribution: gentoo
Posts: 31

Rep: Reputation: 15
I was always told that when Windows "safely shut down" and "safely shut down devices" it was "locking" the drives in some way. I don't exactly know what that means in technical terms, but the idea was that it would make the computer "safe" to transport since if you just powered down the drives could bounce around or something and cause damage.

Probably doesn't help at all... but that's my two cents.
 
Old 12-12-2003, 12:57 PM   #4
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
I've wondered about that with my USB flash drive too. Windows sends a power down signal to USB/firewire storage devices when you unmount them (disconnect from drive letter). All modern hard drives auto-park, so I wouldn't worry about the heads skipping across the platters, like in the old days when you had to manually park them But I've heard flash mem is sensitive to power fluctuations, so unplugging my pen drive hot kind of worries me, since it gets its power through the USB connection, unlike external hard disk enclosures. Linux hasn't fried anything yet, though.

Last edited by Crito; 12-12-2003 at 02:04 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
External USB hard drive jhmorris47 Linux - Hardware 6 05-02-2006 04:14 PM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
XS Drive II external USB hard drive/card reader max74 Linux - Hardware 7 10-21-2003 10:41 PM
External USB hard drive bob10a Linux - General 3 08-09-2003 03:48 PM
external usb hard drive TX_metalhead Linux - Hardware 0 05-06-2002 07:57 AM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration