From owner-freebsd-current Mon Feb 3 23:59:27 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1544937B401 for ; Mon, 3 Feb 2003 23:59:26 -0800 (PST) Received: from mail.rpi.edu (mail.rpi.edu [128.113.2.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EE1E43F3F for ; Mon, 3 Feb 2003 23:59:25 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id h147xNGB274544 for ; Tue, 4 Feb 2003 02:59:23 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: Date: Tue, 4 Feb 2003 02:59:22 -0500 To: current@FreeBSD.org From: Garance A Drosihn Subject: Minor oddity with sysinstall/disklabel on -current Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG So, I'm trying something on -current. I boot up, log into root. I have two hard disks on the system. All of my mounted partitions are on ad0, except for one partition on ad2. I 'umount' that partition. I run the Disklabel Editor via sysinstall. I delete that partition, and then re-create it as a UFS2 partition. I do the 'w'rite, and everything looks fine. I drop out of sysinstall, do some things with that partition, and then decide to redo the above sequence. Everything has been working fine, but I'm just testing some things and I end up in a position where it's quicker to newfs the partition than it is to 'rm' the files on it. So, I do the same exact sequence (starting with the 'umount' before running sysinstall), and this time when I do the 'w'rite, I am told: ERROR: Unable to write data to disk ad2! If I reboot, then I can repeat the sequence with no problem. At the time I'm trying to do the 'w'rite, the disklabel screen looks like: Disk: ad2 Partition name: ad2s1 Free: 0 blocks (0MB) Disk: ad2 Partition name: ad2s2 Free: 0 blocks (0MB) Disk: ad2 Partition name: ad2s3 Free: 0 blocks (0MB) Part Mount Size Newfs Part Mount Size Newfs ---- ----- ---- ----- ---- ----- ---- ----- ad2s1a 150MB * ad2s2a 160MB * ad2s1b swap 750MB SWAP ad2s2f 125MB * ad2s1e 150MB * ad2s2g 4040MB * ad2s1f 120MB * ad2s2h 1175MB * ad2s1g 4040MB * ad2s3d /usr/cvs/ 3100MB UFS2+S Y ad2s1h 2589MB * ad2s3e 3136MB * It is perhaps significant that the system's /etc/fstab does not include *this* swap partition at bootup, but after doing the above sequence I see: (302) swapctl -l Device: 1024-blocks Used: /dev/ad0s4b 1792000 48 /dev/ad2s1b 768000 0 It is probably true that I should just type in the newfs command I want instead of going thru sysinstall, but I was partially testing to see if there was a bug in the way sysinstall was creating the partition... -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message