From owner-freebsd-questions Tue Oct 23 0:14:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from roura.ac.upc.es (roura.ac.upc.es [147.83.33.10]) by hub.freebsd.org (Postfix) with ESMTP id 0D5CB37B403 for ; Tue, 23 Oct 2001 00:14:39 -0700 (PDT) Received: from acm.org (fonoll.ac.upc.es [147.83.32.14]) by roura.ac.upc.es (8.11.6/8.11.0) with ESMTP id f9N7EHx27039; Tue, 23 Oct 2001 09:14:17 +0200 (MET DST) Message-ID: <3BD518C9.5898BF24@acm.org> Date: Tue, 23 Oct 2001 09:14:17 +0200 From: Oscar-Ivan Lepe-Aldama Organization: DAC/UPC X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: es, en MIME-Version: 1.0 To: David Kirchner Cc: questions@FreeBSD.ORG Subject: Re: Disklabel lost References: <20011022140848.T85958-100000@localhost> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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