Hi, I have a question about how linux mounts stuff, I am using gentoo, but I think the instructions should be more or less the same for all distros.
My problem is that I have 2 USB storage devices, my rootfs is in the NAND and I have several folders (usr, var, ...) in a flash drive mounted at /mnt/usb. Also, I have another HDD formated with hfsplus that hold my information.
So far everything has worked ok, every time I boot my flash drive gets /dev/sda and my hdd gets /dev/sdb, however it has happened to me that the HDD jumps to sdc, since my fstab has sda and sdb, any screw up with the letters breaks my system.
As already posted, you can use
LABEL= in fstab. /dev/disk/by-label/XXX is another way of accessing disk using volume name.
So my question is: how can I force the system to always give the same /dev entry to a device? I've looked a bit and it seems udev rules are the way to go, but I am not sure how to handle those.
The other question is: how to implement automount? I would like to have the SD mounted at /media when I plug it, or other flash drives.
Thanks.
see
http://plugcomputer.org/plugforum/index.php?topic=298.msg1911#msg1911however you'll have to add an entry in the
case clause for hfs.