Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 1998 23:23:07 +0200
From:      Stefan Eggers <seggers@semyam.dinoco.de>
To:        Mikhail Teterin <mi@video-collage.com>
Cc:        julian@whistle.com (Julian Elischer), current@FreeBSD.ORG, seggers@semyam.dinoco.de
Subject:   Re: recovering disk 
Message-ID:  <199808262123.XAA28041@semyam.dinoco.de>
In-Reply-To: Your message of "Wed, 26 Aug 1998 15:34:36 EDT." <199808261934.PAA17500@xxx.video-collage.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808262123.XAA28041>