On Friday 26 November 2004 07:08, Rahul Sundaram wrote: > Hi > > > I plug in USB camera. Shos up at /dev/sda. > > I add USB drive. Shows up at /dev/sdb. > > > > Tomorrow > > I plug in USB drive. Shows up at /dev/sda > > I plug in USB camera. Shows up at /dev/sdb. > > > > What if I have _two_ USB drives (I do - one for carrying stuff, one for > > backups)?. > > afaik Udev has persistent naming. are you sure that doesnt solve your > problem? This is a plugging sequence on Nahant: root@thylacine ~]# /sbin/fdisk -l /dev/sda Disk /dev/sda: 40.0 GB, 40007761920 bytes 64 heads, 32 sectors/track, 38154 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System /dev/sda1 1 38154 39069680 83 Linux [root@thylacine ~]# /sbin/fdisk -l /dev/sdb [root@thylacine ~]# /sbin/fdisk -l /dev/sdb Disk /dev/sdb: 125 MB, 125960192 bytes 8 heads, 32 sectors/track, 961 cylinders Units = cylinders of 256 * 512 = 131072 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 961 122959+ 6 FAT16 [root@thylacine ~]# /sbin/fdisk -l /dev/sdb [root@thylacine ~]# /sbin/fdisk -l /dev/sda [root@thylacine ~]# /sbin/fdisk -l /dev/sda Disk /dev/sda: 125 MB, 125960192 bytes 8 heads, 32 sectors/track, 961 cylinders Units = cylinders of 256 * 512 = 131072 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 961 122959+ 6 FAT16 [root@thylacine ~]# /sbin/fdisk -l /dev/sdb Disk /dev/sdb: 40.0 GB, 40007761920 bytes 64 heads, 32 sectors/track, 38154 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 38154 39069680 83 Linux [root@thylacine ~]# Note the drives changed as I predicted. One one of my boxes consecutive pluggings of the camera have it moving over /dev/sd{a,b,c,d} etc in rotation unless I use the eject command. -- Cheers John