Re: how to enable USB pen drive

From: Keve Nagy (keve_at_private.invalid)
Date: 06/28/05


Date: Tue, 28 Jun 2005 22:53:58 +0100

siliconmike wrote:
> How do I enable an IOMEGA USB pen drive on FreeBSD ?
>
> Links / Pointers ?

Plug it in and check ttyv0 for system messages or see the end of the
file /val/log/messages.
This will show you the name of the disk as your FreeBSD recognized it,
something like da0, or da1, or da2 depending on how many
SCSI/FireWire/USB drives you have connected.

Now that you have the drive connected and you know which da# it is
assigned to (I will assume da0), you can mount the disk ask root, for
example to /mnt with the following command:

mount -t msdos -o longnames,-m=644,-M755,-u=keve,-g=keve /dev/da0s1 /mnt

For -u=keve and -g=keve you can substitute any valid username and
groupname to which you want to assign the ownership of files and
directories on the USB drive.
Be careful not to leave any SPACEs between longnames and -g=keve, those
are all comma separated and there can be no spaces. See man mount or man
mount_msdosfs if you need the details.
/dev/da0s1 should be replaced by whichever da# your *** received from
the system. /mnt is the directory where your USB drive will be mounted.

When you are done, you can unmount the drive with:
umount /mnt
replacing /mnt with whatever you used as a mount point.

Good luck!

Keve

-- 
If you need to reply directly:
keve(at)mail(dot)poliod(dot)hu