From owner-freebsd-bugs@freebsd.org Thu May 17 19:06:30 2018 Return-Path: Delivered-To: freebsd-bugs@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 01349EDD904 for ; Thu, 17 May 2018 19:06:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 86F0371842 for ; Thu, 17 May 2018 19:06:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 42400EDD903; Thu, 17 May 2018 19:06:29 +0000 (UTC) Delivered-To: bugs@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 04EB3EDD901 for ; Thu, 17 May 2018 19:06:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8DAF871841 for ; Thu, 17 May 2018 19:06:28 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id DE94614D26 for ; Thu, 17 May 2018 19:06:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w4HJ6RVC027620 for ; Thu, 17 May 2018 19:06:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w4HJ6RCa027619 for bugs@FreeBSD.org; Thu, 17 May 2018 19:06:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 228322] [patch] bsdinstall(8) and sade(8) lose the last block of disk in creating partition. Date: Thu, 17 May 2018 19:06:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: fbsd-send-pr@natheless.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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 attachments.created 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.26 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2018 19:06:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228322 Bug ID: 228322 Summary: [patch] bsdinstall(8) and sade(8) lose the last block of disk in creating partition. Product: Base System Version: 11.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: fbsd-send-pr@natheless.net Created attachment 193495 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D193495&action= =3Dedit diff-1: required to fix the bug / diff-2: additional could be wrong Affected releases: 9.x, 10.x, 11.0, 11.1, 11.2-BETA1 Affected architectures: all(not verified) Found(verified) release: 11.1 Found(verified) architecture: i386 * Description(summary) It leads the last block to be lost that bsdintall(8)/sade(8) create a partition(or slice) including the last block of the disk. * Description(detail) See attached conceptual patches rather than my bad English. Look at the attached diff-1 for the point of this problem. The attached diff-2 is an application to similar point. This is not required to fix the problem, but it looks like unexpectedly wor= king good in wrong code... Just for your information. Attached diffs are for Revision 328410. * Example step to reproduce the problem + Use VirtualBox. + Create new VM. type: BSD version: FreeBSD (32-bit) memory-size: 256MB virtual-hdd(VDI): 2.00GB + Set(mount) the FreeBSD-11.1-RELEASE-i386-disc1.iso to cd-drive of VM. + Start the VM. (boot from the iso image) + Do FreeBSD install "Partitioning": "Auto (UFS)" -> -> "MBR" -> = -> + Reboot into the installed FreeBSD. + Login as root. # /sbin/gpart list Geom name: ada0 modified: false state: OK fwheads: 16 fwsectors: 63 last: 4194303 first: 63 entries: 4 scheme: MBR Providers: 1. Name: ada0s1 Mediasize: 2147450368 (2.0G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 32768 Mode: r2w2e3 attrib: active rawtype: 165 length: 2147450368 offset: 32768 type: freebsd index: 1 end: 4194302 start: 64 (snip) + Look at "last" @ ada0 and "end" @ ada0s1. * Workaround: Use gpart(8), fdisk(8) or bsdlabel(8) on runnning management. Choose "Shell" mode for initial install and do it without bsdinstall(8) nor sade(8). * Attention: Fixing(updating) bsdinstall(8) does NOT solv the partition already created = by the affected versions. --=20 You are receiving this mail because: You are the assignee for the bug.=