From owner-freebsd-questions@FreeBSD.ORG Sat Apr 10 05:22:18 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FDEE16A4CE for ; Sat, 10 Apr 2004 05:22:18 -0700 (PDT) Received: from smtp.thilelli.net (jgabel.net1.nerim.net [80.65.226.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EA8543D1F for ; Sat, 10 Apr 2004 05:22:16 -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 54E5478C4A for ; Sat, 10 Apr 2004 14:22:17 +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 31497-09 for ; Sat, 10 Apr 2004 14:22:16 +0200 (CEST) Received: from webmail.thilelli.net (localhost.thilelli.net [127.0.0.1]) by bento.thilelli.net (Postfix) with SMTP id 83B7F78C43 for ; Sat, 10 Apr 2004 14:22:16 +0200 (CEST) Received: from 192.168.0.105 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Sat, 10 Apr 2004 14:22:16 +0200 (CEST) Message-ID: <50127.192.168.0.105.1081599736.squirrel@webmail.thilelli.net> Date: Sat, 10 Apr 2004 14:22:16 +0200 (CEST) From: "Julien Gabel" To: freebsd-questions@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, not even a slice using fdisk(8). X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Apr 2004 12:22:18 -0000 Hello, Here is my problem. I had a hard disk for one year now, working together with an other identical disk in a _hard_ mirror. One month ago, I noticed the mirror was not active, found that the second part of the mirror was not responding and decided to recreate completely the mirror after making some fresh backup (from the valid part of the RAID-1). Te newly created mirror seems to work fine until yesterday, when I need to reboot the system... and the mirror was not responding for a second time. But this time it was not possible to create a new fs on the recreated mirror as I did before. For the moment, the system works great on a single disk. But the fact that the BIOS and FreeBSD sees the "faulting" disk without problem makes me in doubt. I can't see any error from the OS point of view (nor in syslog nor in console) but now I can't even _partition_ it with fdisk(8), saying that "Operation not permitted"! - 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 1/ How can I be certain that the hard disk is dead (even if it seems not to be)? 2/ Is there someting I can do to test/repair it? 3/ Anything else to say to diagnose my problem? Thanks in advance, -- -jpeg.