Date: Sun, 11 Mar 2018 18:55:25 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 226536] glabel/partition mixup on sdcard images Message-ID: <bug-226536-7@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226536 Bug ID: 226536 Summary: glabel/partition mixup on sdcard images Product: Base System Version: CURRENT Hardware: arm OS: Any Status: New Severity: Affects Some People Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: trasz@FreeBSD.org The sdcard images distributed by the project contain two level (MBR/BSD) partition table. The root filesystem is mounted using UFS label, "ufs/root= fs". Problem is, the label gets attached to the wrong device: mmcsd0s2 instead = of mmcsd0s2a. The result is that on first startup, only the first level of partition table gets resized, which can result in significant confusion when moving the SD card to another system. Looking at the image on another system (using md(4)), it looks like this: [trasz@brick:~]% gpart show [snip] =3D> 63 6291393 md0 MBR (3.0G) 63 961 - free - (481K) 1024 34816 1 !12 [active] (17M) 35840 6255616 2 freebsd (3.0G) =3D> 0 6255616 md0s2 BSD (3.0G) 0 6255616 1 freebsd-ufs (3.0G) =3D> 0 6255616 ufsid/5a570a62577263b8 BSD (3.0G) 0 6255616 1 freebsd-ufs (3.0G) =3D> 0 6255616 ufs/rootfs BSD (3.0G) 0 6255616 1 freebsd-ufs (3.0G) [trasz@brick:~]% glabel list=20=20=20 [snip] Geom name: md0s1=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Providers:=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1. Name: msdosfs/MSDOSBOOT Mediasize: 17825792 (17M) Sectorsize: 512=20=20=20=20=20=20=20 Stripesize: 0 Stripeoffset: 524288 Mode: r0w0e0=20=20=20=20=20=20 secoffset: 0=20=20=20=20=20=20 offset: 0=20=20=20=20=20=20=20=20=20 seclength: 34816 length: 17825792=20=20=20=20=20=20=20=20=20=20=20=20 index: 0=20=20=20=20=20=20=20 Consumers:=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1. Name: md0s1=20=20=20=20=20=20=20=20=20=20=20 Mediasize: 17825792 (17M) Sectorsize: 512=20=20=20=20=20=20=20 Stripesize: 0 Stripeoffset: 524288 Mode: r0w0e0 Geom name: md0s2 Providers: 1. Name: ufsid/5a570a62577263b8 Mediasize: 3202875392 (3.0G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 18350080 Mode: r0w0e0 secoffset: 0 offset: 0 seclength: 6255616 length: 3202875392 index: 0 Consumers: 1. Name: md0s2 Mediasize: 3202875392 (3.0G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 18350080 Mode: r0w0e0 Geom name: md0s2 Providers: 1. Name: ufs/rootfs Mediasize: 3202875392 (3.0G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 18350080 Mode: r0w0e0 secoffset: 0 offset: 0 seclength: 6255616 length: 3202875392 index: 0 Consumers: 1. Name: md0s2 Mediasize: 3202875392 (3.0G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 18350080 Mode: r0w0e0 Notice how the last consumer is md0s2 instead of md0s2a. --=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-226536-7>