Main Page   Related Pages  

transitmount

Simple rack/removable hard disk management. Mounts partitions (and kernel-supported partition-like devices, like flash memory cards, digital camera...) not mentioned in fstab, possibly using their volume name as mount point.

Author:
Stéphane Gourichon <stephane.gourichon@lip6.fr> or <gouri whose email is hosted at amphi-gouri.org>
Version:
0.5
Date:
2002-02-23

transitmount.jpg

Overview - What is it ?

Simply stated: transitmount allows a Linux system's users to access transitting volumes (removable hard disks they put in and later remove), by their name if they have a name, without needing root intervention.

Technically stated: transitmount is a small tool for GNU/Linux, which at boot time mounts hard disks that are not listed in fstab, presumably because they are physically attached to the system only for a while (maybe only once). (You can call it after boot if you dynamically add devices. Anything recognized by the kernel will potentially do the trick -- flash cards, digital camera, PCMCIA hard disks and CD-Rom drives.)

What is it not ?

It is not a substitute for mount -L ... or mount -U ... . These options of mount deal with explicit volume name known in advance and are useful for SCSI setups because SCSI IDs and therefore device names under Linux may vary when inserting a new disk, whereas volume names do not change.

Intended audience

Any situation where disks and/or storage devices have to be added/removed on a PC.

Hardware: desktop PC (for IDE/SCSI), laptop (for PCMCIA), both (for USB).

Users:

It is a pain if one has to become root and mount those transient devices manually. transitmount automates this without hassle.

What now ? Downloading !

Why that name ?

Because when a machine has this software available, it allows without hassle disks that come and go (they are here "in transit") to be mounted. Perhaps I should have called it "RoamingMount" instead. "roaming" may sound more familiar to you ?

Please tell me.

Scenario / What do I see when I use this ?

Adding/removing hard disks on a desktop machine

Adding/removing hard disks is especially easy with machines equipped with one or more "racks" (cheap case for a standard 3"1/2 hard disk, and complementary structure to put in one of the 5.25" front bay of the PC case). But they are not necessary. Their advantage is only to allow swapping disks without opening the machine box.

When you want to remove the disk:

What about other "partition-like" devices ?

Note:
Experimental: not ready for unexperienced users.

Some digital camera and CompactFlash card reader (with USB connection) appear like partitions (or even whole disks ?), usually with a SCSI-like behavior.

For PCMCIA or USB devices (untested, please try and report):

When you want to remove the device:

What transitmount does in this scenario

transitmount takes care of making the device accessible automatically, without root intervention, in a reasonable fashion (i.e. security-aware). Here the content of /mnt/transit on my system:

[gouri@localhost gouri]\$ ls /mnt/transit/
4Mo/  Gouri15Video1/  hdc8/  

As you see, transitmount mounts by volume name, if volume names are available. You may be interested in Technical stuff and portability or How to put labels on your partitions.

User interaction

Essentially, you have nothing to do.

The script is to be called at each boot, and requires no user interaction. It displays a few lines about what it does (see Examples of transitmount output). You can activate a verbose mode to see more (edit /usr/sbin/transitmount for this, it's a perl script).

For examples of transitmount output see Examples of transitmount output.

Configuration: nothing to do !

The program itself requires no configuration at the moment. Still, you may want to name your partitions to have them mounted at a convenient place.

If a partition has no label, it will be mounted by its device name, which may be ok for a unique usage.

To learn how to put a sensible label on your partitions, see How to put labels on your partitions.

Technical stuff

transitmount is a basic perl script requiring no special perl module.

See details of:

TODO

There is a Possible future of transitmount and todo-list.

History

I've had racks for a long time. I used to just put many entries in /etc/fstab and ignore the complains.

I conceived the idea of the package when I installed Linux on the computer of someone who owns several racks and hard disks and used to switch them a lot.

Releases:

License

Of course, this software is free software, covered by the well-known GPL license version 2 issued by the Free Software Foundation.

What now ? Downloading !

Download, and please give me feedback. The noarch rpm should work out-of-the-box.

transitmount-0.5-1.noarch.rpm

The .tar.gz file contains a spec file. It can be downloaded instead of the .src.rpm .

transitmount-0.5.tar.gz transitmount-0.5-1.src.rpm

old releases

Is it great ? Does it suck ? Has someone done better ? ... E-mail <gouri whose email is hosted at amphi-gouri.org>

Installation

You can install it like any usual Unix program (though no compilation actually happens, transitmount is a perl script):

tar zxvf transitmount-0.5.tar.gz
./configure
make install


Transitmount is available on the following mirrors: SourceForge.net mirroramphi-gouri.org mirror

Documentation generated by doxygen