I have designed a tool that I think will be useful to some people. It's named "transitmount".
I have a "data" disk that I often move from one computer to another. I was tired to mount it as root each time, so I designed a program that automatically checks at boot if some partitions are not mentioned in fstab, and mount them to a convenient place. For example, I labeled an ext2 partition like this: e2label /dev/hdc1 MyLabel And whenever I insert the disk into a (powered-off) machine with transitmount installed, it gets mounted automatically under "/mnt/transit/MyLabel" on boot-up. If no label is available, the directory name is based on the device name (/mnt/transit/hdc1, or /mnt/transit/ide0_host0_blahblahblah in devfs-based systems). Since labels are not supported on all filesystem types, you can also: cd /mnt/transit/ide0_blahblah_ugly_name echo MyOtherLabel > volname It deals nicely with devfs/non-devfs systems, follows symlinks, performs a fsck to make sure the filesystem is clean, etc... I haven't offered it to cooker, yet, because I only recently made a RPM and it's not (yet) Mandrake compliant. Maybe it's time to do it. Of course, feedback and bug reports are welcome. Current version is 0.5, available from: http://amphi-gouri.org/transitmount/ or http://freshmeat.net/projects/transitmount or http://sf.net/projects/transitmount/ Current version needs at least kernel 2.2 and perl 5.6. It mainly relies on the kernel /proc/partition feature. It might be interesting to test it with PCMCIA IDE controller, which allow hot-plug, and those digital cameras that behave like a SCSI disk through a USB connection. -- St�phane Gourichon - Labo. d'Informatique de Paris 6 - AnimatLab http://animatlab.lip6.fr - philo du dimanche http://amphi-gouri.org/ "Bonjour, je ne suis qu'une phrase entre guillemets dans une signature, mais si vous me recopiez dans votre signature automatique d'e-mail, alors je pourrai continuer � me reproduire comme un virus. Merci !"
