Stable device names for USB disks?

John Pettitt jpp at cloudview.com
Wed Mar 2 17:39:57 PST 2005



Dan Nelson wrote:

>In the last episode (Mar 02), John Pettitt said:
>  
>
>>I seem to recall there was a neat trick involving GEOM to allow USB
>>disks to be mounted in the same place every time the system boots but I
>>can't find it.   Right now my system (5.3 RELEASE) seems to being a
>>random da? device for each drive that changes with every reboot -
>>clearly not a good situation.
>>
>>Does anybody have a fix for this?
>>    
>>
>
>Two options:  
>
>- Wire your devices down (man scsi) so that your usb controller is
>  always, say, scbus1, and target 0 off scbus1 is da1.  You may also
>  have to wire down your boot controller and disk.
>
>- Use geom_label, label your FAT32 or ufs filesystems, and always mount
>  /dev/msdosfs/blah or /dev/ufs/blah
>  
>

Very cool - I built a stripe set whihc is showing up fine a
/dev/stripe/data2 but I can't get a single volume to show up

I did tunefs -L data /dev/da1s1d - added GEOM_LABEL to the kernel
config, rebuilt and rebooted but no /dev/ufs appears - what am I missing?


More information about the freebsd-questions mailing list