[Bug 226536] glabel/partition mixup on sdcard images
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Mar 11 18:55:26 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226536
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 at FreeBSD.org
Reporter: trasz at 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/rootfs".
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 at brick:~]% gpart show
[snip]
=> 63 6291393 md0 MBR (3.0G)
63 961 - free - (481K)
1024 34816 1 !12 [active] (17M)
35840 6255616 2 freebsd (3.0G)
=> 0 6255616 md0s2 BSD (3.0G)
0 6255616 1 freebsd-ufs (3.0G)
=> 0 6255616 ufsid/5a570a62577263b8 BSD (3.0G)
0 6255616 1 freebsd-ufs (3.0G)
=> 0 6255616 ufs/rootfs BSD (3.0G)
0 6255616 1 freebsd-ufs (3.0G)
[trasz at brick:~]% glabel list
[snip]
Geom name: md0s1
Providers:
1. Name: msdosfs/MSDOSBOOT
Mediasize: 17825792 (17M)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 524288
Mode: r0w0e0
secoffset: 0
offset: 0
seclength: 34816
length: 17825792
index: 0
Consumers:
1. Name: md0s1
Mediasize: 17825792 (17M)
Sectorsize: 512
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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-arm
mailing list