From owner-freebsd-current@FreeBSD.ORG Thu Apr 15 12:14:23 2004 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 ED5A616A4DE for ; Thu, 15 Apr 2004 12:14:23 -0700 (PDT) Received: from smtp.thilelli.net (jgabel.net1.nerim.net [80.65.226.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id A043C43D39 for ; Thu, 15 Apr 2004 12:14:22 -0700 (PDT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost.thilelli.net [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 8174D78C70 for ; Thu, 15 Apr 2004 20:46:02 +0200 (CEST) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 63045-02-2 for ; Thu, 15 Apr 2004 20:46:01 +0200 (CEST) Received: from webmail.thilelli.net (localhost.thilelli.net [127.0.0.1]) by bento.thilelli.net (Postfix) with SMTP id A4E3778C65 for ; Thu, 15 Apr 2004 20:46:01 +0200 (CEST) Received: from 192.168.0.105 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Thu, 15 Apr 2004 20:46:01 +0200 (CEST) Message-ID: <50267.192.168.0.105.1082054761.squirrel@webmail.thilelli.net> Date: Thu, 15 Apr 2004 20:46:01 +0200 (CEST) From: "Julien Gabel" To: freebsd-current@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at thilelli.net Subject: Can't *write* to a hard disk, problem related to GEOM(4)? 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: Thu, 15 Apr 2004 19:14:24 -0000 Hello, I post to current@, since the problem *seems* to be related to GEOM. The first thread for this subject begin from question@, you can read it here: http://lists.freebsd.org/mailman/htdig/freebsd-questions/2004-April/\ thread.html#43212 I can resume my problem like that: - My OS release is FreeBSD 5.2.1-RELEASE-p4; - The disk is a 120Go/8Mo from Maxtor (UDMA133); - What dmesg(8) says about it: # grep ad10 /var/run/dmesg.boot GEOM: create disk ad10 dp=0xc6ab2660 ad10: 117246MB [238216/16/63] at ata5-master UDMA133 - But when I tried to create a slice on it, I get: # fdisk -BI ad10 ******* Working on device /dev/ad10 ******* fdisk: can't write fdisk partition table: Operation not permitted /dev/ad10 was previously part of a hardware miror (ar(4) device with a HighPoint HPT374 (channel 2+3) UDMA133 controller), but since it was broken for an unknown reason, thid drive is no more usable, even alone. For example, I am not be able to create a new slice on it. 1/ I try to set the sysctl "kern.geom.debugflags" to 16, in order to write to it... without success. 2/ I succeed to write on it under the 4.9 bootable CDROM (fdisk, bsdlabel, etc.) but when I reboot under the installed FreeBSD-5.2.1 I cannot access it any more again. It seems that 'Joan Picanyol i Puig' was in the right direction arguing to play with "kern.geom.debugflags", but it didn't work for me. If someone has an other idea to try to recover this drive... Thanks, -- -jpeg.