Fixing a USB disk to a specific device name

Jerry McAllister jerrymc at msu.edu
Mon Jan 21 12:08:51 PST 2008


On Mon, Jan 21, 2008 at 02:19:54PM -0300, Mario Lobo wrote:

> On Monday 21 January 2008 14:05:04 Mike Bristow wrote:
> > 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.
> 
> I simply put
> 
> /dev/da0s1		/PenDrive	msdosfs	rw,noauto	0	0
> 
> on fstab. After I plug it in, I type
> 
> mount /PenDrive.  In KDE,  I use Kwikdisk to mount it.

Maybe I am missing something, but I don't think that is what the OP
was asking - just a mount moiunt.   I think the OP wants the
/dev/da0s1 to always be /dev/da0s1 even if he switches the drives
around in physical drive slots.

////jerry

> 
> Mario Lobo
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list