Zbigniew Szalbot wrote:
> Hello,
>
> I have kernel compiled with USB support and I plugged in a USB drive:
> messages show this information:
>
> Jul 11 09:48:22 lists kernel: umass0: Myson Century, Inc. USB Mass Storage
> Device, rev 2.00/b0.07, addr 2
> Jul 11 09:48:22 lists kernel: da0 at umass-sim0 bus 0 target 0 lun 0
> Jul 11 09:48:22 lists kernel: da0: <ST380021 A 3.19> Fixed Direct Access
> SCSI-0 device 
> Jul 11 09:48:22 lists kernel: da0: 1.000MB/s transfers
> Jul 11 09:48:22 lists kernel: da0: 76319MB (156301488 512 byte sectors:
> 255H 63S/T 9729C)
>
> I created /mnt/usbck and would like to mount it there, then format it as it
> uses msdos file system (FAT).
>
> How do I determine the name of the drive is my first problem. It is not
> da0, it is? What is the command to check it? I mean I think it is not da0
> because da0 timestamp is a few days old. 
>
> I guess I need something like that:
> mount -t msdosfs /dev/??? /mnt/usbck
>
> Once I have it there, what is the best way to format this drive (I would
> like to use it for backup with FBSD file system)?
>
> Thank you very much in advance!
>
> Zbigniew Szalbot
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
>   
If this is a USB flash drive with a FAT partition, it is probably just
da0s1 (I am using one right now!) . Just do an ls /dev/da0*
and simply mount -t msdosfs /dev/da0s1 /mnt/usbck
For the second part of the question, I usually prefer to keep these
drives FAT formatted and tar gzip the files I need in there. I suppose
if you need to make UFS on it you will have to bsdlabel and newfs it.
Have never done it, but have a look at this page:

http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb-stick-episode-2

He is installing FreeBSD on a flash drive. Although not directly
relevant to what you are doing, he is showing all commands for creating
a UFS on the flash drive, and should be enough to get you started.

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to