From owner-freebsd-bugs@freebsd.org Tue Jun 28 13:33:48 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F3B4B85948 for ; Tue, 28 Jun 2016 13:33:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 0F34E200D for ; Tue, 28 Jun 2016 13:33:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u5SDXliE050548 for ; Tue, 28 Jun 2016 13:33:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 210661] geom_part does not recognize MBR partition type !12 (0Ch) used by BeagleBone Black Date: Tue, 28 Jun 2016 13:33:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 13:33:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210661 Bug ID: 210661 Summary: geom_part does not recognize MBR partition type !12 (0Ch) used by BeagleBone Black Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: emaste@freebsd.org Using the most recent snapshot sd card image on a BeagleBone Black, gpart d= oes not recognize the FAT-formatted boot partition type: root@beaglebone:~ # gpart show =3D> 63 61896641 mmcsd0 MBR (30G) 63 4095 1 !12 [active] (2.0M) 4158 61886402 2 freebsd (30G) 61890560 6144 - free - (3.0M) =3D> 0 61886402 mmcsd0s2 BSD (30G) 0 66 - free - (33K) 66 61886336 1 freebsd-ufs (30G) =3D> 1 3751935 mmcsd1 MBR (1.8G) 1 62 - free - (31K) 63 144522 1 !12 [active] (71M) 144585 3598560 2 linux-data (1.7G) 3743145 8791 - free - (4.3M) =3D> 1 3751935 diskid/DISK-56856FEC MBR (1.8G) 1 62 - free - (31K) 63 144522 1 !12 [active] (71M) 144585 3598560 2 linux-data (1.7G) 3743145 8791 - free - (4.3M) For comparison Linux fdisk reports this as: root@beaglebone:~# fdisk -l /dev/mmcblk0=20=20 Disk /dev/mmcblk0: 1920 MB, 1920991232 bytes 255 heads, 63 sectors/track, 233 cylinders, total 3751936 sectors Units =3D sectors of 1 * 512 =3D 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/mmcblk0p1 * 63 144584 72261 c W95 FAT32 (LBA) /dev/mmcblk0p2 144585 3743144 1799280 83 Linux Wikipedia concurs that this is FAT32 with LBA. Despite this, the filesystem contained in the stock eMMC on the BBB is actually FAT12: /dev/mmcsd0s1: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "BSD4.4 ", = root entries 512, sectors 4095 (volumes <=3D32 MB) , sectors/FAT 12, sectors/tra= ck 63, heads 255, serial number 0x5de21501, label: "MSDOSBOOT ", FAT (12 bit), followed by FAT For comparison the filesystem on the snapshot SD card image is: root@beaglebone:~ # file -s /dev/mmcsd1s1 /dev/mmcsd1s1: DOS/MBR boot sector, code offset 0x58+2, OEM-ID "mkdosfs", M= edia descriptor 0xf8, sectors/track 16, heads 4, sectors 144522 (volumes > 32 MB= ) , FAT (32 bit), sectors/FAT 1112, serial number 0x51470be5, label: "BEAGLEBON= E " --=20 You are receiving this mail because: You are the assignee for the bug.=