From owner-freebsd-current Wed Aug 26 14:29:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA23947 for freebsd-current-outgoing; Wed, 26 Aug 1998 14:29:16 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from tim.xenologics.com (tim.xenologics.com [194.77.5.24]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA23834 for ; Wed, 26 Aug 1998 14:28:54 -0700 (PDT) (envelope-from seggers@semyam.dinoco.de) Received: (from uucp@localhost) by tim.xenologics.com (8.8.5/8.8.8) with UUCP id XAA24325; Wed, 26 Aug 1998 23:24:48 +0200 (MET DST) Received: from semyam.dinoco.de (semyam.dinoco.de [127.0.0.1]) by semyam.dinoco.de (8.9.1/8.8.8) with ESMTP id XAA28041; Wed, 26 Aug 1998 23:23:07 +0200 (CEST) (envelope-from seggers@semyam.dinoco.de) Message-Id: <199808262123.XAA28041@semyam.dinoco.de> To: Mikhail Teterin cc: julian@whistle.com (Julian Elischer), current@FreeBSD.ORG, seggers@semyam.dinoco.de Subject: Re: recovering disk In-reply-to: Your message of "Wed, 26 Aug 1998 15:34:36 EDT." <199808261934.PAA17500@xxx.video-collage.com> Date: Wed, 26 Aug 1998 23:23:07 +0200 From: Stefan Eggers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > fdisk at all and proceed to the disklabel... So what should I do > instead of the plain: > > root@rtfm:/home/mi (108) disklabel -e sd1 > disklabel: ioctl DIOCGDINFO: Invalid argument How about "disklabel -r -e sd1s1" (if fdisk partition 4 - if it is the only one - ends up as slice 1) for a start? If it is thought of by the system as damaged or unlabled I think the best one can do is writing a new one with "disklabel -r -w sd1s1 auto" and then edit the data. One will loose the previous data in it, though. > Where is disklabel stored on the disk, can it be saved on top of > my filesystem (which, I think, starts about 64Mb from the beginning It is on top of the filesystem (if the filesystem starts at offset 0 in the slice) but the filesystem doesn't really start at the offset 0 then but leaves 8 KByte alone for boot blocks, disklabel and the like. And from what I read the disklabel area is unwriteable with normal means so even a filesystem like the Dos one which actually will start at the offset given (as far as I know) shouldn't be able to damage it. Stefan. -- Stefan Eggers Lu4 yao2 zhi1 ma3 li4, Max-Slevogt-Str. 1 ri4 jiu3 jian4 ren2 xin1. 51109 Koeln Federal Republic of Germany To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message