[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mounting usb devices consistently

On Mon, Jul 04, 2005 at 01:31:03PM -0400, Edward Kamau wrote:
> Hi
> I have a usb sd card reader a usb cruzer mini jump drive and a usb cf
> card reader. I have created mount points for them as /cfcard /sdrive
> and /jdrive. AT the time I set them up this corresponded
> to /dev/sdb1, /dev/sdc1 and /dev/sdd1. So /etc/fstab looks like this:
> <file system> <mount point>   <type>  <options>               <dump>
> <pass>
> /dev/sdb1       /cfcard      auto    defaults,user,umask=000 0       0
> /dev/sdc1       /sdcard         auto    defaults,user,umask=000 0
> 0
> /dev/sdd1       /jdrive      auto    defaults,user,umask=000 0       0
> My problem is that when I plugin say the jumpdrive it getsassigned
> arbitrarily (or so it seems) to either sdb1 sdc1 or sdd1. I would like
> to somehow make sure that each physical device always gets the same
> device name. SO the sdcard is always /dev/sdc1 and the cf card is
> always /dev/sdb1. Regardless of the order in which I plug them in.
> Any help will be greatly appreciated.
> emk

If you Google search for something like: udev rules usb drive, you will
find lots of info on how to configure udev to assign the same device
node to a piece of hardware. Thus, you could have /dev/cfcard,
/dev/sdcard and /dev/jdrive, which can then be mounted on your desired
mount point.

Incidentally, why put the mount points under / and not under /mnt or

Roberto C. Sanchez

Attachment: pgpRRKQ_l_Kvd.pgp
Description: PGP signature

Reply to: