Date: Tue, 22 Jan 2008 10:02:11 +0400 (GST) From: Rakhesh Sasidharan <rakhesh@rakhesh.com> To: Jerry McAllister <jerrymc@msu.edu> Cc: Mario Lobo <mlobo@digiart.art.br>, freebsd-questions@freebsd.org Subject: Re: Fixing a USB disk to a specific device name Message-ID: <20080122100051.E7173@dogmatix.home.rakhesh.com> In-Reply-To: <20080121200601.GA14429@gizmo.acns.msu.edu> References: <20080120161831.L62033@obelix.home.rakhesh.com> <20080121165551.GB50246@slackbox.xs4all.nl> <20080121170504.GA73013@cheddar.urgle.com> <200801211419.54729.mlobo@digiart.art.br> <20080121200601.GA14429@gizmo.acns.msu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Jerry McAllister wrote:
> 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.
>
Yup, that's what I wanted. For the drive to always appear as /dev/da0 (or
anything similar). The glabel feature (and newfs labelling feature too)
are exactly what I was looking for.
Thanks a ton for all the replies. Much appreciated. :)
Regards,
- Rakhesh
http://rakhesh.net/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080122100051.E7173>
