Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-12-19 07:31:20

dealcorn
Member
From: Cavite, Philippines
Registered: 2012-08-22
Posts: 3

Mount on Application Start?

I keep media files on a SATA drive that is typically not mounted.  Hdparm reports the drive lacks proper power management support and excessive load/unload cycles may self destruct the drive fairly quickly if left mounted (per smartmontools).  The drive is configured so users may mount and unmount it.  How can I mount the drive every time I invoke my video player?  Can I also umount the drive as part of application shutdown?

Offline

#2 2016-12-19 14:56:59

dealcorn
Member
From: Cavite, Philippines
Registered: 2012-08-22
Posts: 3

Re: Mount on Application Start?

Upon reflection, the answer is to create a batch files that does what I want  then edit the launcher properties, command to point at my batch file rather than directly invoke the application.  For example, the content of my file launch.smplayer says:

"if ! mountpoint -q /2nd ; then
                mount /2nd
fi
smplayer
umount /2nd"

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 515.14 KiB (Peak: 524.77 KiB) ]