LinuxMCE Forums
May 21, 2013, 08:28:18 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: 0810: Internal disk drive constantly unmounted and remounted  (Read 1030 times)
chrisbirkinshaw
Guru
****
Posts: 431


View Profile
« on: April 11, 2009, 07:32:49 pm »

I am unable to transfer any files onto the second drive of my core, as it keeps getting unmounted. I ran the following command:

while [ true ] ; do echo "`date` : `df | grep sdb`" ; sleep 5 ; done

and get this output:
Code:
Sat Apr 11 19:27:32 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:27:38 BST 2009 :
Sat Apr 11 19:27:43 BST 2009 :
Sat Apr 11 19:27:48 BST 2009 :
Sat Apr 11 19:27:53 BST 2009 :
Sat Apr 11 19:27:58 BST 2009 :
Sat Apr 11 19:28:03 BST 2009 :
Sat Apr 11 19:28:08 BST 2009 :
Sat Apr 11 19:28:13 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /tmp/tmp.KryNc31477
Sat Apr 11 19:28:18 BST 2009 :
Sat Apr 11 19:28:23 BST 2009 :
Sat Apr 11 19:28:28 BST 2009 :
Sat Apr 11 19:28:33 BST 2009 :
Sat Apr 11 19:28:38 BST 2009 :
Sat Apr 11 19:28:43 BST 2009 :
Sat Apr 11 19:28:48 BST 2009 :
Sat Apr 11 19:28:53 BST 2009 :
Sat Apr 11 19:28:58 BST 2009 :
Sat Apr 11 19:29:03 BST 2009 :
Sat Apr 11 19:29:08 BST 2009 :
Sat Apr 11 19:29:13 BST 2009 :
Sat Apr 11 19:29:18 BST 2009 :
Sat Apr 11 19:29:23 BST 2009 :
Sat Apr 11 19:29:28 BST 2009 :
Sat Apr 11 19:29:33 BST 2009 :
Sat Apr 11 19:29:38 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:29:43 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:29:48 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:29:53 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:29:58 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:03 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:08 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:13 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:18 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
/dev/sdb1            961432072    204628 912389444   1% /tmp/tmp.NqdDbI1699
Sat Apr 11 19:30:23 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:28 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:33 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:38 BST 2009 :


Is anyone aware of this? If not I will submit to Trac.

Regards,

Chris

Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #1 on: April 11, 2009, 07:47:45 pm »

This is normal.

It is caused by the automounter not detecting any open files or disk accesses to the mount, so it unmounts.

-Thom
Logged
chrisbirkinshaw
Guru
****
Posts: 431


View Profile
« Reply #2 on: April 13, 2009, 04:33:08 pm »

Why is it required? It seems that most of the time it is unmounted, so I am unable to start copying files to it.

Chris
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #3 on: April 13, 2009, 05:08:52 pm »

This is required so that the disk can be swapped out, if it is external.

While it is not perfect, typically a read to the directory where the disk is symlinked is sufficient to bring it online.

-Thom
Logged
totallymaxed
LinuxMCE God
****
Posts: 4310


View Profile WWW
« Reply #4 on: April 14, 2009, 10:23:03 pm »

Why is it required? It seems that most of the time it is unmounted, so I am unable to start copying files to it.

Chris

I agree this is a pain. We tend to create a detached screen session and ls into one of the subdirectories via the drives symlink. This keeps the drive mounted and available. Its a bit of a hack...but works ok as a temporary measure until we can come up with a more 'intelligent' automounter script.

Andrew
Logged

Andy Herron,
Convergent Home Technologies Ltd
United Kingdom

Dianemo S Now Shipping on Ubuntu 12.04LTS
Build your system on the latest Ubuntu OS Release!

Get a Dianemo S License: http://forum.linuxmce.org/index.php?topic=8880.0
iOS Orbiter: http://wiki.linuxmce.org/index.php/Dianemo_iOS_Orbiter
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

Sales & Info:
http://www.dianemo.co.uk
hari
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« Reply #5 on: April 14, 2009, 10:24:55 pm »

ack, its a pita. I'd vote for a longer timeout.
Logged

rock your home - http://www.agocontrol.com home automation
hari
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« Reply #6 on: April 14, 2009, 10:25:30 pm »

and while we are at it, a change from smbfs to nfs would be great.. any volunteers?

br, hari
Logged

rock your home - http://www.agocontrol.com home automation
chrisbirkinshaw
Guru
****
Posts: 431


View Profile
« Reply #7 on: April 16, 2009, 07:47:04 pm »

I have found a problem where samba isn't following symlinks into my external drive. Have you seen this? Works ok on the box itself.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!