Formatting USB Drive
Alex Mandel
tech_dev at wildintellect.com
Tue May 23 23:39:13 UTC 2006
Steven Heimann wrote:
> Alex
>
> Thanks for the advice but the problem is not in creating the partition.
> That worked fine. The problem is in formatting the partition once it is
> created. I can access the partition and the formatting process starts
> to write to it but before the procedure can finish the disk will move
> from say /dev/sdb1 to /dev/sdc1. I think it might be something to do
> with USB hot plugging which I do not understand.
>
> Any other suggestions greatfully accepted
>
> Steven
>
Try messing with the Udev rules so the drive mounts to the same point
everytime, that way if it is dropping and the remounting at least it'll
come back to the same mount point.
Here are some links and examples I picked up from some friends:
http://www.linuxjournal.com/article/7316
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
mattrope at hades:~$ cat /etc/udev/rules.d/060_local.rules
# Local udev rules
# Iomega USB hard drive
BUS=="usb", KERNEL=="sd?1", SYSFS{product}=="Iomega HDD USB 2.0
Drive", NAME="%k", SYMLINK="usbhd"
# Neuros MP3 player
BUS=="usb", KERNEL=="sd?1", SYSFS{product}=="NEUROS Digital Audio
Device", NAME="%k", SYMLINK="neuros"
# Picture Card reader
BUS=="usb", KERNEL=="sd?1", SYSFS{product}=="Flash Reader",
NAME="%k", SYMLINK="piccard"
See if that works, Alex
More information about the ubuntu-users
mailing list