This is an old revision of the document!


Description

mnttool is a small program for mounting drives. It is contained in Xprogs.tcz which is contained in the TinyCore and MicroCore images and can also be downloaded independently. It was written by Robert Shingledecker.

You can launch the program by running 'mnttool' at the command-line or by clicking this image on wbar in the “default” setup:

The program lists all the the available drives. Red ones are unmounted and green ones are mounted. If mnttool encounters an error and can't (un)mount the drive whose button you clicked, the button will remain unchanged, but it won't display an error message. (However, if you launched from a terminal, then you'll see an error message there.)

It isn't possible to unmount the drive specified by the tce= bootcode when using mnttool.

It is possible to make mnttool automatically launch your favorite file manager when it successfully mounts a drive. Simply add this line to your ~/.profile

   'export FILEMGR=$prog'

where $prog is the file manager of your choice. (You must log off and log on again for this to take affect for the first time.)

Command-line options

Remember, mnttool is a GUI program written using FLTK. As such it will print the standard FLTK switches; however, some of them are ignored. Here is an explanation of the all the command-line options printed when you run “mnttool -help”:

-bg2 color
This option is actually ignored
Forum Discussion

-bg color
This is also a standard fltk option and is used to set the background color for the window and it also sets the color of the refresh button. See Colors for what a color is.

-display
Set the X display to open the window on [UN_TESTED !!]

-dn[d]
This option is actually ignored.

-fg color
Sets the color of the text on the buttons. See Colors for what a valid color looks like.

-geometry or -g
Can be used to set the location of the window. sample usage: 'mnttool -g +100+50' will put the window 100 pixels from the left and 50 pixels from the top

-i
If this flag is present, mnttool will iconified (minimized) when started.

-k[bd]
Tells mnttool to indicate which button is highlighted so that you can navigate with the keyboard. This is the default behavior.

-n[ame]
Seems to be ignored.

-nod[nd]
This option is actually ignored.

-nok[bd]
Tells mnttool to not show which button currently has focus. If you do this you will not be able to navigate the list with the keyboard.

-not[ooltips]
Tells mnttool to not display tool tips.

-t[ooltips]
Tells mnttool to display tooltips. This is the default behavior.

-title
Follow with a string and it will set the title of the window.

-scheme
This flag sets the GUI theme for mnttool. Acceptable options are “none” “plastic” and “gtk+”.

Colors

The color arguments are slightly complicated. For a full description you can visit this site which describes valid strings for describing a color: http://tronche.com/gui/x/xlib/color/strings/

In short, you can use common color names like red, green, blue, yellow, etc. You can also specify any color like this: 'mnttool -bg rgb:10/55/ff' The numbers between the slashes should be a two-digit hexidecimal number between 00 and ff.

Further Reading/Sources

Print/export
QR Code
QR Code wiki:mnttool (generated for current page)