Author Topic: List of Audio and Video files disapear when an MD used  (Read 12810 times)

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: List of Audio and Video files disapear when an MD used
« Reply #15 on: April 22, 2009, 03:36:30 pm »
I agree with you, Andrew. But I couldn't find anything better then it. To avoid situation when drive management scripts will work together with fstab mounting I choose 'Ignore that drive' option for the desire shares on the Orbiter. So, the scripts just ignore the shares all times :)

Will be very appreciated to you for your script!
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: List of Audio and Video files disapear when an MD used
« Reply #16 on: April 22, 2009, 09:38:30 pm »
I agree with you, Andrew. But I couldn't find anything better then it. To avoid situation when drive management scripts will work together with fstab mounting I choose 'Ignore that drive' option for the desire shares on the Orbiter. So, the scripts just ignore the shares all times :)

Will be very appreciated to you for your script!

The technique of using a screen session to keep drives mounted is only relevant to drives mounted by the auto-managed by the system...

Andrew
Andy Herron,
CHT Ltd

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

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

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

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: List of Audio and Video files disapear when an MD used
« Reply #17 on: April 22, 2009, 11:35:57 pm »
Quote
The technique of using a screen session to keep drives mounted is only relevant to drives mounted by the auto-managed by the system
It's clear :). In case of using fstab the shares are available all the time without any hacks ;) But I'd like to use native LinuxMCE mounting functionality to mount shares. That's why I asked you about script :)
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

Locnar

  • Guest
Re: List of Audio and Video files disapear when an MD used
« Reply #18 on: March 14, 2010, 07:31:24 pm »
One thing I noticed was that the autofs service is what was mounting and unmounting drives.  You can't/shouldn't modify the auto.master file in /etc because some scripts work in there. 

I made this change in StorageDevices_Setup.sh changed
"AutoMaster_StorageDevices="/mnt/device /etc/auto.PlutoStorageDevices --timeout=30"

to

"AutoMaster_StorageDevices="/mnt/device /etc/auto.PlutoStorageDevices --timeout=0"

Presto!  No more unmount drives...  Of course this could impact dvd/cdrom's etc.


tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: List of Audio and Video files disapear when an MD used
« Reply #19 on: March 15, 2010, 12:06:59 am »
guys, that is a _VERY BAD_ thing to do. You will lose the ability to hot disconnect disks.

-Thom

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: List of Audio and Video files disapear when an MD used
« Reply #20 on: March 15, 2010, 07:04:11 pm »
For me this problem went away when I upgraded to 0810.

The problem wasn't that autofs was mounting and unmounting the drives.  It was that once an MD was booted up my media drives (SATA in the core) was were unmounted and never re-mounted, then when Updatemedia ran it could only find the same amount of media that was stored on the OS drive.

By using this idea to keeping them from unmounting I could boot up an MD with and still access my media.