3 Harddisk USB (autofs)
Hi
I have 3 USB harddisk I want to give each of them a static name (/mnt/disk1) How can I do that ? Right now the first pluged usb get the first name (/mnt/disk1 -> /dev/sda1) But if I plug the second disj before the fist disk it will get the fist disk name (/mnt/disk 1-> /dev/sda1) Is there any way to make a static name for each of them ? my /etc/autofs.misc : Code:
# $Id: auto.misc,v 1.2 1997/10/06 21:52:04 hpa Exp $ Thank you |
That is a problem because the first USB device (i.e mass storage) the OS finds will be assigned /dev/sda1.
One way to solve this problem would be a script that would examine the output of cdrecord --scanbus and see how the devices are connected. |
I don't care about where linux will but the usb (/dev/sd*) I care about the mount name (/mnt/*)
do you know where can I find any script for that ? |
Mount points are arbitrary. If you always want to mount a particular drive to the same mount point you do need to know its device.
I don't use hotplug but this might be what you are looking for. http://linux-hotplug.sourceforge.net/ |
All times are GMT -5. The time now is 04:16 PM. |