[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
Hi folks, I was hoping someone could help with something I am stuck on at the moment. I am trying to set up a PC to automatically backup a couple of network shares to an identical pair of external USB hard drives. The drives are pre-formatted as FAT32 (for compatibility with Windows). The idea is that the drives are changed once or twice a week and I want to make sure that they automatically mount as the same device (say, /dev/sda) every time they are connected. I have tried Google and I read up something about UDEV rules. I have tried creating a rule and placing it in /etc/udev (I called it freecombackupdevice.rules) although when I reconnect the drive is is automatically mounted to /media/drive_label whereas I actually want it to mount to /mnt/backup. Below is the copies of the freecombackupdevice.rules file and the output from udevinfo -a -p /sys/block/sdb Just wondering if anyone could help? I'd like to make it as idiot proof as possible so anyone can just plug the drive in and have it mount in the right places. Ta, Rob ---- freecombackupdevice.rules BUS=="usb", SYSFS{product}=="Freecom Mobile Drive", SYSFS{idProduct}=="fcc7", SYSFS{idVendor}=="07ab", NAME="%k", SYMLINK+="usbhd&n" ---- Output of udevinfo -a -p /sys/block/sdb looking at device '/block/sdb': KERNEL=="sdb" SUBSYSTEM=="block" SYSFS{stat}==" 38 268 509 284 0 0 0 0 0 240 284" SYSFS{size}=="156301488" SYSFS{removable}=="0" SYSFS{range}=="16" SYSFS{dev}=="8:16" looking at device '/devices/pci0000:00/0000:00:02.2/usb3/3-1/3-1:1.0/host17/target17:0:0/17:0:0:0': ID=="17:0:0:0" BUS=="scsi" DRIVER=="sd" SYSFS{ioerr_cnt}=="0x0" SYSFS{iodone_cnt}=="0x2d" SYSFS{iorequest_cnt}=="0x2d" SYSFS{iocounterbits}=="32" SYSFS{timeout}=="30" SYSFS{state}=="running" SYSFS{rev}=="0000" SYSFS{model}=="MHV2080AH " SYSFS{vendor}=="FUJITSU " SYSFS{scsi_level}=="3" SYSFS{type}=="0" SYSFS{queue_type}=="none" SYSFS{queue_depth}=="1" SYSFS{device_blocked}=="0" SYSFS{max_sectors}=="240" looking at device '/devices/pci0000:00/0000:00:02.2/usb3/3-1/3-1:1.0/host17/target17:0:0': ID=="target17:0:0" BUS=="" DRIVER=="" looking at device '/devices/pci0000:00/0000:00:02.2/usb3/3-1/3-1:1.0/host17': ID=="host17" BUS=="" DRIVER=="" looking at device '/devices/pci0000:00/0000:00:02.2/usb3/3-1/3-1:1.0': ID=="3-1:1.0" BUS=="usb" DRIVER=="usb-storage" SYSFS{modalias}=="usb:v07ABpFCC7d0001dc00dsc00dp00ic08isc06ip50" SYSFS{bInterfaceProtocol}=="50" SYSFS{bInterfaceSubClass}=="06" SYSFS{bInterfaceClass}=="08" SYSFS{bNumEndpoints}=="02" SYSFS{bAlternateSetting}==" 0" SYSFS{bInterfaceNumber}=="00" looking at device '/devices/pci0000:00/0000:00:02.2/usb3/3-1': ID=="3-1" BUS=="usb" DRIVER=="usb" SYSFS{configuration}=="" SYSFS{serial}=="0381FECC0245" SYSFS{product}=="Freecom Mobile Drive" SYSFS{manufacturer}=="Freecom" SYSFS{maxchild}=="0" SYSFS{version}==" 2.00" SYSFS{devnum}=="20" SYSFS{speed}=="480" SYSFS{bMaxPacketSize0}=="64" SYSFS{bNumConfigurations}=="1" SYSFS{bDeviceProtocol}=="00" SYSFS{bDeviceSubClass}=="00" SYSFS{bDeviceClass}=="00" SYSFS{bcdDevice}=="0001" SYSFS{idProduct}=="fcc7" SYSFS{idVendor}=="07ab" SYSFS{bMaxPower}=="500mA" SYSFS{bmAttributes}=="c0" SYSFS{bConfigurationValue}=="1" SYSFS{bNumInterfaces}==" 1" -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html