Date: Tue, 28 Jun 2016 13:33:48 +0000 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 Message-ID: <bug-210661-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210661-8>