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

Main Menu

List of Audio and Video files disapear when an MD used

Started by Techstyle, March 15, 2009, 03:20:15 AM

Previous topic - Next topic

nite_man

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: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

totallymaxed

Quote from: nite_man 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!

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 [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

nite_man

QuoteThe 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: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

Locnar

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

guys, that is a _VERY BAD_ thing to do. You will lose the ability to hot disconnect disks.

-Thom

Techstyle

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.
Techstyle UK Ltd
[url=http://www.techstyleuk.co.uk]http://www.techstyleuk.co.uk[/url]

Techstyle US Inc.
[url=http://www.techstyleus.com]http://www.techstyleus.com[/url]