From owner-freebsd-questions@FreeBSD.ORG Wed Aug 13 17:08:13 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C2AD1065676 for ; Wed, 13 Aug 2008 17:08:13 +0000 (UTC) (envelope-from michael.grunewald@laposte.net) Received: from postfix1-g20.free.fr (postfix1-g20.free.fr [212.27.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id C476A8FC13 for ; Wed, 13 Aug 2008 17:08:12 +0000 (UTC) (envelope-from michael.grunewald@laposte.net) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by postfix1-g20.free.fr (Postfix) with ESMTP id A38EE294EBD8 for ; Wed, 13 Aug 2008 18:40:48 +0200 (CEST) Received: from smtp4-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp4-g19.free.fr (Postfix) with ESMTP id 1428E3EA0F7; Wed, 13 Aug 2008 18:40:47 +0200 (CEST) Received: from Llea.celt.neu (ron34-3-82-236-236-194.fbx.proxad.net [82.236.236.194]) by smtp4-g19.free.fr (Postfix) with ESMTP id A95153EA0F4; Wed, 13 Aug 2008 18:40:45 +0200 (CEST) Message-ID: <48A30F2B.1010704@laposte.net> Date: Wed, 13 Aug 2008 18:43:23 +0200 From: =?UTF-8?B?TWljaGHDq2wgR3LDvG5ld2FsZA==?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.16) Gecko/20080726 SeaMonkey/1.1.11 MIME-Version: 1.0 To: EdwardKing References: <004901c8fc15$cfd98130$3f83a8c0@neusofteaf5839> <48A27551.5040103@laposte.net> <003b01c8fd20$3755cd90$3f83a8c0@neusofteaf5839> In-Reply-To: <003b01c8fd20$3755cd90$3f83a8c0@neusofteaf5839> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: FreeBSD questions Subject: Re: How to visit U disk? 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, 13 Aug 2008 17:08:13 -0000 EdwardKing wrote: > Thanks your answer! > > I use dmesg | tail > #dmesg | tail > > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > Timecounter "TSC" frequency 2194304266 Hz quality 800 > Timecounters tick every 1.000 msec > hptrr: no controller detected. > ad0: 5120MB at ata0-master UDMA33 > acd0: CDROM at ata1-master UDMA33 > Waiting 5 seconds for SCSI devices to settle > GEOM_LABEL: Label for provider acd0 is iso9660/FreeBSD_Install. > Trying to mount root from ufs:/dev/ad0s1a If you issued the command right after you plugged the USB stick in your system, it has not been detected. The last line > #mount_msdosfs ufs:/dev/ad0s1a /mnt > mount_msdosfs ufs:/dev/ad0s1a: : Operation not permitted Because there is no file ufs:/dev/ad0s1a, note that ufs: is not part of the path of the device in the file system. > #mount_msdosfs /dev/ad0s1a /mnt > mount_msdosfs /dev/ad0s1a: : Operation not permitted Because the /dev/ad0s1a device is already mounted as the root file system. > #device umass > device: not found The shell says there is no command `device'. It seems you would take advantage from reading section «18. Storage» in the Handbook, especially section 18.2 that explains thow to recognize devices after their names, and section 18.5 that is devoted to USB devices. Again, the URL for section 18 is: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks.html (Note that top-posting obfuscates the dialog history, so it is best to avoid top-posting.) > ----- Original Message ----- > From: "Michaël Grünewald" > To: "EdwardKing" > Sent: Wednesday, August 13, 2008 1:46 PM > Subject: Re: How to visit U disk? > > >> EdwardKing wrote: >>> I want to use U disk which format is FAT32,I don't know how to visit >>> U disk,my dev directory is follows: #cd /dev #ls ... usb usb0 usb1 >>> ... >>> >>> How to do it? Thanks in advance >> After you plug the stick in the system, it is attached by the kernel >> which issues some information. This information is visible in the >> console, you can also access it with the dmesg utility: >> >> $ dmesg | tail >> umass0: on >> uhub4 >> da0 at umass-sim0 bus 0 target 0 lun 0 >> da0: Removable Direct Access SCSI-0 device >> da0: 40.000MB/s transfers >> da0: 247MB (506880 512 byte sectors: 64H 32S/T 247C) >> GEOM_LABEL: Label for provider da0s1 is msdosfs/USBSTICK. >> >> You can see above example output from my system. >> The stick is available here through `/dev/da0s1' or through >> `/dev/msdosfs/USBSTICK'. >> >> Not that some environements will automagically mount the stick for you, >> usually at some directory under /var/media. >> >> You may also want to read parts of the `Storage section' in the Handbook: >> >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks.html -- Cheers, Michaël