----- Original Message ----
From: Mikkel L. Ellertson mikkel@infinity-ltd.com To: For users of Fedora fedora-list@redhat.com Sent: Saturday, August 23, 2008 8:51:58 AM Subject: Re: automatically mount removable devices
Carlo Nyto wrote:
I have a system with four removable drives (in USB enclosures). I want them to be mounted automatically in the same location every time. I want this to happen at bootup. I also want this to happen if the system is booted without the drives and they are plugged in later, regardless of the order.
Is this possible?
If you label the partitions, they will be mounted on /media/name. If this is not what you want, you can write HAL rules to have them mounted elsewhere. If you don't want to add labels, you can use the UUID value in the HAL rules.
Wouldn't udev rules be easier to build for something like this? Or is there something that HAL can give you over udev?
--Victor
Mikkel
Do not meddle in the affairs of dragons, for thou art crunchy and taste good with Ketchup!
Victor wrote:
If you label the partitions, they will be mounted on /media/name. If this is not what you want, you can write HAL rules to have them mounted elsewhere. If you don't want to add labels, you can use the UUID value in the HAL rules.
Wouldn't udev rules be easier to build for something like this? Or is there something that HAL can give you over udev?
--Victor
I am not sure - it depends on how many partitions. It also gets a bit complicated if the enclosures are the same. Then you would have the same Vendor ID and Product ID. With HAL and UUID, the drives get mounted the same way even if you change enclosures. I guess it depends on what you know better. But if you do not know how to write udev rules, then you are better off with learning to use HAL.
Mikkel