Fixing a USB disk to a specific device name

Mike Bristow mike at urgle.com
Mon Jan 21 09:05:12 PST 2008


On Mon, Jan 21, 2008 at 05:55:51PM +0100, Roland Smith wrote:
> On Mon, Jan 21, 2008 at 08:56:32AM +0400, Rakhesh Sasidharan wrote:
> > 
> >> It is possible, but not as daX. Use the glabel(8) utility to label your
> >> disks. They will show up as /dev/label/<yourlabel>
> 
> On 7.0-PRERELEASE, 'options GEOM_LABEL' is built into of the GENERIC
> kernel, so it shouldn't be necessary there.

Note that you can use UFS (and other filesystems labeling) too:  for example.
'newfs -L bobs_disk' will cause the device containing it to appear as 
/dev/ufs/bobs_disk.

This approach may be better for removable disks; it'll play better with
other OSs, for example.

-- 
Shenanigans!  Shenanigans!    Best of 3!
	-- Flash 



More information about the freebsd-questions mailing list