On Tuesday 25 January 2005 12:01 pm, Chris H wrote:
Chris H wrote:
Solution is simple.
- Start SuSE plugger
- Navigate to drive
- Click on configure
- unmount the drive partitions from a terminol
- now use Yast to mount the drive where ever and call it whatever you want.
- Reset NFS
- exist yast
- test NFS from another server.
- done..:)
Sorry to pester....:)
Further testing indicates that this method does not survive a reboot with SuSE still assigning the USB drive to /media/usb-0x05e3-0x0702:0:0:0p4 and media/usb-0x05e3-0x0702:0:0:0p1 the two available partitions on the drive.
Use udev to make a persistent dev name and a fstab entry to mount it should do what you want. My setup doesn't auto mount when I plug in the jumpdrive (I have to mount it manually), but no matter what usb port I use, it gets mounted in a way I can remember and that nfs would accept. In /etc/udev/rules.d/50-udev.rules, I added the rule: BUS="usb", SYSFS{serial}="J319060125020", KERNEL="sd*", NAME="%k" SYMLINK="lexar%n" (The above in one line) Make it the first rule after the comments. You might be able to place it in a file by itself that gets read before the 50-udev.rules file. I think they are read alphabetically, so maybe 49-udev.rules? The BUS="usb" and SYSFS{serial}="device_serial_number" identify the jump drive. I got the serial number using usbview. If I had several Lexar Media thumb drives and wanted any one of them to mounted to the same place, I could use SYSFS{manufacturer}="Lexar Media" instead of a serial number. (I haven't actually tested that, but it should work). The KERNEL="sd*" makes sure I match a mountable block device and not a character device like sg0. NAME="%k" keeps the kernel name (like sda so the default block device doesn't get overwritten and you can still mount on that device. The SYMLINK="lexar%n" means that no matter what /dev/sdx the jumpdrive becomes when I plug it in, /dev/lexarx will point to it. The %n is for multiple partitions if you have them (ie: sda-lexar, sda1=lexar1, sda2=lexar2, etc). When the thumbdrive is plugged in, the devices are created (takes a few seconds). In /etc/fstab, I added: /dev/lexar1 /media/jumpdrive auto users,defaults 0 0 After creating /media/jumpdrive, any user can mount the thumdrive a few seconds after plugging it in. Some one who understands and can read/modify the various scripts involved could probably get this to hotplug and automount, but I leave that to some less scripting challenged. Hope that helps! Doug