From owner-freebsd-questions Mon Oct 22 14: 0: 4 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 75BDE37B401 for ; Mon, 22 Oct 2001 13:59:59 -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 f9MKxbx18566; Mon, 22 Oct 2001 22:59:37 +0200 (MET DST) Message-ID: <3BD488B9.2A8E57C9@acm.org> Date: Mon, 22 Oct 2001 22:59:37 +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: questions@freebsd.org Subject: Disklabel lost 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 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 The fstab file in the /etc directory of the damage disk is: # Device Mountpoint FStype Options Dump Pass# /dev/ad0s1 none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad0s1e /usr ufs rw 2 2 /dev/acd0c /cdrom cd9660 ro,noauto 0 0 proc /proc procfs rw 0 0 From the mbox at the /root directory of the damage disk a got the following: Disk status: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 49583 28226 17391 62% / /dev/ad0s1e 5842520 4071545 1303574 76% /usr procfs 4 4 0 100% /proc From this I know there are only three partitions (root, /usr and swap) and the size of the UFS partitions. But to rebuild the disklabel still I don't know the size of the swap partition and thus can't figure out where does the /usr partition starts. Can anyone help me with this? Does anyone knows if gpart can be use to figure out the disklabel and how? (So far with gpart I have only been able to print the slicetable, not the disklabel.) --- Oscar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message