From owner-freebsd-bugs Thu Aug 27 07:00:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA14695 for freebsd-bugs-outgoing; Thu, 27 Aug 1998 07:00:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA14687 for ; Thu, 27 Aug 1998 07:00:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id HAA24393; Thu, 27 Aug 1998 07:00:00 -0700 (PDT) Received: from localhost.ziplink.net (kot.ne.mediaone.net [24.128.29.55]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA14249 for ; Thu, 27 Aug 1998 06:53:11 -0700 (PDT) (envelope-from mi@rtfm.ziplink.net) Received: from rtfm.ziplink.net (mi@rtfm [199.232.255.52]) by localhost.ziplink.net (8.8.8/8.8.7) with ESMTP id NAA01754 for ; Thu, 27 Aug 1998 13:52:19 GMT (envelope-from mi@rtfm.ziplink.net) Received: (from mi@localhost) by rtfm.ziplink.net (8.9.1/8.8.5) id JAA07837; Thu, 27 Aug 1998 09:52:18 -0400 (EDT) Message-Id: <199808271352.JAA07837@rtfm.ziplink.net> Date: Thu, 27 Aug 1998 09:52:18 -0400 (EDT) From: Mikhail Teterin Reply-To: mi@aldan.algebra.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/7756: disklabel misbehaving on seriously sick disks Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7756 >Category: bin >Synopsis: disklabel misbehaving on seriously sick disks >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 27 07:00:00 PDT 1998 >Last-Modified: >Originator: Mikhail Teterin >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: A disk with hosed partition table(s) >Description: My attempts to disklabel -r -w sd1 auto where resulting in "No space on device" and similar non-sense. When I tried to use disklabel from 2.2.6-STABLE, it simply segfaulted. It seemed from reading the man-page, that `-w' should just write the table out after figuring the parameters out _without reading the disk_. >How-To-Repeat: Hard -- you need to hose your disk in some special way. My machine did it for me and would not tell me how. >Fix: Nuke the first several sectors with ``dd if=/dev/zero ...'' I had a swap partition on that disk prior to the precious file system I tried to restore, so I did not worry about nuking too much. After this, I was able to auto-create the disklabel and edit it to access my FS. I used to mount it as sd1s1e. Well, now it is /dev/sd1e, but I prefer it this way -- shorter... >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message