From tazle@kotinetti-k-35.suomi.net  Thu Mar  6 15:30:27 2003
Return-Path: <tazle@kotinetti-k-35.suomi.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B748A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Mar 2003 15:30:27 -0800 (PST)
Received: from kotinetti-k-35.suomi.net (kotinetti-K-35.suomi.net [212.50.129.35])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 91FE543FCB
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Mar 2003 15:30:19 -0800 (PST)
	(envelope-from tazle@kotinetti-k-35.suomi.net)
Received: from kotinetti-k-35.suomi.net (localhost [127.0.0.1])
	by kotinetti-k-35.suomi.net (8.12.3/8.12.3) with ESMTP id h26NSSY7098873
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 7 Mar 2003 01:28:30 +0200 (EET)
	(envelope-from tazle@kotinetti-k-35.suomi.net)
Received: (from tazle@localhost)
	by kotinetti-k-35.suomi.net (8.12.3/8.12.3/Submit) id h26NSPO9098872;
	Fri, 7 Mar 2003 01:28:25 +0200 (EET)
	(envelope-from tazle)
Message-Id: <200303062328.h26NSPO9098872@kotinetti-k-35.suomi.net>
Date: Fri, 7 Mar 2003 01:28:25 +0200 (EET)
From: Tuure Laurinolli <tazle@lyseo.edu.ouka.fi>
Reply-To: Tuure Laurinolli <tazle@lyseo.edu.ouka.fi>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Sysinstall's  partition editor gets confused by partitions created out-of-order
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         48989
>Category:       bin
>Synopsis:       sysinstall(8): Sysinstall's  partition editor gets confused by partitions created out-of-order
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-sysinstall
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 06 15:40:10 PST 2003
>Closed-Date:    
>Last-Modified:  Sun Jan 23 21:00:11 UTC 2011
>Originator:     Tuure Laurinolli
>Release:        FreeBSD 5.0-RELEASE
>Organization:
>Environment:

System: FreeBSD 5.0-RELEASE i386 miniint ISO on vmware 4.0 beta
Another system: FreeBSD 4.6-RELEASE i386

>Description:
	When using sysinstall's partition editor to create partitions the editor sometimes gets confused if they are created out of order (for example b,a,d). I installed FreeBSD 5.0-RELEASE on vmware for some testing today and had the following problems when creating partitions:
I first used the auto defaults option to see if it would give something sane, it didn't(well, rather sane but not good enough). Then I started deleting the partitions, swap first, then created a smaller swap, then deleted /usr, /var and /tmp, then /, then created a new / and then tried to create a new /usr, which didn't work. It said "Unable to create the partition. Too big?". I am sure it wasn't too big as I managed to create an equally big partition after deleting the newer / and swap partitions and creating them in order (first /, then swap). I have run into this problem earlier, deleting the already existing partitions helped that time too.  
   
>How-To-Repeat:
	Probably as described above.	
>Fix:

	


>Release-Note:
>Audit-Trail:

From: Snowfall <snowfall@gmx.co.uk>
To: freebsd-gnats-submit@FreeBSD.org, tazle@lyseo.edu.ouka.fi
Cc: security-officer@FreeBSD.org
Subject: Re: bin/48989: Sysinstall's  partition editor gets confused by
  partitions created out-of-order
Date: Thu, 26 Jun 2003 00:47:14 +1200

 CC-ed to the security officer since there is a real possibility that
 the FreeBSD installer does delete a lot of data on hard disks.
 
 |
 | When using sysinstall's partition editor to create partitions the
 | editor sometimes gets confused if they are created out of order (for
 | example b,a,d). I installed FreeBSD 5.0-RELEASE on vmware for some
 | testing today and had the following problems when creating partitions:
 |
 | I first used the auto defaults option to see if it would give
 | something sane, it didn't(well, rather sane but not good enough). Then
 | I started deleting the partitions, swap first, then created a smaller
 | swap, then deleted /usr, /var and /tmp, then /, then created a new /
 | and then tried to create a new /usr, which didn't work. It said
 | "Unable to create the partition. Too big?". I am sure it wasn't too
 | big as I managed to create an equally big partition after deleting the
 | newer / and swap partitions and creating them in order (first /, then
 | swap). I have run into this problem earlier, deleting the already
 | existing partitions helped that time too.
 |
 
 A Sysinstall (FreeBSD installer) bug trashed 1-2 partitions at the
 end of a hard disk, for me. This bug seems so serious that all
 installations of FreeBSD are very appropriate for being stopped
 so long as the bug is not removed. I never found out what caused
 that. I am not sure if checking with Partition Magic before using
 the FreeBSD installer would get past a test of adequate safety,
 that could let the project's staff recommend that as a workaround
 for the bug(s) in sysinstall. Using Partition Magic can reduce the
 chance of data loss. But disordered partions are acceptable to
 Windows 2000.
 
 Disordering the primary partition is something that a new user of FreeBSD
 would be sometimes likely to do since that can get the operating
 system booting again.
 
 Another bug that ought not have got through is this one (for the
 FreeBSD 5.1 installer):
 
   "error mounting /dev/ad0s1 on /dist"
 
 The FreeBSD installer (v5) gives that useless error when it never
 got to load the msdosfs driver from the option not insisted upon,
 drivers floppy. The code printing that message gets only a Boolean
 indication of what the problem was!.
 
 When Windows NT first came out, it had a format program that would
 erase hard disk data.
 
 
 Craig Carey, New Zealand 
 
Responsible-Changed-From-To: freebsd-bugs->qa 
Responsible-Changed-By: kris 
Responsible-Changed-When: Fri Jul 18 16:00:15 PDT 2003 
Responsible-Changed-Why:  
Assign to qa group 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48989 
Responsible-Changed-From-To: freebsd-bugs->brucec  
Responsible-Changed-By: brucec 
Responsible-Changed-When: Sat Mar 13 11:30:43 UTC 2010 
Responsible-Changed-Why:  
Take. I've seen this bug recently. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48989 

From: Bruce Cran <bruce@cran.org.uk>
To: bug-followup@freebsd.org,
 tazle@lyseo.edu.ouka.fi
Cc:  
Subject: Re: bin/48989: sysinstall(8): Sysinstall's  partition editor gets confused by partitions created out-of-order
Date: Sat, 24 Apr 2010 00:49:57 +0100

 This looks like a bug in chunk.c from libdisk. The space freed up isn't 
 accounted properly in Delete_Chunk2 if there's not an unused partition 
 following the deleted partition.
 
 -- 
 Bruce Cran
Responsible-Changed-From-To: brucec->freebsd-sysinstall 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Sun Jan 23 20:59:49 UTC 2011 
Responsible-Changed-Why:  
Back to the pool. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48989 
>Unformatted:
