From owner-freebsd-questions@freebsd.org Sun Jan 20 17:18:00 2019 Return-Path: Delivered-To: freebsd-questions@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 55EBD149AE0D for ; Sun, 20 Jan 2019 17:18:00 +0000 (UTC) (envelope-from j.maxuel@gmail.com) Received: from mail-it1-x12a.google.com (mail-it1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D222370436 for ; Sun, 20 Jan 2019 17:17:58 +0000 (UTC) (envelope-from j.maxuel@gmail.com) Received: by mail-it1-x12a.google.com with SMTP id p197so12263517itp.0 for ; Sun, 20 Jan 2019 09:17:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:mime-version :content-transfer-encoding; bh=hViJo5gLgzprVNXW2LDgcvro5XHpLpm7HU2j0RPloHA=; b=IxEewHfbzD9usM+escNiI2EM4BRTRDt8RFU5BNhdytvqe9rUntm3PG6i5blGVfGd7s PmOruBwxvXmSOMwytdWCdq3RZ/Zq6t/zrzKje46oH4wS9UGY3yRUSEV5snPvlJcEOBf2 QvMRik4+gYVvVTAOkdZ5krdzB+WWMaxbUF/bJ7uPKQR8OfBefNkMqSNWHQOk7FF607l5 rpChThDPUUkZXq5IB1zsUWFHlAcpCJL9pNMkf70hIkb7tuyk+zCGyyar1bc+PBs3E/Bn TCXXyJMj+IHXQc1Xl//Ft8fNJHIYVLfSqpWmN0THSLFKXp0B4f69Jwfyzm3/t/N6KQ7i QTnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=hViJo5gLgzprVNXW2LDgcvro5XHpLpm7HU2j0RPloHA=; b=f/rTW+gCrW1XkOawvfzt0EQXWa/0JcDtZqp4KPmskb+uKd6gQPmXgA1qb8gr8tm86N nirXH14e6WJm48vBACYR1G3WM6zT3Q+y0SzAkkTmNLsfEmLsEGvwR40yk8FowcVDXrCF xYM/zvNSxXgf/V0lFKCVeBSI2L6u1avQHidslnnTKc0ukAOuCw2bWtFemQGUb7zRqSrb 6OhY4U5onxq5uKqddbbz5bDiOQuEI4uudPTvvNYF772etyhbVAPY1SCGmwaYd7u5xir4 k9iPY7DvyuPGMkvH8WQoWpdcfoe7OsWz3VBHLMfinKIuVQ9AVbDwEHwjfkUvjLzp2Nsj umEw== X-Gm-Message-State: AJcUukeCyQRaAEzrQtg4KAvoLqLwq7niuuuPIUcOI4mO/PMLaK3TrNO4 h2rLglE5ZGNKe3MibSDqq4lC4tQJJWo= X-Google-Smtp-Source: ALg8bN5SlRLiJwlv84nopE4jL7kNs0anR0z2OUEoDgMA3H16hso1UO7fxq23Y/yX8qNm6s3JCOmMRg== X-Received: by 2002:a02:9549:: with SMTP id y67mr15755212jah.4.1548004677642; Sun, 20 Jan 2019 09:17:57 -0800 (PST) Received: from cybaryme (cbl-45-2-195-179.yhz.frontiernetworks.ca. [45.2.195.179]) by smtp.googlemail.com with ESMTPSA id z10sm3982950ioh.20.2019.01.20.09.17.56 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Jan 2019 09:17:56 -0800 (PST) Message-ID: <0c03c1c4862d36e3083ec47e4313bc1490cb415f.camel@gmail.com> Subject: Re: FreeBSD Installer not recognizing existing partition tables From: Joel Maxuel To: freebsd-questions@freebsd.org Date: Sun, 20 Jan 2019 13:17:55 -0400 In-Reply-To: <1547845260.4093.1.camel@gmail.com> References: <1547790911.2471.3.camel@gmail.com> <20190118121130.81080d2b.freebsd@edvax.de> <1547844935.2361.1.camel@gmail.com> <1547845260.4093.1.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: D222370436 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=IxEewHfb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of jmaxuel@gmail.com designates 2607:f8b0:4864:20::12a as permitted sender) smtp.mailfrom=jmaxuel@gmail.com X-Spamd-Result: default: False [-5.97 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.93)[-0.932,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-2.53)[ip: (-8.34), ipnet: 2607:f8b0::/32(-2.40), asn: 15169(-1.85), country: US(-0.08)]; RCVD_IN_DNSWL_NONE(0.00)[a.2.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2019 17:18:00 -0000 A bit of delay to the response, but I am replying within FreeBSD as a result. Shortly after the last message, I found the verbose flag for the kernel, to get the extra messages in dmesg: hdacc1: GEOM: new disk ada0 hdaa1: GEOM: new disk ada1 GEOM_PART: partition 4 contains partition 5: start[4] 0 > start[5] 2048, end[5] 117229567 < end[4] 537234767 GEOM_PART: partition 4 contains partition 9: start[4] 0 > start[9] 117231616, end[9] 419311615 < end[4] 537234767 GEOM_PART: integrity check failed (ada0, BSD) GEOM_PART: partition 4 contains partition 5: start[4] 0 > start[5] 2048, end[5] 78125055 < end[4] 1953525167 GEOM_PART: partition 4 contains partition 11: start[4] 0 > start[11] 117190656, end[11] 128907263 < end[4] 1953525167 GEOM_PART: partition 4 contains partition 12: start[4] 0 > start[12] 128909312, end[12] 695232511 < end[4] 1953525167 GEOM_PART: partition 4 contains partition 13: start[4] 0 > start[13] 695234560, end[13] 1827696639 < end[4] 1953525167 GEOM_PART: partition 4 contains partition 14: start[4] 0 > start[14] 1827698688, end[14] 1945137151 < end[4] 1953525167 GEOM_PART: partition 4 contains partition 15: start[4] 0 > start[15] 1945139200, end[15] 1953523711 < end[4] 1953525167 GEOM_PART: integrity check failed (ada1, BSD) So it seems obvious to me now that FreeBSD is interpreting the disks as having BSD partition tables (not sure why other than something that may have happened when I tried out NetBSD). gdisk confirmed this - as well as revealing another detail: joel@cybaryme~> sudo gdisk -l /dev/sda GPT fdisk (gdisk) version 1.0.1 Partition table scan: MBR: MBR only BSD: present APM: not present GPT: not present *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT format in memory. *************************************************************** Disk /dev/sda: 537234768 sectors, 256.2 GiB Logical sector size: 512 bytes Disk identifier (GUID): 1973AB4D-3A33-4E61-AFAB-92EB6B7FFA7A Partition table holds up to 128 entries First usable sector is 34, last usable sector is 537234734 Partitions will be aligned on 2048-sector boundaries Total free space is 117927181 sectors (56.2 GiB) Number Start (sector) End (sector) Size Code Name 1 2048 117229567 55.9 GiB 8300 Linux filesystem 5 117231616 419311615 144.0 GiB 8300 Linux filesystem joel@cybaryme~> sudo gdisk -l /dev/sdb GPT fdisk (gdisk) version 1.0.1 Partition table scan: MBR: MBR only BSD: present APM: not present GPT: not present *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT format in memory. *************************************************************** Disk /dev/sdb: 1953525168 sectors, 931.5 GiB Logical sector size: 512 bytes Disk identifier (GUID): 71B8FB83-C10B-435B-9B34-68088FFF5D99 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 1953525134 Partitions will be aligned on 2048-sector boundaries Total free space is 125840749 sectors (60.0 GiB) Number Start (sector) End (sector) Size Code Name 1 2048 78125055 37.3 GiB 8300 Linux filesystem 5 78127104 97656831 9.3 GiB 8300 Linux filesystem 6 97658880 117188607 9.3 GiB 8300 Linux filesystem 7 117190656 128907263 5.6 GiB 8200 Linux swap 8 128909312 695232511 270.0 GiB 8300 Linux filesystem 9 695234560 1827696639 540.0 GiB 8300 Linux filesystem So following the advice I had come across ( https://superuser.com/questions/495672/how-can-i-convert-a-mbr-partition-to-gpt-without-loss-of-data ), I backed up the disks to images, and ran gdisk without the -l switch. Wrote the changes, rebooted. Tried with the HDD first, did not encounter an issue, and `gdisk -l` returned a protective MBR and present GPT. The SSD was a litle trickier as GRUB got borked and the only way to fix (GPT disks want this anyway) is to create a partition (not logical) and flag it for grub boot; install grub to that. Initially that didn't help either, but after turning off mixed mode in the BIOS (was try Legacy, then UEFI - changed to Legacy only) all was good again. I did however notice in the installer that GEOM had a non- spefific hissy fit (errors popped up behind the active dialogs) while the new partitions were set up on the HDD (SSD did not encounter this) - and since then a grub-update notes/warns-of "nested" issues on the HDD. I am not seeing any issue in gdisk nor parted, except the new partitions are one directly after another, aligned merely to the sector (which to me just means a potential performance issue). At this point I have a couple lingering issues: - automount sets up the external media and user can unmount, but the media contents are unreadable by user - "operation not permitted" - the USB hub as part of my monitor will not reconnect when the monitor power cycles - `usbconfig` will hang becuase of this until reboot I will do a little more research on those two before coming back - the first may be in a better state already by defining /media via automount.conf instead of auto_master - shall see after reboot. On Fri, 2019-01-18 at 17:01 -0400, Joel Maxuel wrote: > Oops, I forgot to properly note that I have removed the extra > partitions, and shrunk extended to reveal space for primary > partitions. > So the reply was in the context of no change in the behaviour of the > installer environment. > > Now current parted info: > > Disk /dev/sda: 537234768s > Sector size (logical/physical): 512B/512B > Partition Table: msdos > Disk Flags: > > Number Start End Size Type File > system Flags > 1 2048s 117229567s 117227520s primary ext4 bo > ot > 2 117229568s 419311615s 302082048s extended > 5 117231616s 419311615s 302080000s logical ext4 > > Disk /dev/sdb: 1953525168s > Sector size (logical/physical): 512B/4096B > Partition Table: msdos > Disk Flags: > > Number Start End Size Type File > system Flags > 1 2048s 78125055s 78123008s primary ext4 > 2 78127102s 1827698687s 1749571586s extended > 5 78127104s 97656831s 19529728s logical ext4 > 6 97658880s 117188607s 19529728s logical ext4 > 7 117190656s 128907263s 11716608s logical linux- > swap(v1) > 8 128909312s 695232511s 566323200s logical ext4 > 9 695234560s 1827696639s 1132462080s logical ext2 >