From owner-freebsd-arm@freebsd.org Thu Aug 30 13:54:14 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11F00109F26B for ; Thu, 30 Aug 2018 13:54:14 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 84726818C2 for ; Thu, 30 Aug 2018 13:54:13 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-RoutePath: aGlwcGll X-MHO-User: 2b37b593-ac5c-11e8-ac8d-0b43254c4a2d X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id 2b37b593-ac5c-11e8-ac8d-0b43254c4a2d; Thu, 30 Aug 2018 13:54:10 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w7UDs9SG017616; Thu, 30 Aug 2018 07:54:09 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1535637249.33841.64.camel@freebsd.org> Subject: Re: FYI: how gpart show -p reports the same microsdhc card in a USB reader vs. in the microsdcard slot (on a Pine64+ 2GB) From: Ian Lepore To: Mark Millard , freebsd-arm Date: Thu, 30 Aug 2018 07:54:09 -0600 In-Reply-To: <5769CFF2-05D3-47CA-ABFA-52786C7C3B71@yahoo.com> References: <5769CFF2-05D3-47CA-ABFA-52786C7C3B71@yahoo.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2018 13:54:14 -0000 On Thu, 2018-08-30 at 02:39 -0700, Mark Millard via freebsd-arm wrote: > [I do not currently have access to any alternates to the > Pine64+ 2GB that have a micro sdcard slot. So I can not > say that this is specific to the Pine64+ 2GB type of > context: no evidence for other contexts.] > > gpart show -p when the microsdhc card is in a USB-based > reader: > > =>      63  62333889    da4  MBR  (30G) >         63     16380         - free -  (8.0M) >      16443    131040  da4s1  fat32lba  [active]  (64M) >     147483       997         - free -  (499K) >     148480  62185470  da4s2  freebsd  (30G) >   62333950         2         - free -  (1.0K) > > =>       0  62185470   da4s2  BSD  (30G) >          0  62185470  da4s2a  freebsd-ufs  (30G) > > =>       0  62185470   ufsid/5b81680084249dc0  BSD  (30G) >          0  62185470  ufsid/5b81680084249dc0a  freebsd-ufs  (30G) > > =>       0  62185470   ufs/PINE642GBrootfs  BSD  (30G) >          0  62185470  ufs/PINE642GBrootfsa  freebsd-ufs  (30G) > > vs. when the same microsdhc card is in the mmcsd0 slot: > > =>      63  62333889    mmcsd0  MBR  (30G) >         63     16380            - free -  (8.0M) >      16443    131040  mmcsd0s1  fat32lba  [active]  (64M) >     147483       997            - free -  (499K) >     148480  62185470  mmcsd0s2  freebsd  (30G) >   62333950         2            - free -  (1.0K) > > Despite what the mmcsd0 case does not show, it seems to > work fine for the freebsd-ufs file system being the root > file system for booting from /dev/mmcsd0 . > > In fact the /etc/fstab used has: > > /dev/ufs/PINE642GBrootfs        /               ufs > rw,noatime          1 1 > /dev/label/PINE642GBboot        /boot/efi       msdosfs > rw,noatime      0 0 > > which show up just fine: > > # df -m > Filesystem               1M-blocks  Used Avail Capacity  Mounted on > /dev/ufs/PINE642GBrootfs     29400 26971    77   100%    / > devfs                            0     0     0   100%    /dev > /dev/label/PINE642GBboot        63     0    63     0%    /boot/efi > > So the freebsd-ufs content is found and used. > It's all but impossible to dig any meaning out of that jumbled wall of text, but from the subject line I surmise you're saying that an sdcard in a usb card reader shows a different geometry or size than that same card in a native sd slot. That's normal and expected and has always been so. -- Ian