The situation you describe about the removable drives mounting in /media suggests it is using udev, hal, d-bus and ivman. Your home system should be using udev, but not sure if it has hal or d-bus; even if, doesn't sound like it has ivman. I'm not so sure about how to do this in FC, I'm a gentoo guy, but you'd need to have all of those installed and set up. This might be of some help: http://gentoo-wiki.com/HOWTO_ivman. You need udev and d-bus for hal, and then just need to start the hal daemon (hald). Then start ivman, and it should autodetect devices plugged in and put them into /media. For example, /media/usbdisk0 would be the first partion of the first usb disk plugged in (I do believe). It'll add new devices to your /etc/fstab. You can, however, have a bit more control over this, setting up a udev rule to make your disk use a specific device file, for example /dev/mydrive and then put a listing in /etc/fstab to mount /dev/mydrive at /media/mydrive. Then, when plugged in, udev will create the /dev/mydrive device file and ivman will detect it's creation and readiness and mount it at /media/mydrive. Spiffy stuff. For more information on writing udev rules: http://gentoo-wiki.com/UDEV_Overview#Writing_custom_udev_rules. Bill Mills-Curran <bill@mills-curran.net> wrote...
Subject: [Wlug] usb drive -- hotplug/automount To: Worcester Linux Users Group <wlug@wlug.org> Message-ID: <20051227205055.GA6082@bday.mills.curran> Content-Type: text/plain; charset=us-ascii
I have a question about hotplugging & USB and some differences I see between 2 different FC3 systems (home & work).
**** Home
Initially, I configured my drive at home. I did NOT have the menu item:
Preferences -> Removable Storage
set to "Mount removable drives when hot-plugged". Without realizing that this was an option, I used manual entries in fstab:
# usb drive LABEL=usblinux /mnt/usb/linux auto defaults,user 0 0 /dev/sde2 /mnt/usb/windows auto defaults,user 0 0 /dev/sde1 /mnt/usb/camera auto defaults,user 0 0
This worked well & good. I was happy to be able to mount the partitions as a user. Note that the linux partition has a label "usblinux".
Then, I moved the drive to my work machine.
**** Work
I plugged the drive in and was surprised to find that both partitions automatically mounted in /media:
/media/usbdisk /media/usblinux
I also saw that entries were added to /etc/fstab, reflecting the mount points and device names.
I recognized this as better action.
Returning home...
**** Home
Plugging the drive in, I confirmed that nothing was happening in /media. I found the entry to automount the drive in:
Preferences -> Removable Storage
and enabled it. I unplugged and plugged the drive, and it mounted with this from df:
Filesystem 1K-blocks Used Available Use% Mounted on <snip> /dev/sde1 72801276 1704196 67398920 3% /mnt/usb/camera /dev/sde2 4176756 96 4176660 1% /mnt/usb/windows
This is not what I wanted. It used my fstab entries, and it picked the "camera" entry over the labeled entry.
OK, so I deleted the fstab entries & tried again. This time nothing mounted.
**** What I'd like to happen.
1. Mount when plugged in.
2. Don't specify the device -- after all, some other (new) usb device could disturb the device name.
How do I get there?
TIA, Bill
------------------------------
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
End of Wlug Digest, Vol 26, Issue 19 ************************************
-- Carlton C. Stedman II, sageman@wpi.edu "To iterate is human, to recurse, divine." -- L. Peter Deutch