From owner-freebsd-questions@FreeBSD.ORG Wed Feb 17 19:13:36 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9FF21065694 for ; Wed, 17 Feb 2010 19:13:35 +0000 (UTC) (envelope-from bob@immure.com) Received: from maul.immure.com (adsl-66-136-206-1.dsl.austtx.swbell.net [66.136.206.1]) by mx1.freebsd.org (Postfix) with ESMTP id A12778FC20 for ; Wed, 17 Feb 2010 19:13:35 +0000 (UTC) Received: from rancor.immure.com (rancor.immure.com [10.1.132.9]) by maul.immure.com (8.14.3/8.14.3) with ESMTP id o1HIwkhC049792 for ; Wed, 17 Feb 2010 12:58:46 -0600 (CST) (envelope-from bob@immure.com) Received: from rancor.immure.com (localhost [127.0.0.1]) by rancor.immure.com (8.14.3/8.14.3) with ESMTP id o1HIwk50085874 for ; Wed, 17 Feb 2010 12:58:46 -0600 (CST) (envelope-from bob@rancor.immure.com) Received: (from bob@localhost) by rancor.immure.com (8.14.3/8.14.3/Submit) id o1HIwkLj085873 for freebsd-questions@freebsd.org; Wed, 17 Feb 2010 12:58:46 -0600 (CST) (envelope-from bob) Date: Wed, 17 Feb 2010 12:58:46 -0600 From: Bob Willcox To: questions list Message-ID: <20100217185846.GA85769@rancor.immure.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-immure-MailScanner-Information: Please contact the ISP for more information X-immure-MailScanner-ID: o1HIwkhC049792 X-immure-MailScanner: Found to be clean X-immure-MailScanner-From: bob@immure.com X-Spam-Status: No Subject: fdisk fails with "Class not found" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bob Willcox List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2010 19:13:36 -0000 I am trying to change the sysid of a slice (partition) on my disk from 5 to 165. When it gets to the point of writing sector 0 it always fails with: fdisk: Class not found fdisk: Failed to write sector zero Can someone please tell me what this means, and how do I fix it? I have included the output from an fdisk attempt below. Thanks, Bob root@tavion:10 /usr/home/bob> fdisk -uv ******* Working on device /dev/ad4 ******* parameters extracted from in-core disklabel are: cylinders=969021 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=969021 heads=16 sectors/track=63 (1008 blks/cyl) Do you want to change our idea of what BIOS thinks ? [n] Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 524286945 (255999 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 15/ sector 63 Do you want to change it? [n] The data for partition 2 is: sysid 5 (0x05),(Extended DOS) start 524297340, size 452470725 (220932 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 14/ sector 63 Do you want to change it? [n] y Supply a decimal value for "sysid (165=FreeBSD)" [5] 165 Supply a decimal value for "start" [524297340] Supply a decimal value for "size" [452470725] Explicitly specify beg/end address ? [n] sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 524297340, size 452470725 (220932 Meg), flag 0 beg: cyl 968/ head 4/ sector 1; end: cyl 311/ head 14/ sector 63 Are we happy with this entry? [n] y The data for partition 3 is: Do you want to change it? [n] The data for partition 4 is: Do you want to change it? [n] Partition 1 is marked active Do you want to change the active partition? [n] We haven't changed the partition table yet. This is your last chance. parameters extracted from in-core disklabel are: cylinders=969021 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=969021 heads=16 sectors/track=63 (1008 blks/cyl) Information from DOS bootblock is: 1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 524286945 (255999 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 15/ sector 63 2: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 524297340, size 452470725 (220932 Meg), flag 0 beg: cyl 968/ head 4/ sector 1; end: cyl 311/ head 14/ sector 63 3: 4: Should we write new partition table? [n] y fdisk: Class not found fdisk: Failed to write sector zero -- Bob Willcox Stock's Observation: bob@immure.com You no sooner get your head above water Austin, TX but what someone pulls your flippers off.