From owner-freebsd-questions@FreeBSD.ORG Sun May 25 17:48:38 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 BA96D106567C for ; Sun, 25 May 2008 17:48:38 +0000 (UTC) (envelope-from nej.papillon@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.238]) by mx1.freebsd.org (Postfix) with ESMTP id 8EA7C8FC16 for ; Sun, 25 May 2008 17:48:38 +0000 (UTC) (envelope-from nej.papillon@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1885418rvf.43 for ; Sun, 25 May 2008 10:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=uu0yYQRdhHh7h/r/cAWqk5p8w3vI+4W5HUUScc7HIB4=; b=LGG5uCXSDtEFWvnk4hfIZV2sD+9+pKmuDtCRxome4ZJO17QjY4nytxGi1jSnnE8EtztjC8xGJtsjVG8I9s8QG2edVjESVW3UbVqbsi+0hgytiHkEMmOM+31A4/4JkV3yVKUVTqgmr7nWRHkC2XKxt7dbRiaqmvUCDvOznkmDMDQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=tVYGAakvq3b4lp4ZLKsbZEvED3zaQD7RawEP7DlQWj2Dg9vrlWZWJO3ogxZtBMBx8heEXamVx72a5JuvL+7dYFUPbO91iEP+HH3RG0LGWAqDe+MpQ8ATmnEsf144VQuf+FIYI2ShZDYipZ4PdASoAQBKGQJXNc46ozQh9KavU9g= Received: by 10.140.157.4 with SMTP id f4mr701238rve.1.1211735964603; Sun, 25 May 2008 10:19:24 -0700 (PDT) Received: by 10.140.142.14 with HTTP; Sun, 25 May 2008 10:19:24 -0700 (PDT) Message-ID: Date: Sun, 25 May 2008 19:19:24 +0200 From: "nej ALL" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Stick memory USB 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: Sun, 25 May 2008 17:48:38 -0000 Hi, I'm new on FreeBSD not on unix. I want to mount automatically an usb-stick memory into my machine ? I get some problems. Need help. -> /etc/devfs.rules add path 'da*' mode 0660 group operator Actions: 1) ls -al /dev/da* ls: No match. 2) I Plug into the USB port, the ImageMate 12-in-1 Card Reader/Writer (SanDisk) 3) ls -al /dev/da* crw-rw---- 1 root operator 0, 136 25 mai 14:11 /dev/da0 crw-rw---- 1 root operator 0, 138 25 mai 14:11 /dev/da1 crw-rw---- 1 root operator 0, 140 25 mai 14:11 /dev/da2 crw-rw---- 1 root operator 0, 141 25 mai 14:11 /dev/da3 4) I put the memory stick into the Card reader's slot 5) ls -al /dev/da* crw-rw---- 1 root operator 0, 136 25 mai 14:11 /dev/da0 crw-rw---- 1 root operator 0, 138 25 mai 14:11 /dev/da1 crw-rw---- 1 root operator 0, 140 25 mai 14:11 /dev/da2 crw-rw---- 1 root operator 0, 141 25 mai 14:11 /dev/da3 the /dev/da2s1 isn't here. 6) mount_msdosfs /dev/da2s1 /mnt/cleusb/ mount_msdosfs: /dev/da2s1: No such file or directory 7) fdisk /dev/da2 ******* Working on device /dev/da2 ******* parameters extracted from in-core disklabel are: cylinders=30 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=30 heads=64 sectors/track=32 (2048 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 4 (0x04),(Primary DOS with 16 bit FAT (< 32MB)) start 64, size 62656 (30 Meg), flag 0 beg: cyl 1/ head 0/ sector 1; end: cyl 979/ head 1/ sector 32 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: 8) ls -al /dev/da* crw-rw---- 1 root operator 0, 136 25 mai 14:11 /dev/da0 crw-rw---- 1 root operator 0, 138 25 mai 14:11 /dev/da1 crw-rw---- 1 root operator 0, 140 25 mai 14:11 /dev/da2 crw-rw---- 1 root operator 0, 141 25 mai 14:11 /dev/da3 9) mount_msdosfs /dev/da2 /mnt/cleusb mount_msdosfs: /dev/da2: Invalid argument The command mount_msdosfs terminated abnormally but created in the /dev directory the /dev/da2s1 file. 10) ls -al /dev/da* crw-rw---- 1 root operator 0, 136 25 mai 14:11 /dev/da0 crw-rw---- 1 root operator 0, 136 25 mai 14:11 /dev/da0 crw-rw---- 1 root operator 0, 138 25 mai 14:11 /dev/da1 crw-rw---- 1 root operator 0, 140 25 mai 14:11 /dev/da2 crw-rw---- 1 root operator 0, 142 25 mai 14:11 /dev/da2s1 crw-rw---- 1 root operator 0, 141 25 mai 14:11 /dev/da3 11) And now i can mount and umount the stick memory. Please, can someone explain to me why, when i plug the stick memory into the slot of the card reader, the system doesn't create the /dev/da2s1 file in the the /dev directory. And why i use the mount_msdosfs command, this command creates /dev/da2s1 file in the /dev directory. Thank you for your answers ! Sorry for my english. Best regards Nej Email : nej.papillon@gmail.com