Hi, Sys: C5.2, X86_64 my plan is to automatically mount five same brand usb disks in five different directories. I have written the following udev rule; Problem is, it does not mount them on boot, only when I plug them in. KERNEL=="sd*", SYSFS{serial}=="57442D574341554830303133323337", SYSFS{product}=="My Book", SYMLINK+="usbdisc0", ACTION=="add", RUN+="/bin/mount -o noatime /dev/usbdisc0 /mnt/woche1" KERNEL=="sd*", SYSFS{serial}=="57442D574341554631383831303534", SYSFS{product}=="My Book", SYMLINK+="usbdisc1", ACTION=="add", RUN+="/bin/mount -o noatime /dev/usbdisc1 /mnt/woche2" KERNEL=="sd*", SYSFS{serial}=="57442D574341554631383831343136", SYSFS{product}=="My Book", SYMLINK+="usbdisc2", ACTION=="add", RUN+="/bin/mount -o noatime /dev/usbdisc2 /mnt/woche3" KERNEL=="sd*", SYSFS{serial}=="57442D574341554631383831303930", SYSFS{product}=="My Book", SYMLINK+="usbdisc3", ACTION=="add", RUN+="/bin/mount -o noatime /dev/usbdisc3 /mnt/woche4" KERNEL=="sd*", SYSFS{serial}=="57442D574341554B30303239303435", SYSFS{product}=="My Book", SYMLINK+="usbdisc4", ACTION=="add", RUN+="/bin/mount -o noatime /dev/usbdisc4 /mnt/woche5" How can I make them mount on boot? Thx Rainer
Rainer Traut wrote:> Hi, > > Sys: C5.2, X86_64 > > my plan is to automatically mount five same brand usb disks in five > different directories. > > I have written the following udev rule; > Problem is, it does not mount them on boot, only when I plug them in. > > KERNEL=="sd*", SYSFS{serial}=="57442D574341554830303133323337", > SYSFS{product}=="My Book", SYMLINK+="usbdisc0", ACTION=="add", > RUN+="/bin/mount -o noatime /dev/usbdisc0 /mnt/woche1" > KERNEL=="sd*", SYSFS{serial}=="57442D574341554631383831303534", > SYSFS{product}=="My Book", SYMLINK+="usbdisc1", ACTION=="add", > RUN+="/bin/mount -o noatime /dev/usbdisc1 /mnt/woche2" > KERNEL=="sd*", SYSFS{serial}=="57442D574341554631383831343136", > SYSFS{product}=="My Book", SYMLINK+="usbdisc2", ACTION=="add", > RUN+="/bin/mount -o noatime /dev/usbdisc2 /mnt/woche3" > KERNEL=="sd*", SYSFS{serial}=="57442D574341554631383831303930", > SYSFS{product}=="My Book", SYMLINK+="usbdisc3", ACTION=="add", > RUN+="/bin/mount -o noatime /dev/usbdisc3 /mnt/woche4" > KERNEL=="sd*", SYSFS{serial}=="57442D574341554B30303239303435", > SYSFS{product}=="My Book", SYMLINK+="usbdisc4", ACTION=="add", > RUN+="/bin/mount -o noatime /dev/usbdisc4 /mnt/woche5" > > How can I make them mount on boot? > > Thx > Rainer > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >how do you expect to mount usb disks when they are not plugged in ? plug them in and reboot.
> From: partha chowdhury <kira.laucas at gmail.com> > > my plan is to automatically mount five same brand usb disks in five > > different directories. > > I have written the following udev rule; > > Problem is, it does not mount them on boot, only when I plug them in. > > how do you expect to mount usb disks when they are not plugged in ? plug > them in and reboot.He did not say he tried to boot with the drives not plugged; he said he needs the plugging action in order to get the drives mounted... If he boots with the drives already plugged in, they apparently do not get mounted... JD
Am 20.01.2009 15:33, schrieb John Doe:>> From: partha chowdhury<kira.laucas at gmail.com> >>> my plan is to automatically mount five same brand usb disks in five >>> different directories. >>> I have written the following udev rule; >>> Problem is, it does not mount them on boot, only when I plug them in. >> how do you expect to mount usb disks when they are not plugged in ? plug >> them in and reboot. > > He did not say he tried to boot with the drives not plugged; he said he needs the plugging action in order to get the drives mounted... > If he boots with the drives already plugged in, they apparently do not get mounted...Yes exactly. My problem description might have been ambiguous but common sense should have made this clear. Rainer
> From: Rainer Traut <tr.ml at gmx.de> > Am 20.01.2009 15:33, schrieb John Doe: > >> From: partha chowdhury > >>> my plan is to automatically mount five same brand usb disks in five > >>> different directories. > >>> I have written the following udev rule; > >>> Problem is, it does not mount them on boot, only when I plug them in. > >> how do you expect to mount usb disks when they are not plugged in ? plug > >> them in and reboot. > > > > He did not say he tried to boot with the drives not plugged; he said he needs > the plugging action in order to get the drives mounted... > > If he boots with the drives already plugged in, they apparently do not get > mounted... > > Yes exactly. My problem description might have been ambiguous but common > sense should have made this clear.Did you try with simpler (no serial/model) rules? Maybe, at boot time, there is a problem getting the disks serials/models... JD