You are not logged in.
Pages: 1
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
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
Pages: 1
[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 515.14 KiB (Peak: 524.77 KiB) ]