From owner-freebsd-questions@FreeBSD.ORG Wed Jul 11 08:44:11 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DD8B416A421 for ; Wed, 11 Jul 2007 08:44:11 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.77]) by mx1.freebsd.org (Postfix) with ESMTP id 6852C13C48A for ; Wed, 11 Jul 2007 08:44:10 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from atlantis.dyndns.org (athedsl-323974.home.otenet.gr [85.72.121.36]) by kane.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l6B8i7VC026255; Wed, 11 Jul 2007 11:44:08 +0300 Message-ID: <46949856.1040309@otenet.gr> Date: Wed, 11 Jul 2007 11:44:06 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.4 (X11/20070615) MIME-Version: 1.0 To: Zbigniew Szalbot References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Freebsd questions Subject: Re: finding the USB drive name, mounting and formatting X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2007 08:44:11 -0000 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: 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 "freebsd-questions-unsubscribe@freebsd.org" > > 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.