From owner-freebsd-questions@FreeBSD.ORG Sat Feb 8 19:52:02 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 91A60385 for ; Sat, 8 Feb 2014 19:52:02 +0000 (UTC) Received: from mailrelay5.qsc.de (mailrelay5.qsc.de [195.90.0.237]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EEC131966 for ; Sat, 8 Feb 2014 19:52:01 +0000 (UTC) Received: from mx02.qsc.de ([213.148.130.14]) by mailgate5.qsc.de; Sat, 08 Feb 2014 20:51:58 +0100 Received: from r56.edvax.de (port-92-195-97-134.dynamic.qsc.de [92.195.97.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 11DBD2497C; Sat, 8 Feb 2014 20:51:58 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s18Jpaj7002001; Sat, 8 Feb 2014 20:51:36 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 8 Feb 2014 20:51:36 +0100 From: Polytropon To: Luis Suzuki Subject: Re: Unable to mount SDHC memory card. Message-Id: <20140208205136.612f8526.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailgate5 with 6F6041490001 X-cloud-security-connect: mx02.qsc.de[213.148.130.14], TLS=, IP=213.148.130.14 X-cloud-security: scantime:.1622 Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Feb 2014 19:52:02 -0000 On Sat, 8 Feb 2014 15:39:15 +0000, Luis Suzuki wrote: > I WAS ABLE to mount on my laptop's internal SD drive a SDHC card, > I remember that I read somewhere that it is related to an i slice > or i partition and I did it,but now, I have tried /dev/mmcsd0pi, > /dev/mmcsd0si,/dev/mmcsd0i,/dev/sd0i etc. and nothing works.With > dmesg output it seems mmcsd0 is the name the system recognizes > the card(I don't remember anymore if I used that).So,I need to > know the exact name for the mount command.I already did the > trick but I forgot it.Does anybody usually mount SDHC cards on > FreeBSD? And how does it work? Thanks. If a "re-taste" of the card is required, first run # true > /dev/mmcsd0 and the slice, corresponding to the "DOS primary partition" that is stored on the card, will be found, the required device entry will be available. This is the one you're going to mount. It will usually be /dev/mmcsd0s1. You can use the shell's autocompletition feature (press TAB or Ctrl+D) so you don't have to remember the device name. # mount -t msdosfs /dev/mmcsd0[TAB] /dev/mmcsd0 /dev/mmcsd0s1 # mount -t msdosfs /dev/mmcsd0s1 /media/sd ... do stuff ... # umount /media/sd If you find yourself using this command often, create an entry in /etc/fstab, and then just use "mount /media/sd" (or whatever mount- point you choose). :-) But note that this example assumes you have a FAT formatted card. If the file system on the card is in UFS, /dev/mmcsd0 (dedicated, no partitions at all), /dev/mmcsd0s1a or /dev/mmcsd0s1d (MBR and disklabel partitioned), or /dev/mmcsd0p1 (GPT partitioned) would be the correct device to mount. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...