From owner-freebsd-questions@FreeBSD.ORG Mon May 2 18:54:20 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64FE416A4CE for ; Mon, 2 May 2005 18:54:20 +0000 (GMT) Received: from mail.duth.gr (mail.duth.gr [192.108.114.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 374EE43D1F for ; Mon, 2 May 2005 18:54:19 +0000 (GMT) (envelope-from bigbrother@bonbon.net) Received: from bigb3server.ath.cx (b9-29.xan.duth.gr [193.92.211.29]) by mail.duth.gr (8.13.1/8.13.1) with ESMTP id j42IsCvi049522 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 2 May 2005 21:54:17 +0300 (EEST) (envelope-from bigbrother@bonbon.net) Received: from bigb3server.bbcluster.gr (localhost [127.0.0.1]) by bigb3server.ath.cx (8.13.1/8.13.1) with ESMTP id j42Ird09088143 for ; Mon, 2 May 2005 21:53:39 +0300 (EEST) (envelope-from bigbrother@bonbon.net) Received: from localhost (bigbrother@localhost)j42Irc9k088140 for ; Mon, 2 May 2005 21:53:39 +0300 (EEST) (envelope-from bigbrother@bonbon.net) X-Authentication-Warning: bigb3server.bbcluster.gr: bigbrother owned process doing -bs Date: Mon, 2 May 2005 21:53:35 +0300 (EEST) From: BigBrother-{BigB3} To: freebsd-questions@freebsd.org Message-ID: <20050502213310.W575@bigb3server.bbcluster.gr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scanned-By: MIMEDefang 2.51 on 192.108.114.110 X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-1.6 (mail.duth.gr [192.108.114.110]); Mon, 02 May 2005 21:54:17 +0300 (EEST) Subject: I used "boot0cfg" and destroyed the MBR.All labels dissapear! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2005 18:54:20 -0000 Dear, Please help me with this strange situation, that is due to using boot0cfg with wrong switches. I googled it but I did not find any similar case. On a working 4.11 freebsd system I wanted to create a floppy bootable disk. This system had one slice and four labels. I run this command: boot0cfg -B -o update -s 1 -t 20 fd0 After I run this command I rebooted and I faced a situation where a) the floppy booting only showed F1 ??? F2 ??? F3 ??? F4 ??? (whatever I pressed it causes to beep and nothing happens) b) I removed the floppy disk and booted from the hard disc, but the same list appeared..and nothing happened. c) I boot with the 2 kernel/mfsroot diskcs with fixit also and I saw: fdisk from the 'sysinstall' shows that no slices exist, and all the space is unused. fdisk ad0 shows that there are 4 partitions with information like ====== sysid 32 (uknown) 1919950958, 544437093 (265838 Meg) (flag 0x80 active) beggining: cylinder 356 head 97 sector 46 end: cyllinder 357 head 116 secotr 40 sysid 107 (unknown) .... sysid 83 (unknown) ... sysid 73 (unknown) ... ======== Meanwhile I got the message "slice ad0s1 starts beyong end of the disk: rejecting it" "slice ad0s2 ...... rejecting it" "slice ad0s3 .... rejecting it" "slice ad0s4 ... rejecting it" It seems that all the labels of the single slice have become seperated slices. As a result I cannot mount anything and it seems that all my data is inaccessible. because this is my home freeBSD firewall and I would like to bring it back online without reinstalling and setting it up from the beggining (no backups sniff:( ) how can I fix this? If I recreate partitions (how?) without erasing the file/inode table? how can I change the type of every partition to be freebsd? And how can i change the slices to be one big slice? I think disklabel can help but I am not sure how. How can I save/backup the data on the disk? Thank you very much in advance!!! Please if you have any hint of where to search or what to do help me and I will post the results (and hopefully the solution) of this case as a reference. regards, BB --- Dreams have no limits!