From owner-freebsd-current@FreeBSD.ORG Sat May 31 10:06:17 2003 Return-Path: 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 E481D37B401; Sat, 31 May 2003 10:06:17 -0700 (PDT) Received: from TK212017121218.teleweb.at (TK212017121218.teleweb.at [212.17.121.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 436A843F85; Sat, 31 May 2003 10:06:17 -0700 (PDT) (envelope-from herbert@TK212017121218.teleweb.at) Date: Sat, 31 May 2003 19:05:56 +0200 From: Herbert To: freebsd-questions@FreeBSD.org Message-ID: <20030531170555.GA585@TK212017121218.teleweb.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 5.1-BETA User-Agent: Mutt/1.5.4i cc: freebsd-current@FreeBSD.org Subject: fdisk/disklabel - Error: unable to write data to disk ad0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 31 May 2003 17:06:18 -0000 Hei! On Thursday May 29th I installed FreeBSD 5.1 Beta2. The next day I've update to CURRENT from May 30th. I have a 60 GB ATA harddisk and during installation I created only 1 20 GB slice for FreeBSD. Today I wanted to use the other 40 GB of my hard disk and create two more slices each 20 GB. Well, fdisk reports that the disk geometry is wrong and sets it to 7476/255/63, the same disk geometry the BIOS reports. When I try to save the changes in fdisk, I get the following error messages: Error: Unable to write data to disk ad0 Disk partition write returned an error status! Hmm, I tried both in multiuser and singleuser mode. Finally I booted with the floppies I had used to setup FreeBSD 5.1B2. Fdisk also reports that the disk geometry is wrong and sets it to 7476/255/63. But creating the slices and saving the changes did work: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) ----[snip]---- The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BS ----[snip]---- The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) ----[snip]---- The data for partition 4 is: Now I have booted FreeBSD from hard disk and try to create partitions within the new slices. But again I get: Error: unable to write data to disk ad0 Now I am booting with the install floppies again. I guess this is working fine. Any ideas what I am doing wrong? Regards, Herbert