From owner-freebsd-current@FreeBSD.ORG Fri Nov 23 15:00:56 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83C1716A418 for ; Fri, 23 Nov 2007 15:00:56 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.freebsd.org (Postfix) with ESMTP id E405A13C448 for ; Fri, 23 Nov 2007 15:00:55 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A70DA.dip.t-dialin.net [84.154.112.218]) (authenticated bits=0) by tower.berklix.org (8.13.6/8.13.6) with ESMTP id lANEkCq7005201 for ; Fri, 23 Nov 2007 14:46:13 GMT (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by js.berklix.net (8.13.8/8.13.8) with ESMTP id lANEklhQ068284 for ; Fri, 23 Nov 2007 15:46:47 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (localhost.js.berklix.net [127.0.0.1]) by fire.js.berklix.net (8.13.8/8.13.8) with ESMTP id lANEklZV083952 for ; Fri, 23 Nov 2007 15:46:47 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <200711231446.lANEklZV083952@fire.js.berklix.net> To: freebsd-current@freebsd.org In-reply-to: <1195488856.19739.42.camel@bauer.cse.buffalo.edu> References: <1195488856.19739.42.camel@bauer.cse.buffalo.edu> Comments: In-reply-to Ken Smith message dated "Mon, 19 Nov 2007 11:14:16 -0500." Date: Fri, 23 Nov 2007 15:46:47 +0100 From: "Julian H. Stacey" Subject: Sysinstall fails to re-allocate disk space. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2007 15:00:56 -0000 Ken Smith wrote: > Subject: Re: FreeBSD 7.0-BETA3 Available > The 7.0-BETA3 builds are now available. If you would like to download I installed 7.0-BETA3-i386-disc1.iso (after checking md5 on cd) on a 4G disc I told sysinstall: Use whole disc A For Auto defaults. It allocated 9M for swap ! I deleted swap & /usr to get space, Allocated 100M for swap. It said not enough space (despite 3G free !) I guess this is not a 7.0-BETA3 bug but a long term limitation of sysinstall, for which at best one might file a send-pr requesting an enhancement or submitting diffs (but I dont wany to poke about in sysinstall **) After I had installed I could see more data as below with df & disklabel as below, but sysinstall didnt show me that much info furing the install. If I had deleted all partitions but /, I could probably have allocated more swap, but then I'd have lost sysinstall's reccomended sizes for all other partitions (OK, yes, I could have written them down). Seemed like a bug at the time "Damn! It's got the space, why doesn't it use it?" Now with df & disklabel one can see why sysinstall refused: sysinstall was too dumb to shuffle partitions, in older simpler BSD installs, one would have the full disklabel (& in vi, not some non BSD ee editor that's no smaller than some vi clones) (**). GENERIC dmesg: real memory = 33554432 (32 MB) avail memory = 18964480 (18 MB) ad0: 4121MB at ata0-master UDMA33 df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 317166 130316 161478 45% / devfs 1 1 0 100% /dev /dev/ad0s1e 221934 12 204168 0% /tmp /dev/ad0s1f 3186642 118970 2812742 4% /usr /dev/ad0s1d 348910 230 320768 0% /var disklabel ad0s1 # /dev/ad0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 655360 0 4.2BSD 2048 16384 40968 b: 19352 655360 swap c: 8440929 0 unused 0 0 # "raw" part... d: 720896 674712 4.2BSD 2048 16384 45064 e: 458752 1395608 4.2BSD 2048 16384 28680 f: 6586569 1854360 4.2BSD 2048 16384 28552 swapinfo Device 1K-blocks Used Avail Capacity /dev/ad0s1b 9676 1820 7856 19% -- Julian Stacey. Munich Computer Consultant, BSD Unix C Linux. http://berklix.com Ihr Rauch = mein allergischer Kopfschmerz. Dump cigs 4 snuff.