Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2001 09:14:17 +0200
From:      Oscar-Ivan Lepe-Aldama <oscar.lepe@acm.org>
To:        David Kirchner <davidk@accretivetg.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Disklabel lost
Message-ID:  <3BD518C9.5898BF24@acm.org>
References:  <20011022140848.T85958-100000@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
David Kirchner wrote:
> 
> On Mon, 22 Oct 2001, Oscar-Ivan Lepe-Aldama wrote:
> 
> > The partition table seams o.k. but the disklabel is lost. I move the
> > disk to another FreeBSD system and have been able to mount its root
> > partition with
> >
> > mount /dev/ad2s1a /mnt/ad2s1a
> 
> Shouldn't you be able to read the disklabel on the other FreeBSD system if
> you can mount drives on it? Perhaps I'm not clear on the problem.

What happens is that fdisk at sysintall correctly ids and prints the
partition (slice) table for the disk (only one slice), but label (at
sysinstall again) ids and prints nothing.

To mount the root (bsd) partition of the damage disk I did a guess on
its size and with sysinstall/label wrote a disklabel. (My guess was that
the root partition was 100Megs large.) Then I succesfully mounted that
guessed root partition, as I have said before. (Then I found out that my
guess was wrong when I peek at root's mbox file, and change the
disklabel to reflect the actula size of the root partition. Again, I
have been able to succesfully mount this second guessed root partition.)

But from here I have no ideas on how to complete the disklabel for the
rest of the partitions. I know there are a couple more, one for swap and
one for /usr. About the swap partiton I don't know nothing, neither its
size nor where it starts. About the /usr partition I know its size but I
don't know where it starts.

I already have used gpart (for displaying only) but it only tells me
this:

fonoll:~> gpart /dev/ad2

Begin scan...
Possible partition(*BSD disklabel), size(6196mb), offset(0mb)
End scan.

Checking partitions...
Partition(FreeBSD/NetBSD/386BSD): primary
Ok.

Guessed primary partition table:
Primary partition(1)
   type: 165(0xA5)(FreeBSD/NetBSD/386BSD)
   size: 6196mb #s(12691287) s(63-12691349)
   chs:  (0/1/1)-(789/254/63)d (0/1/1)-(789/254/63)r

Primary partition(2)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

Primary partition(3)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

Primary partition(4)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

And there I don't see any information about the disklabel.

Any more thoughts?

---

Oscar

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BD518C9.5898BF24>