From owner-freebsd-stable@FreeBSD.ORG Tue Jul 4 10:23:32 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 502BA16A4E7 for ; Tue, 4 Jul 2006 10:23:32 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD6E943D55 for ; Tue, 4 Jul 2006 10:23:30 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id k64ANMNV054248 for ; Tue, 4 Jul 2006 13:23:22 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Tue, 4 Jul 2006 13:23:22 +0300 (EEST) From: Dmitry Pryanishnikov To: freebsd-stable@freebsd.org Message-ID: <20060704130402.X31561@atlantis.atlantis.dp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Misleading "fdisk: Geom not found" in 6.1-RELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jul 2006 10:23:32 -0000 Hello! I've noticed that using fdisk against ad2 drive gives misleading diagnostics at the end of execution (there are no mounted partitions at the drive, OS boot device is ad0): root@test# uname -r 6.1-RELEASE root@test# mount|grep ad2 root@test# fdisk -a ad2 ******* Working on device /dev/ad2 ******* ... Partition 2 is marked active Do you want to change the active partition? [n] y Supply a decimal value for "active partition" [2] 1 Are you happy with this choice [n] y ... Should we write new partition table? [n] y fdisk: Geom not found root@test# One can think that it's an error message, however new partition table actually gets written to the disk, next fdisk run (and 'hd /dev/ad2', to be sure) confirms so. What's the reason of this message? fdisk(8) doesn't reply to this question. The strangest thing is that this message doesn't show during modification of partition table on system disk (ad0). Modification succeeds in both cases. Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE