LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-03-2010, 10:31 AM   #1
Gallifrey
Member
 
Registered: Feb 2010
Distribution: Ubuntu 10.04 - Lucid Lynx, Fedora 13, OpenSUSE 11.2
Posts: 46

Rep: Reputation: 16
External Hard Drive Inaccessible After Period Of Time


Hello all,
I am running Karmic on my laptop, and I have three 1.5 TB external hard drives which I swap between frequently. My problem is that if I leave the drives in, and do not access them for a period of time, they become inaccessible, i.e. I will click on the icon on the desktop or in Places, and it will tell me there is no device mounted, even though I was using it fine just an hour before.

i have a feeling that it is because the USB drives spin down after a period, and Ubuntu detects them as being 'disconnected'. Would it help if I added individual entries for each in fstab?? Or do I need to adjust some settings elsewhere?

Any help and advice would be most appreciated!

EDIT: If this information helps, the HD's are all Seagate Expansion drives, formatted to ext4.

Last edited by Gallifrey; 03-03-2010 at 10:48 AM. Reason: addition
 
Old 03-03-2010, 10:48 AM   #2
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
In my experience, it's usually the device has a powersave feature and after X minutes of being idle it's kicking in. Is there any errors or information in /var/log/messages?

Also post the useful output of:

Code:
apt-get install sdparm
sdparm --all /dev/sdX
 
Old 03-03-2010, 10:51 AM   #3
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Is there an existing line in fstab for the drives ?

You could try removing the auto mount option.
Of course you will then have to mount it manually, but it should stay mounted.

Or read this :

http://www.debianhelp.org/node/11551#comment-46377

Last edited by smoker; 03-03-2010 at 10:59 AM.
 
Old 03-03-2010, 10:59 AM   #4
Gallifrey
Member
 
Registered: Feb 2010
Distribution: Ubuntu 10.04 - Lucid Lynx, Fedora 13, OpenSUSE 11.2
Posts: 46

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Dudydoo View Post
In my experience, it's usually the device has a powersave feature and after X minutes of being idle it's kicking in. Is there any errors or information in /var/log/messages?

Also post the useful output of:

Code:
apt-get install sdparm
sdparm --all /dev/sdX
The output from sdparm is as follows:

/dev/sdc1: Seagate Desktop 0130
Power condition mode page:
IDLE 0 [cha: n, def: 0, sav: 0]
STANDBY 1 [cha: y, def: 1, sav: 1]
ICT 0 [cha: n, def: 0, sav: 0]
SCT 9000 [cha: y, def:9000, sav:9000]


What do these settings mean? If there is a power saving mode for the drive, can I switch it off??
 
Old 03-03-2010, 11:23 AM   #5
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Then you need to run

sdparm --clear STANDBY -6 /dev/sdc

as per my link.
 
1 members found this post helpful.
Old 03-03-2010, 01:03 PM   #6
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
Quote:
Originally Posted by smoker View Post
Then you need to run

sdparm --clear STANDBY -6 /dev/sdc

as per my link.
Exactly
 
1 members found this post helpful.
  


Reply

Tags
drive, external, fstab, hard


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
Booting Linux on an external USB hard drive (not a memory stick, a hard drive) comcastuser Linux - Hardware 4 01-13-2010 06:59 PM
Hard Drive Inaccessible DJOtaku Linux - Hardware 7 11-25-2009 12:34 PM
Having a hard time making linux recognizing my new external hard drive jared nelson Linux - Hardware 19 03-24-2009 03:39 PM
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 09:59 AM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM


All times are GMT -5. The time now is 01:46 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 Google+: linuxquestions
Open Source Consulting | Domain Registration