Author Topic: 0810: Internal disk drive constantly unmounted and remounted  (Read 1282 times)

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
0810: Internal disk drive constantly unmounted and remounted
« on: April 11, 2009, 08: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: [Select]
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


tschak909

  • LinuxMCE God
  • ****
  • Posts: 5505
  • DOES work for LinuxMCE.
    • View Profile
Re: 0810: Internal disk drive constantly unmounted and remounted
« Reply #1 on: April 11, 2009, 08: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

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
Re: 0810: Internal disk drive constantly unmounted and remounted
« Reply #2 on: April 13, 2009, 05: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

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5505
  • DOES work for LinuxMCE.
    • View Profile
Re: 0810: Internal disk drive constantly unmounted and remounted
« Reply #3 on: April 13, 2009, 06: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

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4541
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: 0810: Internal disk drive constantly unmounted and remounted
« Reply #4 on: April 14, 2009, 11: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
Andy Herron,
Convergent Home Technologies Ltd

My Blog; http://ellipticalcurve.com

Get RaspSqueeze-CEC or Raspbmc-CEC Wifi enabled for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, inquiries@ellipticalcurve.com via email or PM me here.

Get a Dianemo License: http://forum.linuxmce.org/index.php?topic=8880.msg100221#msg100221
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2421
    • View Profile
    • ago control
Re: 0810: Internal disk drive constantly unmounted and remounted
« Reply #5 on: April 14, 2009, 11:24:55 pm »
ack, its a pita. I'd vote for a longer timeout.
rock your home - http://www.agocontrol.com home automation

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2421
    • View Profile
    • ago control
Re: 0810: Internal disk drive constantly unmounted and remounted
« Reply #6 on: April 14, 2009, 11:25:30 pm »
and while we are at it, a change from smbfs to nfs would be great.. any volunteers?

br, hari
rock your home - http://www.agocontrol.com home automation

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
Re: 0810: Internal disk drive constantly unmounted and remounted
« Reply #7 on: April 16, 2009, 08: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.