MNTDRV, a handy & flexible drive mounting program that can be used from the terminal, run from a file manager or executed from the Rox or XFE right click menus.
Forum member @geo_c started a discussion on convenient ways to mount drives here: viewtopic.php?t=6373 thanks Geo. From his topic I wrote mntdrv and have improved it since. The current revision is D.
What can it do?
It's a mount/unmount toggle, run the first time it mounts, second time it unmounts.
By default it will mount/unmount sdb1 (can be changed).
Changing the default:
Open mntdrv in Geany text editor and edit the first section of code, i.e. mydrv=sdb1
If you want to have a dedicated file for each drive, then rename the file to suit. When executed it will toggle, mount/unmount the specified drive.
NOTE: if you leave mydrv blank, i.e. mydrv= , you will be prompted to enter the drive partition.
Run from terminal:
-type: mntdrv
This will mount/unmount the default drive
-type: mntdrv sdc1
This would override the default and mount/unmount sdc1
Run from Rox or other file manager:
This will mount/unmount the default drive, or prompt if default is blank
Note: having a copy or symlink to mntdrv in the /mnt directory makes mount/unmounting a little more intuitive. Navigate (or make a bookmark) to /mnt, then run mntdrv and you're right in the directory where our mount point (directory) is located.
Both Rox and XFE have right click menus that can use mntdrv if your drive already has a mount point in /mnt, i.e, sdc1
Run from Rox:
-navigate to /mnt
-right click an existing mount point
-click: mntdrv
This will override the default and mount/unmount the existing mount point
Run from XFE Scripts:
-navigate to /mnt
-right click an existing mount point
-click: Scripts>mntdrv
This will override the default and mount/unmount the existing mount point
The attached .pet file will install mntdrv into /root/my-applications/bin and setup all the symlinks needed for any of the run methods described above.
I've also included just the mntdrv script in the next post if you just want to experiment with it.
wizard