On 16 Mar 2002, Byron Poland wrote:

> I'm not sure if this is the best place to post this but, I think it is a
> usability issue.
>
> I now have 3 external removable storage devices, 1 acomdata 80 gig
> firewire drive (dev1), 1 firewire enclosure with a 30gig drive in it
> (dev2), and 1 usb smartmedia card reader (dev3).  I have all 3 working
> fine with the latest cooker + some firewire cvs drivers (so the acomdata
> drive gets recognized).
>
> Problem:  when ever I plug a device in it become sda, and then add more
> they becoe sdb,c......
>
> say I have all 3 devices plugged in, then I have sda, sdb, and sdc.
>
> problem is dev3 is fat (smartmedia card) dev1 has ext3 and fat32
> partitions on it and dev2 has just one ext3 partition on it.
>
> how do I set up fstab and I guess devfs so that no mater how many
> devices  I have plugged in, and no matter what order they were plugged
> in, all I have to do is type:
>
> mount /mnt/smartmedia  -> dev3 mounts
> mount /mnt/fire1      -> dev1 part1 mounts
> mount /mnt/fire2     -> dev1 part2 mounts
> mount /mnt/fire3   -> dev2 part1 mounts

I've designed a program for this purpose.

The idea is to put a label on your partitions once, and then they get
mounted according to their volume label every time.

In a nutshell:
e2label /dev/sda1 MyExt3Drive
or
mount /dev/sda2 /mnt/tmp
echo "MyVolumeLabel" >/mnt/tmp/volname
umount /dev/sd*

and then, automically every time, they get mounted (with some proper
sanity checking, fsck, etc...) in:
/mnt/transit/MyExt3Drive
/mnt/transit/MyVolumeLabel
whatever the order of plugging in.

Visit http://amphi-gouri.org/transitmount/
or http://transitmount.sourceforge.net/

The current version is beta and only launched at boot time.
But you can launch it whenever you want (i.e. just after plugging
firewire or USB).
It would be nice if the "hotplug" package would call
"/usr/sbin/transitmount" automatically.

I've no such removable devices, only IDE disks that need powering off
the machine, so I'm waiting for feedback from users for ways to improve
it.

See you soon. Thanks for any feedback.

-- 
St�phane Gourichon - Labo. d'Informatique de Paris 6 - AnimatLab
http://animatlab.lip6.fr/ - philo du dimanche http://amphi-gouri.org/

"What difference does it make to the dead, the orphans, and the
homeless, whether the mad destruction is wrought under the name of
totalitarianism or the holy name of liberty and democracy?" -- Ghandi


Reply via email to