It is udev, rather than autofs, that creates /dev/disk/* entries. The 
udev rules must be a bit different for Centos/RHEL. Kind of strange, 
since Fedora has had it at least since Core 4.

The solution is to add udev rules to create a symlink to the physical 
device that gets assigned by udev. That is exactly how the /dev/disk/* 
entries are handled. It should be possible to copy the "persistent block 
device stuff" section from the Fedora 50-udev.rules file and place them 
in a new file named /etc/udev/rules.d/10-local-udev.rules, (or some name 
that is sorted before 50-udev.rules).

If you Google "centos /etc/udev/rules.d" you will find many examples of 
how to give a USB drive partition a persistent device name based on 
filesystem label. It really doesn't matter how you do it, as long as 
there is a persistent device name that can be used to configure autofs.


Hristo Benev wrote:
> Hi,
>
> finally I've upgraded to 2.0.3 to try Removable disk HOWTO, but have a 
> problem:
>
> I do not have /dev/disk/by-label only  by-path
>
> How to fix it
>
> Running: CentOS 4.4 (RHEL 4u4)
>
> Thanks,
> Hristo
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to